|
@@ -84,7 +84,7 @@ $addressParts .= implode(", ", $addressPart2);
|
|
|
(<b>{{round($patient->most_recent_cellular_weight_value, 1)}}</b>@if($patient->most_recent_cellular_weight_measurement_at), {{friendly_date_short($patient->most_recent_cellular_weight_measurement_at)}}@endif)
|
|
|
@endif
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
|
|
|
<?php $currentCareMonth = $patient->currentCareMonth(); ?>
|
|
|
@if($currentCareMonth && ($pro->pro_type === 'ADMIN' || $pro->id === $currentCareMonth->mcp_pro_id))
|
|
@@ -166,9 +166,116 @@ $addressParts .= implode(", ", $addressPart2);
|
|
|
</div> -->
|
|
|
<div class="position-relative ml-2">
|
|
|
<div class="screen-only">
|
|
|
+ <div>
|
|
|
+ <label>MCP:</label> {{$mcpName}}
|
|
|
+ @if($patient->has_mcp_done_onboarding_visit === 'YES')
|
|
|
+ <i class="fa fa-check text-sm" title="MCP Onboarding Visit Completed"></i>
|
|
|
+ @endif
|
|
|
+ @if($patient->has_mcp_done_onboarding_visit !== 'YES' && $pro->pro_type == 'ADMIN')
|
|
|
+ <div moe class="ml-2 hide-inside-popup">
|
|
|
+ <a start show><i class="fa fa-edit on-hover-opaque"></i></a>
|
|
|
+ <form url="/api/client/putMcp" class="mcp-theme-1">
|
|
|
+ <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="text-secondary text-sm">MCP Pro</label>
|
|
|
+ <select name="mcpProUid" provider-search data-pro-uid="{{ @$patient->mcp->uid }}" class="form-control form-control-sm">
|
|
|
+ <option value=""> --select--</option>
|
|
|
+ @foreach($pros as $iPro)
|
|
|
+ <option value="{{$iPro->uid}}" {{ $patient->mcp && $iPro->uid === $patient->mcp->uid ? 'selected' : '' }}>{{$iPro->displayName()}}</option>
|
|
|
+ @endforeach
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <button submit class="btn btn-sm btn-primary mr-1">
|
|
|
+ Submit
|
|
|
+ </button>
|
|
|
+ <button cancel class="btn btn-sm btn-default border">
|
|
|
+ Cancel
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ @if($patient->mcp)
|
|
|
+ <div moe class="ml-2 hide-inside-popup">
|
|
|
+ <a start show><i class="fa fa-times on-hover-opaque"></i></a>
|
|
|
+ <form url="/api/client/removeMcp" class="mcp-theme-1">
|
|
|
+ <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="text-secondary text-sm">Remove MCP Pro</label>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <button submit class="btn btn-sm btn-primary mr-1">Submit
|
|
|
+ </button>
|
|
|
+ <button cancel class="btn btn-sm btn-default border">
|
|
|
+ Cancel
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ @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">
|
|
|
+ @csrf
|
|
|
+ <input type="hidden" name="proUid" value="{{$patient->mcp->uid}}">
|
|
|
+ <button class="bg-transparent text-primary border-0 text-sm"><i class="fa fa-user on-hover-opaque"></i></button>
|
|
|
+ </form>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <label>CC:</label> {{$patient->defaultNaPro ? $patient->defaultNaPro->displayName() : '-' }}
|
|
|
+ @if($pro->pro_type == 'ADMIN')
|
|
|
+ <div moe class="ml-2 hide-inside-popup">
|
|
|
+ <a start show><i class="fa fa-edit on-hover-opaque text-sm"></i></a>
|
|
|
+ <form url="/api/client/putDefaultNaPro" class="mcp-theme-1">
|
|
|
+ <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="text-secondary text-sm">Care Coordinator</label>
|
|
|
+ <select provider-search data-pro-uid="{{ @$patient->defaultNaPro->uid }}" name="defaultNaProUid" class="form-control form-control-sm">
|
|
|
+ <option value=""> --select--</option>
|
|
|
+ @foreach($pros as $iPro)
|
|
|
+ <option value="{{$iPro->uid}}" {{ $patient->pcp && $iPro->uid === $patient->pcp->uid ? 'selected' : '' }}>{{$iPro->displayName()}}</option>
|
|
|
+ @endforeach
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <button submit class="btn btn-sm btn-primary mr-1">Submit
|
|
|
+ </button>
|
|
|
+ <button cancel class="btn btn-sm btn-default border">
|
|
|
+ Cancel
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ @if($patient->pcp)
|
|
|
+ <div moe class="ml-2 hide-inside-popup">
|
|
|
+ <a start show><i class="fa fa-times"></i></a>
|
|
|
+ <form url="/api/client/removeDefaultNaPro" class="mcp-theme-1">
|
|
|
+ <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="text-secondary text-sm">Remove Care Coordinator</label>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
|
|
|
+ <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ @endif
|
|
|
+ @if($patient->defaultNaPro && $pro->pro_type === 'ADMIN' && $pro->uid !== $patient->defaultNaPro->uid)
|
|
|
+ <form action="{{route('process-log-in-as')}}?redir={{request()->url()}}" onsubmit="window.top.localStorage.currentProUid = '{{$patient->defaultNaPro->uid}}';" method="POST" target="_top" class="d-inline-block">
|
|
|
+ @csrf
|
|
|
+ <input type="hidden" name="proUid" value="{{$patient->defaultNaPro->uid}}">
|
|
|
+ <button class="bg-transparent text-primary border-0 text-sm"><i class="fa fa-user on-hover-opaque"></i></button>
|
|
|
+ </form>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
<div class="">
|
|
|
<span>Status:</small>
|
|
|
- <b>{{$patient->client_engagement_status_category ? ucwords(strtolower(str_replace('_', ' ', $patient->client_engagement_status_category == 'DUMMY' ? 'Test Chart' : $patient->client_engagement_status_category))) : '-'}}</b>
|
|
|
+ {{$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')
|
|
|
<div moe class="ml-2 hide-inside-popup">
|
|
@@ -211,49 +318,7 @@ $addressParts .= implode(", ", $addressPart2);
|
|
|
<span>MCP Onboarding Visit Pending</span>
|
|
|
</span>
|
|
|
</span>
|
|
|
- <span moe class="hide-inside-popup">
|
|
|
- <a start show><i class="fa fa-edit on-hover-opaque"></i></a>
|
|
|
- <form url="/api/client/updateMcpOnboardingVisitInfo" class="mcp-theme-1">
|
|
|
- <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
- <div class="mb-2">
|
|
|
- <select name="hasMcpDoneOnboardingVisit" class="form-control form-control-sm" onchange="toggleDisabledAsNeeded(this, 'YES', 'if-visit-done')">
|
|
|
- <option value="">-- Select Status --</option>
|
|
|
- <option value="YES" {{ $patient->has_mcp_done_onboarding_visit === 'YES' ? 'selected' : '' }}>YES</option>
|
|
|
- <option value="NO" {{ $patient->has_mcp_done_onboarding_visit === 'NO' ? 'selected' : '' }}>NO</option>
|
|
|
- <option value="UNKNOWN" {{ $patient->has_mcp_done_onboarding_visit === 'UNKNOWN' ? 'selected' : '' }}>UNKNOWN</option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="date" class="if-visit-done form-control form-control-sm" disabled name="mcpOnboardingVisitDate" value="{{ date('Y-m-d') }}" max="{{ date('Y-m-d') }}">
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <select name="mcpOnboardingVisitNoteUid" disabled class="form-control form-control-sm if-visit-done" onchange="if(this.value === '-- create --') createNewNote('{{$patient->uid}}', '{{$pro->uid}}', '{{date('Y-m-d')}}');">
|
|
|
- <option value="">-- Visit Note --</option>
|
|
|
- <?php $notes = \App\Models\Note::where('client_id', $patient->id)->get() ?>
|
|
|
- @foreach ($notes as $note)
|
|
|
- @if(!empty($note->title) && $note->client_id === $patient->id && !$note->is_cancelled)
|
|
|
- <option {{ $patient->mcp_onboarding_visit_note_id === $note->id ? 'selected' : '' }} value="{{$note->uid}}">{{$note->hcpPro->displayName()}} ({{friendly_date_time($note->effective_dateest, false)}})</option>
|
|
|
- @endif
|
|
|
- @endforeach
|
|
|
- {{--<option value="-- create --">-- Create Note --</option>--}}
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div class="mb-2 if-note-outside-system">
|
|
|
- <textarea class="form-control form-control-sm" name="reasonOnboardingVisitNoteOutsideSystem" placeholder="Visit note outside the system reason" spellcheck="false" data-gramm="false"></textarea>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
|
|
|
- <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </span>
|
|
|
- @else
|
|
|
- <span class="text-dark d-inline-flex align-items-center">
|
|
|
- <span class="mr-2 text-secondary">
|
|
|
- <i class="fa fa-check text-sm"></i>
|
|
|
- <span>MCP Onboarding Visit Completed</span>
|
|
|
- </span>
|
|
|
- </span>
|
|
|
+ @include('app.patient.partials.update-mcp-onboarding-visit-info')
|
|
|
@endif
|
|
|
</div>
|
|
|
</div>
|
|
@@ -296,65 +361,11 @@ $addressParts .= implode(", ", $addressPart2);
|
|
|
|
|
|
|
|
|
@if(!$patient->getPrimaryCoverage() || $patient->getPrimaryCoverageStatus() !== 'YES')
|
|
|
- <div class="d-flex bg-light p-2 border header-coverage-status">
|
|
|
+ <div class="d-flex bg-light p-2 border header-coverage-status" style="max-width: 305px;">
|
|
|
@include('app.patient.coverage-status')
|
|
|
</div>
|
|
|
@endif
|
|
|
- <div class="bg-light p-2 border">
|
|
|
- <div>
|
|
|
- <label>MCP:</label> {{$mcpName}}
|
|
|
- @if($patient->has_mcp_done_onboarding_visit !== 'YES' && $pro->pro_type == 'ADMIN')
|
|
|
- <div moe class="ml-2 hide-inside-popup">
|
|
|
- <a start show><i class="fa fa-edit on-hover-opaque"></i></a>
|
|
|
- <form url="/api/client/putMcp" class="mcp-theme-1">
|
|
|
- <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
- <div class="mb-2">
|
|
|
- <label class="text-secondary text-sm">MCP Pro</label>
|
|
|
- <select name="mcpProUid" provider-search data-pro-uid="{{ @$patient->mcp->uid }}" class="form-control form-control-sm">
|
|
|
- <option value=""> --select--</option>
|
|
|
- @foreach($pros as $iPro)
|
|
|
- <option value="{{$iPro->uid}}" {{ $patient->mcp && $iPro->uid === $patient->mcp->uid ? 'selected' : '' }}>{{$iPro->displayName()}}</option>
|
|
|
- @endforeach
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <button submit class="btn btn-sm btn-primary mr-1">
|
|
|
- Submit
|
|
|
- </button>
|
|
|
- <button cancel class="btn btn-sm btn-default border">
|
|
|
- Cancel
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
- @if($patient->mcp)
|
|
|
- <div moe class="ml-2 hide-inside-popup">
|
|
|
- <a start show><i class="fa fa-times on-hover-opaque"></i></a>
|
|
|
- <form url="/api/client/removeMcp" class="mcp-theme-1">
|
|
|
- <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
- <div class="mb-2">
|
|
|
- <label class="text-secondary text-sm">Remove MCP Pro</label>
|
|
|
-
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <button submit class="btn btn-sm btn-primary mr-1">Submit
|
|
|
- </button>
|
|
|
- <button cancel class="btn btn-sm btn-default border">
|
|
|
- Cancel
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
- @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">
|
|
|
- @csrf
|
|
|
- <input type="hidden" name="proUid" value="{{$patient->mcp->uid}}">
|
|
|
- <button class="bg-transparent text-primary border-0 text-sm"><i class="fa fa-user on-hover-opaque"></i></button>
|
|
|
- </form>
|
|
|
- @endif
|
|
|
- </div>
|
|
|
+ <div class="bg-light p-2 border d-none">
|
|
|
@if($patient->mcp && $patient->mcp->id === $pro->id || $pro->pro_type == 'ADMIN')
|
|
|
<div>
|
|
|
<label>Status (mcp):</label>
|
|
@@ -394,56 +405,7 @@ $addressParts .= implode(", ", $addressPart2);
|
|
|
</div>
|
|
|
</div>
|
|
|
@endif
|
|
|
- <div>
|
|
|
- <label>CC:</label> {{$patient->defaultNaPro ? $patient->defaultNaPro->displayName() : '-' }}
|
|
|
- @if($pro->pro_type == 'ADMIN')
|
|
|
- <div moe class="ml-2 hide-inside-popup">
|
|
|
- <a start show><i class="fa fa-edit on-hover-opaque text-sm"></i></a>
|
|
|
- <form url="/api/client/putDefaultNaPro" class="mcp-theme-1">
|
|
|
- <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
- <div class="mb-2">
|
|
|
- <label class="text-secondary text-sm">Care Coordinator</label>
|
|
|
- <select provider-search data-pro-uid="{{ @$patient->defaultNaPro->uid }}" name="defaultNaProUid" class="form-control form-control-sm">
|
|
|
- <option value=""> --select--</option>
|
|
|
- @foreach($pros as $iPro)
|
|
|
- <option value="{{$iPro->uid}}" {{ $patient->pcp && $iPro->uid === $patient->pcp->uid ? 'selected' : '' }}>{{$iPro->displayName()}}</option>
|
|
|
- @endforeach
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <button submit class="btn btn-sm btn-primary mr-1">Submit
|
|
|
- </button>
|
|
|
- <button cancel class="btn btn-sm btn-default border">
|
|
|
- Cancel
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
- @if($patient->pcp)
|
|
|
- <div moe class="ml-2 hide-inside-popup">
|
|
|
- <a start show><i class="fa fa-times"></i></a>
|
|
|
- <form url="/api/client/removeDefaultNaPro" class="mcp-theme-1">
|
|
|
- <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
- <div class="mb-2">
|
|
|
- <label class="text-secondary text-sm">Remove Care Coordinator</label>
|
|
|
-
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
|
|
|
- <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
- @endif
|
|
|
- @endif
|
|
|
- @if($patient->defaultNaPro && $pro->pro_type === 'ADMIN' && $pro->uid !== $patient->defaultNaPro->uid)
|
|
|
- <form action="{{route('process-log-in-as')}}?redir={{request()->url()}}" onsubmit="window.top.localStorage.currentProUid = '{{$patient->defaultNaPro->uid}}';" method="POST" target="_top" class="d-inline-block">
|
|
|
- @csrf
|
|
|
- <input type="hidden" name="proUid" value="{{$patient->defaultNaPro->uid}}">
|
|
|
- <button class="bg-transparent text-primary border-0 text-sm"><i class="fa fa-user on-hover-opaque"></i></button>
|
|
|
- </form>
|
|
|
- @endif
|
|
|
- </div>
|
|
|
+
|
|
|
@if($patient->defaultNaPro && $patient->defaultNaPro->id === $pro->id || $pro->pro_type == 'ADMIN')
|
|
|
<div>
|
|
|
<label>Status (cc):</label>
|
|
@@ -485,10 +447,11 @@ $addressParts .= implode(", ", $addressPart2);
|
|
|
@endif
|
|
|
</div>
|
|
|
|
|
|
- <div class="bg-light p-2 border" style="max-width: 215px;">
|
|
|
+ <div class="bg-light p-2 border ml-auto" style="max-width: 215px;">
|
|
|
<div>
|
|
|
<div class="d-flex">
|
|
|
<label class="">Sticky Note:</label>
|
|
|
+ @include('app.patient.partials.sticky-notes-history')
|
|
|
<div moe relative wide class="ml-2 hide-inside-popup">
|
|
|
<a start show><i class="fa fa-edit on-hover-opaque"></i></a>
|
|
|
<form url="/api/client/updateStickyNote" class="mcp-theme-1" right>
|