|
@@ -1,4 +1,5 @@
|
|
<?php
|
|
<?php
|
|
|
|
+$patientMcp = $patient->mcp;
|
|
$thumbnail = $patient->profile_picture_base64;
|
|
$thumbnail = $patient->profile_picture_base64;
|
|
$initials = !$thumbnail ? substr($patient->name_first, 0, 1) . substr($patient->name_last, 0, 1) : '';
|
|
$initials = !$thumbnail ? substr($patient->name_first, 0, 1) . substr($patient->name_last, 0, 1) : '';
|
|
$online = $patient->is_online ? 'online' : '';
|
|
$online = $patient->is_online ? 'online' : '';
|
|
@@ -12,7 +13,7 @@ $confirmedEmail = empty($patient->email_address) ? '-' : $patient->email_address
|
|
$location = implode(', ', array_filter([$patient->home_address_city, $patient->home_address_state]));
|
|
$location = implode(', ', array_filter([$patient->home_address_city, $patient->home_address_state]));
|
|
$location = empty($location) ? '-' : $location;
|
|
$location = empty($location) ? '-' : $location;
|
|
|
|
|
|
-$mcpName = $patient->mcp ? implode(', ', array_filter([$patient->mcp->name_last, $patient->mcp->name_first])) : null;
|
|
|
|
|
|
+$mcpName = $patientMcp ? implode(', ', array_filter([$patientMcp->name_last, $patientMcp->name_first])) : null;
|
|
$cmName = $patient->cm ? implode(', ', array_filter([$patient->cm->name_last, $patient->cm->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;
|
|
$memberSince = date_diff(date_create($patient->created_at), date_create('now'))->days;
|
|
@@ -234,7 +235,7 @@ $addressParts .= implode(", ", $addressPart2);
|
|
<div class="position-relative ml-2">
|
|
<div class="position-relative ml-2">
|
|
<div class="screen-only">
|
|
<div class="screen-only">
|
|
<div>
|
|
<div>
|
|
- <label class="{{ $patient->mcp && $patient->mcp->is_hcp ? '':'text-danger' }}">MCP:</label> <span class="{{ $patient->mcp && $patient->mcp->is_hcp ? '':'text-danger' }}">{{$mcpName}}</span>
|
|
|
|
|
|
+ <label class="{{ $patientMcp && $patientMcp->is_hcp ? '':'text-danger' }}">MCP:</label> <span class="{{ $patientMcp && $patientMcp->is_hcp ? '':'text-danger' }}">{{$mcpName}}</span>
|
|
@if($patient->has_mcp_done_onboarding_visit === 'YES')
|
|
@if($patient->has_mcp_done_onboarding_visit === 'YES')
|
|
<i class="fa fa-check text-sm" title="MCP Onboarding Visit Completed"></i>
|
|
<i class="fa fa-check text-sm" title="MCP Onboarding Visit Completed"></i>
|
|
@endif
|
|
@endif
|
|
@@ -243,7 +244,7 @@ $addressParts .= implode(", ", $addressPart2);
|
|
<a start show><i class="fa fa-edit on-hover-opaque"></i></a>
|
|
<a start show><i class="fa fa-edit on-hover-opaque"></i></a>
|
|
@include('app.patient.partials.put-mcp-form')
|
|
@include('app.patient.partials.put-mcp-form')
|
|
</div>
|
|
</div>
|
|
- @if($patient->mcp)
|
|
|
|
|
|
+ @if($patientMcp)
|
|
<div moe class="ml-2 hide-inside-popup">
|
|
<div moe class="ml-2 hide-inside-popup">
|
|
<a start show><i class="fa fa-times on-hover-opaque"></i></a>
|
|
<a start show><i class="fa fa-times on-hover-opaque"></i></a>
|
|
<form url="/api/client/removeMcp" class="mcp-theme-1">
|
|
<form url="/api/client/removeMcp" class="mcp-theme-1">
|
|
@@ -263,15 +264,15 @@ $addressParts .= implode(", ", $addressPart2);
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endif
|
|
@endif
|
|
@endif
|
|
- @if($patient->mcp && $pro->pro_type === 'ADMIN' && $pro->uid !== $patient->mcp->uid)
|
|
|
|
- <form action="{{route('process-log-in-as')}}?redir={{request()->url()}}" onsubmit="window.top.localStorage.currentProUid = '{{$patient->mcp->uid}}';" method="POST" target="_top" class="d-inline-block">
|
|
|
|
|
|
+ @if($patientMcp && $pro->pro_type === 'ADMIN' && $pro->uid !== $patientMcp->uid)
|
|
|
|
+ <form action="{{route('process-log-in-as')}}?redir={{request()->url()}}" onsubmit="window.top.localStorage.currentProUid = '{{$patientMcp->uid}}';" method="POST" target="_top" class="d-inline-block">
|
|
@csrf
|
|
@csrf
|
|
- <input type="hidden" name="proUid" value="{{$patient->mcp->uid}}">
|
|
|
|
|
|
+ <input type="hidden" name="proUid" value="{{$patientMcp->uid}}">
|
|
<button class="bg-transparent text-primary border-0 text-sm"><i class="fa fa-user on-hover-opaque"></i></button>
|
|
<button class="bg-transparent text-primary border-0 text-sm"><i class="fa fa-user on-hover-opaque"></i></button>
|
|
</form>
|
|
</form>
|
|
@endif
|
|
@endif
|
|
- @if($patient->mcp && !$patient->mcp->is_hcp)
|
|
|
|
- <small class="text-danger font-weight-bold"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ $patient->mcp->name_first }} is no longer HCP. Reassign.</small>
|
|
|
|
|
|
+ @if($patientMcp && !$patientMcp->is_hcp)
|
|
|
|
+ <small class="text-danger font-weight-bold"><i class="fas fa-exclamation-triangle fa-fw"></i> {{ $patientMcp->name_first }} is no longer HCP. Reassign.</small>
|
|
@endif
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
@@ -441,7 +442,7 @@ $addressParts .= implode(", ", $addressPart2);
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endif
|
|
<div class="bg-light p-2 border d-none">
|
|
<div class="bg-light p-2 border d-none">
|
|
- @if($patient->mcp && $patient->mcp->id === $pro->id || $pro->pro_type == 'ADMIN')
|
|
|
|
|
|
+ @if($patientMcp && $patientMcp->id === $pro->id || $pro->pro_type == 'ADMIN')
|
|
<div>
|
|
<div>
|
|
<label>Status (mcp):</label>
|
|
<label>Status (mcp):</label>
|
|
<span>{!! $patient->mcpEngagementAssessmentStatus && $patient->mcpEngagementAssessmentStatus->status_category ? ucwords(strtolower(str_replace('_', ' ', $patient->mcpEngagementAssessmentStatus->status_category))) : '<span class="text-danger">Not
|
|
<span>{!! $patient->mcpEngagementAssessmentStatus && $patient->mcpEngagementAssessmentStatus->status_category ? ucwords(strtolower(str_replace('_', ' ', $patient->mcpEngagementAssessmentStatus->status_category))) : '<span class="text-danger">Not
|