Pārlūkot izejas kodu

Omega - mask only refreshing segment

Vijayakrishnan 3 gadi atpakaļ
vecāks
revīzija
4763de2e8c

+ 17 - 0
public/css/style.css

@@ -3095,4 +3095,21 @@ body.forced-masking #mask {
 }
 .note-container.note_template_omega_soap_visit .mcp-theme-1 .ql-editor[contenteditable] {
     min-height: 100px;
+}
+.note-section.visit-segment.refreshing {
+    opacity: 0.6;
+    position: relative;
+}
+.note-section.visit-segment.refreshing::after {
+    position: absolute;
+    content: '';
+    top: 0;
+    left: 0;
+    width: 100%;
+    height: 100%;
+    background-image: url(/vanillaspin.gif);
+    background-repeat: no-repeat;
+    background-position: center center;
+    background-size: 20px;
+    z-index: 9999;
 }

+ 8 - 1
resources/views/app/patient/module-specific-summary-renderers/behavior/subjective.blade.php

@@ -1,6 +1,13 @@
 @if($points && count($points))
     <div class="d-flex border-bottom">
-        <b class="mr-2 min-width-110px">Behavior Rx</b>
+        <a class="mr-2 min-width-110px font-weight-bold"
+           open-in-stag-popup
+           href="/behavior-center/{{$note->client->uid}}/{{$note->uid}}"
+           mc-initer="behavior-center-{{$note->id}}"
+           title="<img src='/img/behavior-rx.png'/> Behavior Rx"
+           popup-style="medium-large overflow-visible">
+            Behavior Rx
+        </a>
         <div class="flex-grow-1">
             <table class="table table-bordered table-xs table-cage mb-0">
                 <?php $j = 0; foreach ($points as $point): $j++; ?>

+ 8 - 1
resources/views/app/patient/module-specific-summary-renderers/exercise/subjective.blade.php

@@ -1,6 +1,13 @@
 @if($points && count($points))
     <div class="d-flex border-bottom">
-        <b class="mr-2 min-width-110px">Exercise Rx</b>
+        <a class="mr-2 min-width-110px font-weight-bold"
+           open-in-stag-popup
+           href="/exercise-center/{{$note->client->uid}}/{{$note->uid}}"
+           mc-initer="exercise-center-{{$note->id}}"
+           title="<img src='/img/exercise-rx.png'/> Exercise Rx"
+           popup-style="medium-large overflow-visible">
+            Exercise Rx
+        </a>
         <div class="flex-grow-1">
             <table class="table table-bordered table-xs table-cage mb-0">
                 <?php $j = 0; foreach ($points as $point): $j++; ?>

+ 8 - 1
resources/views/app/patient/module-specific-summary-renderers/nutrition/subjective.blade.php

@@ -1,6 +1,13 @@
 @if($points && count($points))
     <div class="d-flex border-bottom">
-        <b class="mr-2 min-width-110px">Nutrition Rx</b>
+        <a class="mr-2 min-width-110px font-weight-bold"
+           open-in-stag-popup
+           href="/nutrition-center/{{$note->client->uid}}/{{$note->uid}}"
+           mc-initer="nutrition-center-{{$note->id}}"
+           title="<img src='/img/nutrition-rx.png'/> Nutrition Rx"
+           popup-style="medium-large overflow-visible">
+            Nutrition Rx
+        </a>
         <div class="flex-grow-1">
             <table class="table table-bordered table-xs table-cage mb-0">
                 <?php $j = 0; foreach ($points as $point): $j++; ?>

+ 7 - 2
resources/views/app/patient/note/segment-slim.blade.php

@@ -1,6 +1,11 @@
-<?php $iName = $segment->segmentTemplate->internal_name; ?>
+<?php
+$iName = $segment->segmentTemplate->internal_name;
 
-<div class="border-bottom note-section visit-segment {{$note->is_signed_by_hcp ? '' : 'edit-trigger'}}"
+// if omega system segment - no only read mode
+$isOmegaSystemSegment = (strpos($segment->segmentTemplate->internal_name, 'omega_') === 0 && substr($segment->segmentTemplate->internal_name, -7) === '_system');
+?>
+
+<div class="border-bottom note-section visit-segment {{$isOmegaSystemSegment || $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 }}">

+ 5 - 2
resources/views/app/patient/note/segment_script.blade.php

@@ -228,11 +228,14 @@
             $(document)
                 .off('click.refresh-segment', '.refresh-segment')
                 .on('click.refresh-segment', '.refresh-segment', function() {
-                    showMask();
+                    // showMask();
+                    let noteSection = $(this).closest('.note-section');
+                    noteSection.addClass('refreshing');
                     $.post('/api/visit/updateSegmentHtml', {
                         segmentUid: $(this).attr('data-segment-uid')
                     }, _data => {
-                        hideMask();
+                        // hideMask();
+                        noteSection.removeClass('refreshing');
                         updateAllSegmentsInResponse(_data);
                     }, 'json');
                     return false;