|
@@ -415,45 +415,28 @@ $isVisitNote = ($routeName === 'patients.view.notes.view.dashboard' && @$note &&
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="screen-only">
|
|
|
- <div class=separators>
|
|
|
- <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"></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 class=separators>
|
|
|
+ <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-times"></i></a>
|
|
|
- <form url="/api/client/removeMcp" class="mcp-theme-1">
|
|
|
+ <a start show><i class="fa fa-edit"></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">Remove MCP Pro</label>
|
|
|
-
|
|
|
+ <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 submit class="btn btn-sm btn-primary mr-1">
|
|
|
+ Submit
|
|
|
</button>
|
|
|
<button cancel class="btn btn-sm btn-default border">
|
|
|
Cancel
|
|
@@ -461,75 +444,94 @@ $isVisitNote = ($routeName === 'patients.view.notes.view.dashboard' && @$note &&
|
|
|
</div>
|
|
|
</form>
|
|
|
</div>
|
|
|
+ @if($patient->mcp)
|
|
|
+ <div moe class="ml-2 hide-inside-popup">
|
|
|
+ <a start show><i class="fa fa-times"></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
|
|
|
- @endif
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- @if($patient->has_mcp_done_onboarding_visit !== 'YES')
|
|
|
- <span class="text-dark d-inline-flex align-items-center">
|
|
|
- <span class="mr-2">
|
|
|
- <i class="fa fa-exclamation-triangle"></i>
|
|
|
- MCP Onboarding Visit Pending
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ @if($patient->has_mcp_done_onboarding_visit !== 'YES')
|
|
|
+ <span class="text-dark d-inline-flex align-items-center">
|
|
|
+ <span class="mr-2">
|
|
|
+ <i class="fa fa-exclamation-triangle"></i>
|
|
|
+ MCP Onboarding Visit Pending
|
|
|
+ </span>
|
|
|
</span>
|
|
|
- </span>
|
|
|
- <span moe class="hide-inside-popup">
|
|
|
- <a start show><i class="fa fa-edit"></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>
|
|
|
- MCP Onboarding Visit Completed
|
|
|
+ <span moe class="hide-inside-popup">
|
|
|
+ <a start show><i class="fa fa-edit"></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>
|
|
|
- </span>
|
|
|
- @endif
|
|
|
- </div>
|
|
|
+ @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>
|
|
|
+ MCP Onboarding Visit Completed
|
|
|
+ </span>
|
|
|
+ </span>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
<div>
|
|
|
<label>Physician:</label> {{$patient->pcp ? $patient->pcp->displayName() : '-' }}
|
|
|
@if($pro->pro_type == 'ADMIN')
|