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?>
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' }}
@if($pro->isWorkingOnClient($patient))
{{-- stop work on client --}}
@else
{{-- start work on client --}}
@endif
@if($pro->isWorkingOnClient($patient))
@if($patient->active_mcp_request_id)
{{-- kill mcp request for client --}}
@else
{{-- create mcp request for client --}}
@endif
@endif
-
mailing_address_line1) $addressParts[] = $patient->mailing_address_line1; if (!!$patient->mailing_address_line2) $addressParts[] = $patient->mailing_address_line2; $addressParts = implode(", ", $addressParts) . "
"; $addressPart2 = []; if (!!$patient->mailing_address_city) $addressPart2[] = $patient->mailing_address_city; if (!!$patient->mailing_address_state) $addressPart2[] = $patient->mailing_address_state; $addressParts .= implode(", ", $addressPart2); echo $addressParts; ?> {{ $patient->mailing_address_zip ? $patient->mailing_address_zip : '' }} @if($patient->mailing_address_memo)Special Instructions{{$patient->mailing_address_memo}}
@if($patient->cell_number)
- {{ $patient->cell_number_memo ? '(' . $patient->cell_number_memo . ')' : '' }} @endif @if($patient->phone_home) {{$patient->cell_number}}
- @endif {{$patient->phone_home}}
- {{$confirmedEmail}}
@if($patient->mcp_pro_id !== $pro->id && $patient->active_mcp_request_id)
@endif
--}}
{{--
@yield('section-title')
--}}
@yield('inner-content')