|
@@ -39,6 +39,8 @@
|
|
|
$segmentMap[$segment->segmentTemplate->internal_name] = $segment;
|
|
|
endforeach;
|
|
|
|
|
|
+ $hasRightSegments = $isVisitTemplateBased && !!count($note->segmentsRight);
|
|
|
+
|
|
|
?>
|
|
|
<div id="note-single-header" class="pb-3 d-flex align-items-start screen-only zero-height note_template_{{$note->visitTemplate ? $note->visitTemplate->internal_name : ''}}">
|
|
|
<h6 class="my-0 text-secondary d-flex align-items-center w-100">
|
|
@@ -349,7 +351,7 @@
|
|
|
@if(!$note->is_signed_by_hcp || $pro->pro_type === 'ADMIN')
|
|
|
<div moe class="ml-auto">
|
|
|
<a href="" show start><i class="fa fa-edit"></i></a>
|
|
|
- <form url="/api/note/updateMethod" {!! $isVisitTemplateBased && $note->visitTemplate->internal_name === 'soap_visit' ? 'hook="onNoteMethodUpdate"' : '' !!}>
|
|
|
+ <form url="/api/note/updateMethod" hook="onNoteMethodUpdate">
|
|
|
<input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
<div class="mb-2">
|
|
|
<select name="method" class="form-control form-control-sm note-method-select" required>
|
|
@@ -539,13 +541,13 @@
|
|
|
</div>
|
|
|
<div class="card-body p-0">
|
|
|
<div class="note-container note_template_{{$note->visitTemplate ? $note->visitTemplate->internal_name : ''}}">
|
|
|
- @if($isVisitTemplateBased && !$doesVisitTemplateUiConfigExist && $note->visitTemplate->internal_name !== 'soap_visit')
|
|
|
+ @if(!$hasRightSegments)
|
|
|
@include('app.patient.note.lhs-tree')
|
|
|
@endif
|
|
|
<div class="note-rhs-content">
|
|
|
<div>
|
|
|
<div class="border-bottom pb-3">
|
|
|
- <div class="{{$isVisitTemplateBased && $note->visitTemplate->internal_name === 'soap_visit' ? 'd-flex align-items-stretch' : ''}}">
|
|
|
+ <div class="{{$hasRightSegments ? 'd-flex align-items-stretch' : ''}}">
|
|
|
<?php
|
|
|
$shortCutsObject = [];
|
|
|
foreach ($pro->allShortcuts() as $shortcut) {
|
|
@@ -615,7 +617,7 @@
|
|
|
$shortcuts = "";
|
|
|
$latestSectionTS = 0;
|
|
|
?>
|
|
|
- <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 stag-scrollbar' : ''}}">
|
|
|
+ <div class="{{ $note->is_signed_by_hcp ? 'note-signed-by-hcp' : '' }} {{$hasRightSegments ? 'w-30 border-right note-left-panel stag-scrollbar' : ''}}">
|
|
|
<div class="min-width-300px stag-scrollbar">
|
|
|
@if($isVisitTemplateBased && $doesVisitTemplateLayoutExist)
|
|
|
@include($visitLayoutPath)
|
|
@@ -628,7 +630,7 @@
|
|
|
@endif
|
|
|
</div>
|
|
|
</div>
|
|
|
- @if($isVisitTemplateBased && $note->visitTemplate->internal_name === 'soap_visit')
|
|
|
+ @if($hasRightSegments)
|
|
|
<div class="w-70 border-left note-right-panel stag-scrollbar">
|
|
|
<div class="min-width-700px">
|
|
|
@include('app.patient.note.note-segment-list-rhs')
|
|
@@ -646,13 +648,10 @@
|
|
|
@include('app.patient.handouts-list', compact('patient', 'handouts'))
|
|
|
</div>
|
|
|
|
|
|
- @if($isVisitTemplateBased && $doesVisitTemplateUiConfigExist)
|
|
|
-
|
|
|
- @else
|
|
|
<div class="p-3 border-bottom screen-only" data-non-segment-section="Prescriptions">
|
|
|
@include('app.patient.prescriptions.list', compact('patient', 'note'))
|
|
|
</div>
|
|
|
- @endif
|
|
|
+
|
|
|
|
|
|
<div class="p-3 border-bottom screen-only" data-non-segment-section="Supply Orders Summary">
|
|
|
<div class="">
|
|
@@ -2449,7 +2448,7 @@
|
|
|
@endif
|
|
|
|
|
|
</div>
|
|
|
- @if($isVisitTemplateBased && !$note->is_signed_by_hcp && $note->visitTemplate->internal_name !== 'soap_visit')
|
|
|
+ @if(!$hasRightSegments)
|
|
|
@include('app.patient.note.rhs-sidebar')
|
|
|
@endif
|
|
|
</div>
|
|
@@ -2464,11 +2463,10 @@
|
|
|
<script>
|
|
|
(function() {
|
|
|
function init() {
|
|
|
- @if($note->visitTemplate->internal_name !== 'soap_visit')
|
|
|
+ @if(!$hasRightSegments)
|
|
|
fixTreeTopAndHeight();
|
|
|
$(window).on('resize', fixTreeTopAndHeight);
|
|
|
$(window).on('scroll', fixTreeTopAndHeight);
|
|
|
- @endif
|
|
|
$('.note-tree-node>a[data-segment-uid]')
|
|
|
.off('click.scroll-to-segment')
|
|
|
.on('click.scroll-to-segment', function() {
|
|
@@ -2495,6 +2493,7 @@
|
|
|
$(this).parent().find('>.note-tree-children>.note-tree-node>a[data-segment-uid]').first().trigger('click');
|
|
|
return false;
|
|
|
});
|
|
|
+ @endif
|
|
|
$(document)
|
|
|
.off('click.scroll-to-non-segment', '[data-non-segment-target]')
|
|
|
.on('click.scroll-to-non-segment', '[data-non-segment-target]', function() {
|
|
@@ -2550,12 +2549,14 @@
|
|
|
addMCInitializer('note-tree', init, '#note-lhs-tree');
|
|
|
})();
|
|
|
</script>
|
|
|
- @if($isVisitTemplateBased && $note->visitTemplate->internal_name === 'soap_visit')
|
|
|
+ @if($isVisitTemplateBased)
|
|
|
<script>
|
|
|
(function() {
|
|
|
function init() {
|
|
|
+ @if($hasRightSegments)
|
|
|
initVSplitter('stag-note', $('.note-left-panel'), $('.note-right-panel'));
|
|
|
initStagScrollbar({{$note->is_signed_by_hcp ? 1 : 34}});
|
|
|
+ @endif
|
|
|
addMCHook('onNoteMethodUpdate', function() {
|
|
|
$('.visit-segment[data-segment-template-name="disclaimers"]').find('.refresh-segment').trigger('click');
|
|
|
fastReload();
|