|
@@ -1,47 +1,84 @@
|
|
<div class="p-3 border-bottom note-section visit-segment {{$note->is_signed_by_hcp ? '' : 'edit-trigger'}}"
|
|
<div class="p-3 border-bottom note-section visit-segment {{$note->is_signed_by_hcp ? '' : 'edit-trigger'}}"
|
|
- data-segment-uid="{{ $segment->uid }}"
|
|
|
|
- data-segment-template-uid="{{ $segment->segmentTemplate->uid }}"
|
|
|
|
- data-segment-template-name="{{ $segment->segmentTemplate->internal_name }}">
|
|
|
|
-
|
|
|
|
- <div class="d-flex align-items-baseline">
|
|
|
|
-
|
|
|
|
- <!-- show hierarchy -->
|
|
|
|
- @if($segment->heading)
|
|
|
|
- <span class="text-secondary">{{$segment->heading}}</span>
|
|
|
|
- <i class="text-secondary text-sm fa fa-arrow-right mx-2"></i>
|
|
|
|
- @endif
|
|
|
|
- @if($segment->subheading)
|
|
|
|
- <span class="text-secondary">{{$segment->subheading}}</span>
|
|
|
|
- <i class="text-secondary text-sm fa fa-arrow-right mx-2"></i>
|
|
|
|
- @endif
|
|
|
|
-
|
|
|
|
- <!-- title -->
|
|
|
|
- <span class="font-weight-bold mb-2 d-flex align-items-center">
|
|
|
|
|
|
+ data-segment-uid="{{ $segment->uid }}"
|
|
|
|
+ data-segment-template-uid="{{ $segment->segmentTemplate->uid }}"
|
|
|
|
+ data-segment-template-name="{{ $segment->segmentTemplate->internal_name }}">
|
|
|
|
+
|
|
|
|
+ <div class="d-flex align-items-baseline">
|
|
|
|
+
|
|
|
|
+ <!-- show hierarchy -->
|
|
|
|
+ @if($segment->heading)
|
|
|
|
+ <span class="text-secondary">{{$segment->heading}}</span>
|
|
|
|
+ <i class="text-secondary text-sm fa fa-arrow-right mx-2"></i>
|
|
|
|
+ @endif
|
|
|
|
+ @if($segment->subheading)
|
|
|
|
+ <span class="text-secondary">{{$segment->subheading}}</span>
|
|
|
|
+ <i class="text-secondary text-sm fa fa-arrow-right mx-2"></i>
|
|
|
|
+ @endif
|
|
|
|
+
|
|
|
|
+ <!-- title -->
|
|
|
|
+ <span class="font-weight-bold mb-2 d-flex align-items-center">
|
|
{{$segment->display_title}}
|
|
{{$segment->display_title}}
|
|
</span>
|
|
</span>
|
|
|
|
|
|
- @if(!$note->is_signed_by_hcp)
|
|
|
|
- <a class="edit-trigger d-none if-edit c-pointer ml-3">Close</a>
|
|
|
|
|
|
+ @if(!$note->is_signed_by_hcp)
|
|
|
|
+ <a class="edit-trigger d-none if-edit c-pointer ml-3">Close</a>
|
|
|
|
+
|
|
|
|
+ <!-- refresh -->
|
|
|
|
+ <span class="mx-2 text-secondary text-sm">|</span>
|
|
|
|
+ <a class="font-weight-normal refresh-segment c-pointer"
|
|
|
|
+ data-segment-uid="{{$segment->uid}}"
|
|
|
|
+ title="Update with latest patient data">
|
|
|
|
+ Refresh
|
|
|
|
+ </a>
|
|
|
|
+
|
|
|
|
+ @include('app/patient/note/_templates-v2-index', ['sectionInternalName' => $segment->segmentTemplate->internal_name])
|
|
|
|
+ @endif
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <!-- popup hack for LS segments -->
|
|
|
|
+ <?php if(strpos($segment->segmentTemplate->internal_name, 'lifestyle_') === 0): ?>
|
|
|
|
+
|
|
|
|
+ <span class="text-info">(click to view)</span>
|
|
|
|
+
|
|
|
|
+ <?php else: ?>
|
|
|
|
|
|
- <!-- refresh -->
|
|
|
|
- <span class="mx-2 text-secondary text-sm">|</span>
|
|
|
|
- <a class="font-weight-normal refresh-segment c-pointer"
|
|
|
|
- data-segment-uid="{{$segment->uid}}"
|
|
|
|
- title="Update with latest patient data">
|
|
|
|
- Refresh
|
|
|
|
- </a>
|
|
|
|
|
|
+ <div class="d-none if-not-edit inset-comment summary-container">
|
|
|
|
+ {!! $segment->summary_html !!}
|
|
|
|
+ </div>
|
|
|
|
|
|
- @include('app/patient/note/_templates-v2-index', ['sectionInternalName' => $segment->segmentTemplate->internal_name])
|
|
|
|
- @endif
|
|
|
|
|
|
+ <div class="d-none if-edit edit-container">
|
|
|
|
+ {!! $segment->edit_html !!}
|
|
|
|
+ </div>
|
|
|
|
|
|
- </div>
|
|
|
|
|
|
+ <?php endif ?>
|
|
|
|
|
|
- <div class="d-none if-not-edit inset-comment summary-container">
|
|
|
|
- {!! $segment->summary_html !!}
|
|
|
|
- </div>
|
|
|
|
|
|
+</div>
|
|
|
|
|
|
- <div class="d-none if-edit edit-container">
|
|
|
|
- {!! $segment->edit_html !!}
|
|
|
|
- </div>
|
|
|
|
|
|
+<!-- popup hack for LS segments -->
|
|
|
|
+<?php if(strpos($segment->segmentTemplate->internal_name, 'lifestyle_') === 0): ?>
|
|
|
|
+<div class="stag-popup stag-popup-md"
|
|
|
|
+ stag-popup-key="segment-popup-<?= $segment->segmentTemplate->internal_name ?>">
|
|
|
|
+ <div class="stag-popup-content">
|
|
|
|
+ <h3 class="stag-popup-title m-neg-3 px-3 mt-0 pb-3 border-bottom mb-3 pt-1">
|
|
|
|
+ <span class="d-inline-flex align-items-center">
|
|
|
|
+ @if($segment->subheading)
|
|
|
|
+ {{$segment->subheading}}
|
|
|
|
+ <i class="text-secondary text-sm fa fa-arrow-right mx-2"></i>
|
|
|
|
+ @endif
|
|
|
|
+ {{$segment->display_title}}
|
|
|
|
+ </span>
|
|
|
|
|
|
-</div>
|
|
|
|
|
|
+ <a href="#" class="ml-auto text-secondary" onclick="return closeStagPopup()">
|
|
|
|
+ <i class="fa fa-times-circle"></i>
|
|
|
|
+ </a>
|
|
|
|
+ </h3>
|
|
|
|
+{{-- <div class="ls-segment-summary-html">--}}
|
|
|
|
+{{-- {!! $segment->summary_html !!}--}}
|
|
|
|
+{{-- </div>--}}
|
|
|
|
+ <div class="ls-segment-edit-html">
|
|
|
|
+ {!! $segment->edit_html !!}
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+</div>
|
|
|
|
+<?php endif ?>
|