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])) . ($patient->name_nickname ? ' (' . $patient->name_nickname . ')' : ''); $confirmedCell = empty($patient->cell_number) ? '-' : $patient->cell_number; $hasConfirmedEmail = empty($patient->email_address) ? false:true; $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'; $addressParts = []; if (!!$patient->mailing_address_line1) $addressParts[] = trim($patient->mailing_address_line1); if (!!$patient->mailing_address_line2) $addressParts[] = trim($patient->mailing_address_line2); $addressParts = implode(", ", $addressParts) . "
"; $addressPart2 = []; if (!!$patient->mailing_address_city) $addressPart2[] = trim($patient->mailing_address_city); if (!!$patient->mailing_address_state) $addressPart2[] = trim($patient->mailing_address_state); $addressParts .= implode(", ", $addressPart2); ?>
@if($patient->is_duplicate)
This chart is a duplicate of  {{ $patient->duplicateOf->displayName() }}
@endif
{{$patientName}}
{{$patient->age_in_years}} Y {{$patient->sex}}
#{{$patient->chart_number}}
Joined @if($pro->pro_type === 'ADMIN')
Created by {{$patient->creator ? $patient->creator->displayName() : '-'}}
Created on {{friendly_date_time($patient->created_at)}}
@endif latestMemo(); ?> @if($latestMemo)

Last Memo: {{$latestMemo->category}}

{{$latestMemo->content}}
{{friendly_date_time($latestMemo->created_at)}}
@if($latestMemo->createdBy && $latestMemo->createdBy->pro)
By {{$latestMemo->createdBy->pro->displayName()}}
@endif @endif
RPM: {{ucwords(strtolower($patient->is_enrolled_in_rm))}} {{-- correct --}} @if($patient->is_enrolled_in_rm === 'NO' && $patient->why_not_enrolled_in_rm_category) {{-- correct --}} ({{$patient->why_not_enrolled_in_rm_category}}) @endif
Cell. BP: {{$patient->hasBPDevice()?'Yes':'No'}} @if($patient->most_recent_cellular_bp_sbp_mm_hg && $patient->most_recent_cellular_bp_dbp_mm_hg) ({{$patient->most_recent_cellular_bp_sbp_mm_hg ?: '-'}}/{{$patient->most_recent_cellular_bp_dbp_mm_hg ?: '-'}}@if($patient->most_recent_cellular_bp_measurement_at), {{friendly_date_short($patient->most_recent_cellular_bp_measurement_at)}}@endif)@endif
Wt.: {{$patient->hasWeightScaleDevice()?'Yes':'No'}} @if($patient->most_recent_cellular_weight_value) ({{round($patient->most_recent_cellular_weight_value, 1)}}@if($patient->most_recent_cellular_weight_measurement_at), {{friendly_date_short($patient->most_recent_cellular_weight_measurement_at)}}@endif) @endif
currentCareMonth(); ?> @if($currentCareMonth && ($pro->pro_type === 'ADMIN' || $pro->id === $currentCareMonth->mcp_pro_id))
has_anyone_interacted_with_client_about_rm_outside_note; ?> RPM comm. this mt: {{$spoken ? 'Yes' : 'No'}} @if(!$spoken) @else @endif
@endif
Edit Chart

Create a note for making changes to the chart?

|
{{$patient->dentalCompany ? $patient->dentalCompany->name : '(not set)'}} @if(!$patient->dentalCompany)
@else

Wipe Dental Company?

