Browse Source

Brighter visual diff for relevant points + plus badge in case of Dx

Vijayakrishnan 3 years ago
parent
commit
3925e5ca59

+ 6 - 0
public/css/style.css

@@ -2209,4 +2209,10 @@ body.in-iframe .main-row > .sidebar {
 [tab-links] [tab-link].tab-link-active {
     font-weight: bold;
     background: #fff;
+}
+tr.relevant-to-visit td:nth-child(1) {
+    background: aliceblue;
+}
+tr.relevant-to-visit td:nth-child(2) {
+    color: #17a2b8;
 }

+ 1 - 1
resources/views/app/patient/allergies-center.blade.php

@@ -40,7 +40,7 @@ $allergies = Point::getPointsOfCategoryExtended($patient, 'ALLERGY', $note);
             @endif
             <?php $prevRowState = $allergy->state; ?>
             <?php $rel = $allergy->relevanceToNote($note); ?>
-            <tr class="">
+            <tr class="{{$rel ? 'relevant-to-visit' : ''}}">
                 @if($patient->core_note_id !== $note->id)
                 <td class="text-center">
                     <a href="#" class="toggle-relevance"

+ 1 - 1
resources/views/app/patient/goals-center.blade.php

@@ -39,7 +39,7 @@ $goals = Point::getPointsOfCategoryExtended($patient, 'GOAL', $note);
             @endif
             <?php $prevRowState = $goal->state; ?>
             <?php $rel = $goal->relevanceToNote($note); ?>
-            <tr class="">
+            <tr class="{{$rel ? 'relevant-to-visit' : ''}}">
                 @if($patient->core_note_id !== $note->id)
                 <td class="text-center">
                     <a href="#" class="toggle-relevance"

+ 1 - 1
resources/views/app/patient/medications-center.blade.php

@@ -40,7 +40,7 @@ $medications = Point::getPointsOfCategoryExtended($patient, 'MEDICATION', $note)
             @endif
             <?php $prevRowState = $medication->state; ?>
             <?php $rel = $medication->relevanceToNote($note); ?>
-            <tr class="{{$medication->is_removed ? '' : ''}}">
+            <tr class="{{$rel ? 'relevant-to-visit' : ''}}">
                 @if($patient->core_note_id !== $note->id)
                 <td class="text-center">
                     <a href="#" class="toggle-relevance"

+ 6 - 1
resources/views/app/patient/problems-center.blade.php

@@ -52,7 +52,7 @@ $ccSegment = $note->getSegmentByInternalName('chief_complaint');
             @endif
             <?php $prevRowState = $problem->state; ?>
             <?php $rel = $problem->relevanceToNote($note); ?>
-            <tr class="">
+            <tr class="{{$rel ? 'relevant-to-visit' : ''}}">
                 @if($patient->core_note_id !== $note->id)
                 <td class="text-center">
                     <a href="#" class="toggle-relevance"
@@ -106,6 +106,11 @@ $ccSegment = $note->getSegmentByInternalName('chief_complaint');
                                     @endif
                                 </div>
                             @endif
+                            @if($rel)
+                                <div class="mt-1">
+                                    <span class="text-sm text-white bg-info rounded px-2 py-1 font-weight-bold">Visit reason</span>
+                                </div>
+                            @endif
                         </div>
                     </div>
                 </td>