profile_picture_base64;
$initials = !$thumbnail ? substr($patient->name_first, 0, 1) . substr($patient->name_last, 0, 1) : '';
$online = $patient->is_online ? 'online' : '';
$patientName = implode(', ', array_filter([$patient->name_last, $patient->name_first]));
$confirmedCell = empty($patient->cell_number) ? '-' : $patient->cell_number;
$confirmedEmail = empty($patient->email_address) ? '-' : $patient->email_address;
$location = implode(', ', array_filter([$patient->home_address_city, $patient->home_address_state]));
$location = empty($location) ? '-' : $location;
$mcpName = $patient->mcp ? implode(', ', array_filter([$patient->mcp->name_last, $patient->mcp->name_first])) : null;
$cmName = $patient->cm ? implode(', ', array_filter([$patient->cm->name_last, $patient->cm->name_first])) : null;
$memberSince = date_diff(date_create($patient->created_at), date_create('now'))->days;
if ($memberSince > 30) $memberSince = date('F, Y', strtotime($patient->created_at));
else if ($memberSince > 1) $memberSince .= ' days ago';
else if ($memberSince === 1) $memberSince = 'yesterday';
else if ($memberSince === 0) $memberSince = 'today';
?>
@if($patient->is_duplicate)
@if($performer->pro->pro_type == 'ADMIN')
@endif
shadowOfPro->hr_section_map) {
$map = json_decode($patient->shadowOfPro->hr_section_map);
$map = $map && isset($map->{'profession'}) ? $map->{'profession'} : null;
if ($map) {
$map = $map->proposedData;
if ($map) {
$map = json_decode($map);
} else {
$map = null;
}
}
}
$hcpMismatchClass = '';
if (!!$patient->shadowOfPro->is_hcp !== !!(@$map->is_hcp)) {
$hcpMismatchClass = 'text-danger';
}
?>
This chart is a duplicate of
{{ $patient->duplicateOf->displayName() }}
@endif
{{$patientName}}
=$initials?>
#{{$patient->chart_number}}
Joined =$memberSince?>
Created by {{$patient->creator ? $patient->creator->displayName() : '-'}}
Created on {{friendly_date_time($patient->created_at)}}
{{$patient->shadowOfPro && $patient->shadowOfPro->hrSpecialist ? $patient->shadowOfPro->hrSpecialist->displayName() : '-'}}
@if($patient->shadowOfPro)
@endif
{{$patient->shadowOfPro && $patient->shadowOfPro->clinicalSupervisor ? $patient->shadowOfPro->clinicalSupervisor->displayName() : '-'}}
@if($patient->shadowOfPro)
@endif
{{$patient->client_engagement_status_category ? ucwords(strtolower(str_replace('_', ' ', $patient->client_engagement_status_category == 'DUMMY' ? 'Test Chart' : $patient->client_engagement_status_category))) : '-'}}
@if($patient->stability_interaction_client_memo_id)
Next convo: {{friendly_date($patient->stable_until_date)}}
Last convo: {{friendly_date_time($patient->stabilityInteractionClientMemo->created_at)}} @else No conversations yet. @endif
Last convo: {{friendly_date_time($patient->stabilityInteractionClientMemo->created_at)}} @else No conversations yet. @endif
Is HCP: = $patient->shadowOfPro->is_hcp ? 'Yes' : 'No' ?>
@if( $patient->shadowOfPro->is_hcp)
@else
@endif
Enrolled as MCP: = $patient->shadowOfPro->is_enrolled_as_mcp ? 'Yes' : 'No' ?>
@if( $patient->shadowOfPro->is_enrolled_as_mcp)
@else
@endif
@if($map)
HR Profile > HCP:
{{ @$map->is_hcp ? 'Yes' : 'No' }}
HR Profile > NPI:
{{@$map->individual_npi ? $map->individual_npi : '-'}}
HR Profile > Cred:
{{@$patient->shadowOfPro->hrp_primary_credential ? $patient->shadowOfPro->hrp_primary_credential : '-'}}
@else
HR Profile > HCP:
No
@endif
@if($hcpMismatchClass !== '')
HCP status mismatch
@endif
HR Stage: {{ucwords(implode(' ', explode('_', $patient->shadowOfPro->new_hr_stage)))}}
Video HR Rep:
@if($patient->shadowOfPro->videoHrRep)
{{$patient->shadowOfPro->videoHrRep->name_first}} {{$patient->shadowOfPro->videoHrRep->name_last}}
@include('app.patient.partials.ob_forms.undoAssignVideoHrRep')
@else
@include('app.patient.partials.ob_forms.assignVideoHrRep')
@endif
Training Rep:
@if($patient->shadowOfPro->trainingRep)
{{$patient->shadowOfPro->trainingRep->name_first}} {{$patient->shadowOfPro->trainingRep->name_last}}
@include('app.patient.partials.ob_forms.undoAssignTrainingRep')
@else
@include('app.patient.partials.ob_forms.assignTrainingRep')
@endif
Success Rep:
@if($patient->shadowOfPro->successRep)
{{$patient->shadowOfPro->successRep->name_first}} {{$patient->shadowOfPro->successRep->name_last}}
@include('app.patient.partials.ob_forms.undoAssignSuccessRep')
@else
@include('app.patient.partials.ob_forms.assignSuccessRep')
@endif
@if(!in_array($patient->shadowOfPro->new_hr_stage, $postHiringStages))
@endif
-
@if($patient->cell_number)
- {{$patient->shadowOfPro->cell_number}} @endif
-
{{$patient->shadowOfPro->email_address}}
-
@include('app.patient.send_email')
Tags ({{count($patient->clientTags)}}):
@foreach($patient->clientTags as $tag)
@endforeach
@endif
{{--
@if($patient->mcp_pro_id !== $pro->id && $patient->active_mcp_request_id)
@endif
--}}
{{--
@yield('section-title')
--}}
@yield('inner-content')