@endif
@if($hasConfirmedEmail) {{$confirmedEmail}}
@else @if($patient->is_email_address_waived)
Email Waived @if($patient->email_address_waive_memo) ({{$patient->email_address_waive_memo}}) @endif
Undo Waive
Undo waive?
@else
No email
Set
Waive
@endif @endif
linkedAccounts ? count($patient->linkedAccounts) : 0; ?> Accounts ({{$numLinkedAccounts}})
getPrimaryCoverage() || $patient->getPrimaryCoverageStatus() !== 'YES'; ?>
{{$mcpName}} @if($patient->has_mcp_done_onboarding_visit === 'YES') @endif @if($patient->has_mcp_done_onboarding_visit !== 'YES' && $pro->pro_type == 'ADMIN')
@include('app.patient.partials.put-mcp-form')
@if($patient->mcp)
@endif @endif @if($patient->mcp && $pro->pro_type === 'ADMIN' && $pro->uid !== $patient->mcp->uid)
@csrf
@endif
{{$patient->defaultNaPro ? $patient->defaultNaPro->displayName() : '-' }} @if($pro->pro_type == 'ADMIN')
@if($patient->pcp)
@endif @endif @if($patient->defaultNaPro && $pro->pro_type === 'ADMIN' && $pro->uid !== $patient->defaultNaPro->uid)
@csrf
@endif
Status: {{$patient->client_engagement_status_category ? ucwords(strtolower(str_replace('_', ' ', $patient->client_engagement_status_category == 'DUMMY' ? 'Test Chart' : $patient->client_engagement_status_category))) : '-'}} @if($pro->pro_type == 'ADMIN')
@endif
@include('app.patient.partials.quick-actions-buttons')
@if($pro->pro_type == 'ADMIN' && $patient->clientRepFollowUp && $patient->clientRepFollowUp->status === 'SCHEDULED')
Next FU: {{friendly_date($patient->clientRepFollowUp->next_follow_up_date)}} • {{$patient->clientRepFollowUp->pro->displayName()}}
@endif
@if($hasCoverageColumn) @include('layouts.patient-header-meta-info') @endif
@if($hasCoverageColumn)
@include('app.patient.coverage-status')
@else
@include('layouts.patient-header-meta-info')
@endif
@if($patient->mcp && $patient->mcp->id === $pro->id || $pro->pro_type == 'ADMIN')
{!! $patient->mcpEngagementAssessmentStatus && $patient->mcpEngagementAssessmentStatus->status_category ? ucwords(strtolower(str_replace('_', ' ', $patient->mcpEngagementAssessmentStatus->status_category))) : 'Not Set' !!}
@endif @if($patient->defaultNaPro && $patient->defaultNaPro->id === $pro->id || $pro->pro_type == 'ADMIN')
{!! $patient->defaultNaEngagementAssessmentStatus && $patient->defaultNaEngagementAssessmentStatus->status_category ? ucwords(strtolower(str_replace('_', ' ', $patient->defaultNaEngagementAssessmentStatus->status_category))) : 'Not Set' !!}
@endif
@include('app.patient.partials.sticky-notes-history')
@if($patient->sticky_note) id)->orderBy('created_at', 'DESC')->limit(1)->first(); ?>
{{ limit_string_length($patient->sticky_note ?? '-', 60) }} @include('app.patient.partials.sticky-notes-view')
By: {{ $patient->stickyNoteUpdatedBySession? $patient->stickyNoteUpdatedBySession->pro->displayName() : '-' }} • At: {{ friendlier_date($patient->sticky_note_updated_at) }}
@endif
@if($pro->pro_type === 'ADMIN')
@include('app.patient.intake-data.patient-intake-data-form')
@endif
  • mailing_address_line1) $addressParts[] = trim($patient->mailing_address_line1); if (!!$patient->mailing_address_line2) $addressParts[] = trim($patient->mailing_address_line2); $addressParts = implode(", ", $addressParts) . "
    "; $addressPart2 = []; if (!!$patient->mailing_address_city) $addressPart2[] = trim($patient->mailing_address_city); if (!!$patient->mailing_address_state) $addressPart2[] = trim($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
@if($pro->pro_type === 'ADMIN') is_active && (!$patient->client_engagement_status_category || $patient->client_engagement_status_category === 'ACTIVE') && (!$patient->default_mcp_company_pro_payer_id || !$patient->default_mcp_company_location_id) ) { $missingDefaultMCPCPAndLocation = true; } ?> @if($missingDefaultMCPCPAndLocation)
This patient is missing the default MCP company pro and/or location! Settings
@endif @endif latest_vitals_json) { try { $parsed = json_decode($patient->latest_vitals_json); ?>
Latest Vitals @if($patient->latest_vitals_set_at)({{friendly_date($patient->latest_vitals_set_at)}})@endif:
@if($parsed->heightInInches)
Height {{toFeetAndInches($parsed->heightInInches, "'", '"')}}
@endif @if($parsed->weightPounds) @if($hasPre),@endif
Weight {{$parsed->weightPounds}} lbs
@endif @if($parsed->bmi) @if($hasPre),@endif
BMI {{$parsed->bmi}}
@endif @if($parsed->temperatureF) @if($hasPre),@endif
Temp. {{$parsed->bmi}} F
@endif @if($parsed->systolicBP && $parsed->diastolicBP) @if($hasPre),@endif
BP {{$parsed->systolicBP}}/{{$parsed->diastolicBP}}
@endif @if($parsed->pulseRatePerMinute) @if($hasPre),@endif
Pulse {{$parsed->pulseRatePerMinute}}/m
@endif @if($parsed->respirationRatePerMinute) @if($hasPre),@endif
Resp. {{$parsed->respirationRatePerMinute}}/m
@endif @if($parsed->smokingStatus) @if($hasPre),@endif
{{$parsed->smokingStatus}}
@endif