Răsfoiți Sursa

Note UI/logic updates

Vijayakrishnan 3 ani în urmă
părinte
comite
3ed658f075

+ 6 - 0
public/css/style.css

@@ -3176,3 +3176,9 @@ body.forced-masking #mask {
 .note-signed-by-hcp .hide-if-note-signed {
     display: none !important;
 }
+.show-if-note-signed {
+    display: none !important;
+}
+.note-signed-by-hcp .show-if-note-signed {
+    display: block !important;
+}

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

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

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

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

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

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

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

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

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

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

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

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

+ 1 - 1
resources/views/app/patient/note/dashboard.blade.php

@@ -567,7 +567,7 @@
                                                 <input type="hidden" name="uid" value="{{$note->uid}}">
                                                 <p>Undo HCP signature?</p>
                                                 <div class="mb-0">
-                                                    <button class="btn btn-success btn-sm" submit>Sign</button>
+                                                    <button class="btn btn-primary btn-sm" submit>Undo</button>
                                                     <button class="btn btn-default border btn-sm" cancel>Cancel</button>
                                                 </div>
                                             </form>

+ 12 - 49
resources/views/app/patient/segment-templates/omega_subjective_system/summary.blade.php

@@ -7,59 +7,22 @@ use App\Models\Point;
 
 $wizardLinks = [
     [
-        "name" => 'Allergies',
-        "href" => "/allergies-center/{$note->client->uid}/{$note->uid}",
-        "initer" => "allergies-center-{$note->id}"
+        "name" => 'Nutrition Rx',
+        "title" => '<img src=\'/img/nutrition-rx.png\'/> Nutrition Rx',
+        "href" => "/nutrition-center/{$note->client->uid}/{$note->uid}",
+        "initer" => "nutrition-center-{$note->id}"
     ],
     [
-        "name" => 'Medications',
-        "href" => "/medications-center/{$note->client->uid}/{$note->uid}",
-        "initer" => "medications-center-{$note->id}"
+        "name" => 'Exercise Rx',
+        "title" => '<img src=\'/img/exercise-rx.png\'/> Exercise Rx',
+        "href" => "/exercise-center/{$note->client->uid}/{$note->uid}",
+        "initer" => "exercise-center-{$note->id}"
     ],
     [
-        "name" => 'Problems',
-        "href" => "/problems-center/{$note->client->uid}/{$note->uid}",
-        "initer" => "problems-center-{$note->id}"
-    ],
-    [
-        "name" => 'Goals',
-        "href" => "/goals-center/{$note->client->uid}/{$note->uid}",
-        "initer" => "goals-center-{$note->id}"
-    ],
-    [
-        "name" => 'Care Team',
-        "href" => "/careteam-center/{$note->client->uid}/{$note->uid}",
-        "initer" => "careteam-center-{$note->id}"
-    ],
-    [
-        "name" => 'PMHx',
-        "title" => 'Past Medical History',
-        "href" => "/note-segment-view-by-name/{$note->uid}/past_medical_history/edit",
-        "initer" => "edit-univ_history_past_medical-container-{$note->id}"
-    ],
-    [
-        "name" => 'FHx',
-        "title" => 'Family History',
-        "href" => "/note-segment-view-by-name/{$note->uid}/history_family/edit",
-        "initer" => "edit-univ_history_family-container-{$note->id}"
-    ],
-    [
-        "name" => 'Soc Hx',
-        "title" => 'Social History',
-        "href" => "/note-segment-view-by-name/{$note->uid}/history_social/edit",
-        "initer" => "edit-univ_history_social-container-{$note->id}"
-    ],
-    [
-        "name" => 'Surg Hx',
-        "title" => 'Surgical History',
-        "href" => "/note-segment-view-by-name/{$note->uid}/history_surgical/edit",
-        "initer" => "edit-univ_history_surgical-container-{$note->id}"
-    ],
-    [
-        "name" => 'ROS',
-        "title" => 'Review Of Systems',
-        "href" => "/note-segment-view-by-name/{$note->uid}/omega_ros/edit",
-        "initer" => "init-ros-{$note->id}"
+        "name" => 'Behavior Rx',
+        "title" => '<img src=\'/img/behavior-rx.png\'/> Behavior Rx',
+        "href" => "/behavior-center/{$note->client->uid}/{$note->uid}",
+        "initer" => "behavior-center-{$note->id}"
     ],
 ];