|
@@ -539,22 +539,26 @@
|
|
$shortcuts = "";
|
|
$shortcuts = "";
|
|
$latestSectionTS = 0;
|
|
$latestSectionTS = 0;
|
|
?>
|
|
?>
|
|
- <div class="{{ $note->is_signed_by_hcp ? 'note-signed-by-hcp' : '' }} {{$isVisitTemplateBased && $note->visitTemplate->internal_name === 'soap_visit' ? 'w-30' : ''}}">
|
|
|
|
- @if($isVisitTemplateBased && $doesVisitTemplateLayoutExist)
|
|
|
|
- @include($visitLayoutPath)
|
|
|
|
- @elseif($isVisitTemplateBased && !$doesVisitTemplateUiConfigExist)
|
|
|
|
- @include('app.patient.note.note-segment-list')
|
|
|
|
- @elseif($isVisitTemplateBased && $doesVisitTemplateUiConfigExist)
|
|
|
|
- @include('app.patient.note.custom-visit')
|
|
|
|
- @else
|
|
|
|
- @include('app.patient.note.note-section-list')
|
|
|
|
- @endif
|
|
|
|
|
|
+ <div class="{{ $note->is_signed_by_hcp ? 'note-signed-by-hcp' : '' }} {{$isVisitTemplateBased && $note->visitTemplate->internal_name === 'soap_visit' ? 'w-30 border-right note-left-panel overflow-auto' : ''}}">
|
|
|
|
+ <div class="min-width-300px">
|
|
|
|
+ @if($isVisitTemplateBased && $doesVisitTemplateLayoutExist)
|
|
|
|
+ @include($visitLayoutPath)
|
|
|
|
+ @elseif($isVisitTemplateBased && !$doesVisitTemplateUiConfigExist)
|
|
|
|
+ @include('app.patient.note.note-segment-list')
|
|
|
|
+ @elseif($isVisitTemplateBased && $doesVisitTemplateUiConfigExist)
|
|
|
|
+ @include('app.patient.note.custom-visit')
|
|
|
|
+ @else
|
|
|
|
+ @include('app.patient.note.note-section-list')
|
|
|
|
+ @endif
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
@if($isVisitTemplateBased && $note->visitTemplate->internal_name === 'soap_visit')
|
|
@if($isVisitTemplateBased && $note->visitTemplate->internal_name === 'soap_visit')
|
|
- <div class="w-70 border-left">
|
|
|
|
- @if($isVisitTemplateBased && !$note->is_signed_by_hcp)
|
|
|
|
- @include('app.patient.note.note-segment-list-rhs')
|
|
|
|
- @endif
|
|
|
|
|
|
+ <div class="w-70 border-left note-right-panel overflow-auto">
|
|
|
|
+ <div class="min-width-700px">
|
|
|
|
+ @if($isVisitTemplateBased && !$note->is_signed_by_hcp)
|
|
|
|
+ @include('app.patient.note.note-segment-list-rhs')
|
|
|
|
+ @endif
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endif
|
|
</div>
|
|
</div>
|
|
@@ -625,8 +629,24 @@
|
|
<div class="d-inline-flex align-items-center flex-grow-1">
|
|
<div class="d-inline-flex align-items-center flex-grow-1">
|
|
@if($patient->has_cm_setup_been_performed)
|
|
@if($patient->has_cm_setup_been_performed)
|
|
<span class="text-nowrap text-success">
|
|
<span class="text-nowrap text-success">
|
|
- <i class="fa fa-check"></i>
|
|
|
|
- <b>Performed</b>
|
|
|
|
|
|
+ @if($patient->cm_setup_note_id === $note->id)
|
|
|
|
+ <i class="fa fa-check"></i>
|
|
|
|
+ <b>Performed on this note</b>
|
|
|
|
+ @elseif($patient->cmSetupNote)
|
|
|
|
+ <i class="fa fa-check"></i>
|
|
|
|
+ <b>Performed on</b>
|
|
|
|
+ <span class="d-inline position-relative on-click-menu">
|
|
|
|
+ <span class="text-primary c-pointer">{{friendly_date($patient->cmSetupNote->effective_dateest)}}</span>
|
|
|
|
+ <div menu right class="bg-white border">
|
|
|
|
+ <a native target="_blank"
|
|
|
|
+ href="<?= route('patients.view.notes.view.dashboard', ['patient' => $patient, 'note' => $patient->cmSetupNote]) ?>"
|
|
|
|
+ class="px-2 py-1 d-block text-nowrap text-sm">Go to note</a>
|
|
|
|
+ </div>
|
|
|
|
+ </span>
|
|
|
|
+ @else
|
|
|
|
+ <i class="fa fa-exclamation-triangle text-warning-mellow"></i>
|
|
|
|
+ <b class="text-warning-mellow">Performed, but CM setup note missing!</b>
|
|
|
|
+ @endif
|
|
</span>
|
|
</span>
|
|
@if($patient->mcp_pro_id === $pro->id || $pro->pro_type === 'ADMIN')
|
|
@if($patient->mcp_pro_id === $pro->id || $pro->pro_type === 'ADMIN')
|
|
<div moe class="ml-3">
|
|
<div moe class="ml-3">
|
|
@@ -768,7 +788,7 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@if($pro->pro_type === 'ADMIN' && $note->was_cm_setup_performed)
|
|
@if($pro->pro_type === 'ADMIN' && $note->was_cm_setup_performed)
|
|
- <div class="d-flex align-items-baseline">
|
|
|
|
|
|
+ <div class="d-flex align-items-baseline mb-3">
|
|
<span class="min-width-140px">Manager Signature:</span>
|
|
<span class="min-width-140px">Manager Signature:</span>
|
|
<div class="d-inline-flex align-items-center flex-grow-1">
|
|
<div class="d-inline-flex align-items-center flex-grow-1">
|
|
@if($note->cm_setup_manager_signature_status !== 'SIGNED')
|
|
@if($note->cm_setup_manager_signature_status !== 'SIGNED')
|
|
@@ -803,6 +823,78 @@
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endif
|
|
|
|
|
|
|
|
+ @if($pro->id === $patient->mcp_pro_id && $note->was_cm_setup_performed)
|
|
|
|
+ <div class="d-flex align-items-baseline">
|
|
|
|
+ <span class="min-width-140px">MCP Signature:</span>
|
|
|
|
+ <div class="d-inline-flex align-items-center flex-grow-1">
|
|
|
|
+ @if($note->cm_setup_mcp_signature_status !== 'SIGNED')
|
|
|
|
+ <div moe class="">
|
|
|
|
+ <a start show>Sign</a>
|
|
|
|
+ <form url="/api/note/updateCmSetupMcpSignatureStatus" class="mcp-theme-1">
|
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
|
+ <input type="hidden" name="mcpSignatureStatus" value="SIGNED">
|
|
|
|
+ <p>Sign CM Setup Performed as MCP?</p>
|
|
|
|
+ <div>
|
|
|
|
+ <button submit class="btn btn-sm btn-success mr-1">Sign</button>
|
|
|
|
+ <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
|
+ </div>
|
|
|
|
+ </form>
|
|
|
|
+ </div>
|
|
|
|
+ @else
|
|
|
|
+ <b>SIGNED</b>
|
|
|
|
+ <div moe class="ml-3">
|
|
|
|
+ <a start show>Undo</a>
|
|
|
|
+ <form url="/api/note/updateCmSetupMcpSignatureStatus" class="mcp-theme-1">
|
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
|
+ <input type="hidden" name="mcpSignatureStatus" value="">
|
|
|
|
+ <p>Undo sign as MCP for CM Setup Performed?</p>
|
|
|
|
+ <div>
|
|
|
|
+ <button submit class="btn btn-sm btn-primary mr-1">Sign</button>
|
|
|
|
+ <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
|
+ </div>
|
|
|
|
+ </form>
|
|
|
|
+ </div>
|
|
|
|
+ @endif
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ @endif
|
|
|
|
+
|
|
|
|
+ @if($pro->id === $patient->default_na_pro_id && $note->was_cm_setup_performed)
|
|
|
|
+ <div class="d-flex align-items-baseline">
|
|
|
|
+ <span class="min-width-140px">Care Coord. Sign.:</span>
|
|
|
|
+ <div class="d-inline-flex align-items-center flex-grow-1">
|
|
|
|
+ @if($note->cm_setup_na_signature_status !== 'SIGNED')
|
|
|
|
+ <div moe class="">
|
|
|
|
+ <a start show>Sign</a>
|
|
|
|
+ <form url="/api/note/updateCmSetupNaSignatureStatus" class="mcp-theme-1">
|
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
|
+ <input type="hidden" name="naSignatureStatus" value="SIGNED">
|
|
|
|
+ <p>Sign CM Setup Performed as Care Coordinator?</p>
|
|
|
|
+ <div>
|
|
|
|
+ <button submit class="btn btn-sm btn-success mr-1">Sign</button>
|
|
|
|
+ <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
|
+ </div>
|
|
|
|
+ </form>
|
|
|
|
+ </div>
|
|
|
|
+ @else
|
|
|
|
+ <b>SIGNED</b>
|
|
|
|
+ <div moe class="ml-3">
|
|
|
|
+ <a start show>Undo</a>
|
|
|
|
+ <form url="/api/note/updateCmSetupNaSignatureStatus" class="mcp-theme-1">
|
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
|
+ <input type="hidden" name="naSignatureStatus" value="">
|
|
|
|
+ <p>Undo sign as Care Coordinator for CM Setup Performed?</p>
|
|
|
|
+ <div>
|
|
|
|
+ <button submit class="btn btn-sm btn-primary mr-1">Sign</button>
|
|
|
|
+ <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
|
+ </div>
|
|
|
|
+ </form>
|
|
|
|
+ </div>
|
|
|
|
+ @endif
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ @endif
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="p-3 border-bottom screen-only" data-non-segment-section="RM Setup">
|
|
<div class="p-3 border-bottom screen-only" data-non-segment-section="RM Setup">
|
|
@@ -2569,6 +2661,8 @@
|
|
<script>
|
|
<script>
|
|
(function() {
|
|
(function() {
|
|
function init() {
|
|
function init() {
|
|
|
|
+ debugger
|
|
|
|
+ initVSplitter('stag-note', $('.note-left-panel'), $('.note-right-panel'));
|
|
@if($note->visitTemplate->internal_name !== 'soap_visit')
|
|
@if($note->visitTemplate->internal_name !== 'soap_visit')
|
|
fixTreeTopAndHeight();
|
|
fixTreeTopAndHeight();
|
|
$(window).on('resize', fixTreeTopAndHeight);
|
|
$(window).on('resize', fixTreeTopAndHeight);
|
|
@@ -2655,6 +2749,14 @@
|
|
addMCInitializer('note-tree', init, '#note-lhs-tree');
|
|
addMCInitializer('note-tree', init, '#note-lhs-tree');
|
|
})();
|
|
})();
|
|
</script>
|
|
</script>
|
|
|
|
+ <script>
|
|
|
|
+ (function() {
|
|
|
|
+ function init() {
|
|
|
|
+ initVSplitter('stag-note', $('.note-left-panel'), $('.note-right-panel'));
|
|
|
|
+ }
|
|
|
|
+ addMCInitializer('note-splitter', init, '#note-single-header');
|
|
|
|
+ })();
|
|
|
|
+ </script>
|
|
@endif
|
|
@endif
|
|
@endsection
|
|
@endsection
|
|
@if(!$isVisitTemplateBased)
|
|
@if(!$isVisitTemplateBased)
|