Quellcode durchsuchen

Show correct state of points in summary html

Vijayakrishnan vor 3 Jahren
Ursprung
Commit
a19e9bacac

+ 5 - 1
resources/views/app/patient/segment-templates/intake_allergies/summary.blade.php

@@ -41,7 +41,11 @@ $plural = 'Allergies';
                         <span class="ml-2 text-sm text-secondary">Removed on intake</span>
                     @endif
                 <?php elseif ($point->added_in_note_id === $note->id): ?>
-                    <span class="ml-2 text-sm text-success">* Added on intake</span>
+                    <?php if ($point->addition_reason_category === 'DURING_VISIT'): ?>
+                        <span class="ml-2 text-sm text-success">* Diagnosed during visit</span>
+                    <?php else: ?>
+                        <span class="ml-2 text-sm text-info">* Added on intake</span>
+                    <?php endif;?>
                 <?php endif; ?>
             </div>
             <?php $review = $point->childReviewAddedInNote($note); ?>

+ 5 - 1
resources/views/app/patient/segment-templates/intake_goals/summary.blade.php

@@ -32,7 +32,11 @@ $plural = 'Goals';
                         <span class="ml-2 text-sm text-secondary">Removed on intake</span>
                     @endif
                 <?php elseif ($point->added_in_note_id === $note->id): ?>
-                    <span class="ml-2 text-sm text-success">* Added on intake</span>
+                    <?php if ($point->addition_reason_category === 'DURING_VISIT'): ?>
+                        <span class="ml-2 text-sm text-success">* Prescribed during visit</span>
+                    <?php else: ?>
+                        <span class="ml-2 text-sm text-info">* Added on intake</span>
+                    <?php endif;?>
                 <?php endif; ?>
             </div>
             <?php $review = $point->childReviewAddedInNote($note); ?>

+ 5 - 1
resources/views/app/patient/segment-templates/intake_medications/summary.blade.php

@@ -37,7 +37,11 @@ $plural = 'Medications';
                         <span class="ml-2 text-sm text-secondary">Removed on intake</span>
                     @endif
                 <?php elseif ($point->added_in_note_id === $note->id): ?>
-                    <span class="ml-2 text-sm text-success">* Added on intake</span>
+                    <?php if ($point->addition_reason_category === 'DURING_VISIT'): ?>
+                        <span class="ml-2 text-sm text-success">* Prescribed during visit</span>
+                    <?php else: ?>
+                        <span class="ml-2 text-sm text-info">* Added on intake</span>
+                    <?php endif;?>
                 <?php endif; ?>
             </div>
             <?php $review = $point->childReviewAddedInNote($note); ?>

+ 5 - 1
resources/views/app/patient/segment-templates/intake_problems/summary.blade.php

@@ -32,7 +32,11 @@ $plural = 'Problems';
                         <span class="ml-2 text-sm text-secondary">Removed on intake</span>
                     @endif
                 <?php elseif ($point->added_in_note_id === $note->id): ?>
-                    <span class="ml-2 text-sm text-success">* Added on intake</span>
+                    <?php if ($point->addition_reason_category === 'DURING_VISIT'): ?>
+                        <span class="ml-2 text-sm text-success">* Diagnosed during visit</span>
+                    <?php else: ?>
+                        <span class="ml-2 text-sm text-info">* Added on intake</span>
+                    <?php endif;?>
                 <?php endif; ?>
             </div>
             <?php $review = $point->childReviewAddedInNote($note); ?>

+ 1 - 1
resources/views/app/patient/segment-templates/plan_allergies/summary.blade.php

@@ -47,7 +47,7 @@ $plural = 'Allergies';
                     @endif
                 <?php elseif ($point->added_in_note_id === $note->id): ?>
                     <?php if ($point->addition_reason_category === 'DURING_VISIT'): ?>
-                        <span class="ml-2 text-sm text-success">* Added during visit</span>
+                        <span class="ml-2 text-sm text-success">* Diagnosed during visit</span>
                     <?php else: ?>
                         <span class="ml-2 text-sm text-info">* Added on intake</span>
                     <?php endif;?>

+ 1 - 1
resources/views/app/patient/segment-templates/plan_goals/summary.blade.php

@@ -38,7 +38,7 @@ $plural = 'Goals';
                     @endif
                 <?php elseif ($point->added_in_note_id === $note->id): ?>
                     <?php if ($point->addition_reason_category === 'DURING_VISIT'): ?>
-                        <span class="ml-2 text-sm text-success">* Added during visit</span>
+                        <span class="ml-2 text-sm text-success">* Prescribed during visit</span>
                     <?php else: ?>
                         <span class="ml-2 text-sm text-info">* Added on intake</span>
                     <?php endif;?>

+ 1 - 1
resources/views/app/patient/segment-templates/plan_medications/summary.blade.php

@@ -43,7 +43,7 @@ $plural = 'Medications';
                     @endif
                 <?php elseif ($point->added_in_note_id === $note->id): ?>
                     <?php if ($point->addition_reason_category === 'DURING_VISIT'): ?>
-                        <span class="ml-2 text-sm text-success">* Added during visit</span>
+                        <span class="ml-2 text-sm text-success">* Prescribed during visit</span>
                     <?php else: ?>
                         <span class="ml-2 text-sm text-info">* Added on intake</span>
                     <?php endif;?>

+ 1 - 1
resources/views/app/patient/segment-templates/plan_problems/summary.blade.php

@@ -38,7 +38,7 @@ $plural = 'Problems';
                     @endif
                 <?php elseif ($point->added_in_note_id === $note->id): ?>
                     <?php if ($point->addition_reason_category === 'DURING_VISIT'): ?>
-                        <span class="ml-2 text-sm text-success">* Added during visit</span>
+                        <span class="ml-2 text-sm text-success">* Diagnosed during visit</span>
                     <?php else: ?>
                         <span class="ml-2 text-sm text-info">* Added on intake</span>
                     <?php endif;?>