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)
{{--
--}}
This chart is a duplicate of
{{ $patient->duplicateOf->displayName() }}
@endif
=$initials?>
is_microphone_available)style="color:green" @else style="color:gray" @endif>
is_camera_available)style="color:green" @else style="color:gray" @endif>
{{$patientName}}
[#{{$patient->chart_number}}]{{friendly_date_time($patient->dob, false)}} ({{$patient->age_in_years}} y.o {{$patient->sex}})
@if($patient->was_medicare_validation_successful && $patient->is_part_b_primary == 'YES')
Covered
@elseif($patient->was_medicare_validation_successful)
@if($patient->is_part_b_primary == 'YES')
Medicare Part B
@else
Not Medicare Part B
@if($patient->is_medicare_advantage == 'YES')
, Medicare Advantage,
{{$patient->medicare_advantage_plan}}
@endif
@endif
@else
@endif
Joined =$memberSince?>
{{$mcpName}}
{{$cmName}}
nextMcpAppointment();
$startTime = false;
$endTime = false;
if($nextAppointment) {
$startTime = date('H:i', strtotime($nextAppointment->start_time));
$endTime = date('H:i', strtotime($nextAppointment->end_time));
$nextAppointment = date('Y-m-d', strtotime($nextAppointment->start_time));
}
?>
{{$nextAppointment ? friendly_date_time($nextAppointment . ($startTime ? ' ' . $startTime : ''), true, '') : '-'}}
{{ $patient->is_enrolled_in_cm === 'YES' ? 'Yes' : 'No' }}
{{ $patient->is_enrolled_in_rm === 'YES' ? 'Yes' : 'No' }}
- mailing_address_line1) $addressParts[] = $patient->mailing_address_line1; if(!!$patient->mailing_address_line2) $addressParts[] = $patient->mailing_address_line2; if(!!$patient->mailing_address_city) $addressParts[] = $patient->mailing_address_city; if(!!$patient->mailing_address_state) $addressParts[] = $patient->mailing_address_state; echo implode(", ", $addressParts); ?> {{ $patient->mailing_address_zip ? $patient->mailing_address_zip : '' }}
- {{$confirmedCell}}
- {{$confirmedEmail}}
{{--
@yield('section-title')
--}}
@yield('inner-content')