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
{{--
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
{{$mcpName}} @if($patient->has_mcp_done_onboarding_visit !== 'YES' && $pro->pro_type == 'ADMIN')
@if($patient->mcp)
@endif @endif
@if($patient->has_mcp_done_onboarding_visit !== 'YES') MCP Onboarding Visit Pending
@else MCP Onboarding Visit Completed @endif
{{$patient->pcp ? $patient->pcp->displayName() : '-' }} @if($pro->pro_type == 'ADMIN')
@if($patient->pcp)
@endif @endif
{{--
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' }}
--}}

Send Check-In link to patient?

@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 --}}

Kill the MCP Request for this patient?

@else {{-- create mcp request for client --}}

Create an MCP Request for this patient?

@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}}
    @endif
  • @if($patient->cell_number)
  • {{$patient->cell_number}}{{ $patient->cell_number_memo ? '(' . $patient->cell_number_memo . ')' : '' }}
  • @endif @if($patient->phone_home)
  • {{$patient->phone_home}}
  • @endif
  • {{$confirmedEmail}}
{{--
@if($patient->mcp_pro_id !== $pro->id && $patient->active_mcp_request_id)
Claim as MCP

Claim this patient?

@endif
--}}
{{--

@yield('section-title')

--}}
@yield('inner-content')