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; $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
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?

@if($hasConfirmedEmail) {{$confirmedEmail}} @else (No email address) @endif
linkedAccounts ? count($patient->linkedAccounts) : 0; ?> Accounts ({{$numLinkedAccounts}})
{{$mcpName}} @if($patient->has_mcp_done_onboarding_visit === 'YES') @endif @if($patient->has_mcp_done_onboarding_visit !== 'YES' && $pro->pro_type == 'ADMIN')
@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($patient->has_mcp_done_onboarding_visit !== 'YES') MCP Onboarding Visit Pending @include('app.patient.partials.update-mcp-onboarding-visit-info') @endif
@if($patient->mcp && $patient->mcp->id === $pro->id || $pro->pro_type == 'ADMIN')
{!! is_null($patient->mcp_usual_follow_up_frequency_in_days) ? 'Not Set' : $patient->mcp_usual_follow_up_frequency_in_days !!}
@endif getPrimaryCoverage();?>
DOB: {{friendly_date($patient->dob, false,null, true)}}
@if($_cpc && $patient->getPrimaryCoverageStatus() === 'YES') @if($performer->pro->pro_type == 'ADMIN') @if($_cpc->plan_type === 'MEDICARE') @if(@$patient->mpb_remaining !== null)
Deductible: {{format_number(@$patient->mpb_remaining)}}
@endif @endif @if($_cpc->plan_type === 'COMMERCIAL')
Deductible: {{@$_cpc->deductible_amount}}
@endif @endif @endif
@if(!$patient->getPrimaryCoverage() || $patient->getPrimaryCoverageStatus() !== 'YES')
@include('app.patient.coverage-status')
@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(); ?>
{{$patient->sticky_note ?? '-' }}
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