Эх сурвалжийг харах

Support for historic medications

Vijayakrishnan 3 жил өмнө
parent
commit
f716eb4ff0

+ 23 - 0
resources/views/app/patient/segment-templates/intake_medications/edit.blade.php

@@ -42,6 +42,21 @@ $medications = Point::getIntakePointsOfCategory($patient, 'MEDICATION', $note);
                                 ?>
                             </div>
                         </div>
+                        <?php if(!!@($medication->data->prescriber)): ?>
+                        <div>
+                            Prescribed by <?= $medication->data->prescriber ?>
+                        </div>
+                        <?php endif; ?>
+                        <?php if(!!@($medication->data->start_date)): ?>
+                        <div>
+                            Started on <?= $medication->data->start_date ?>
+                        </div>
+                        <?php endif; ?>
+                        <?php if(!!@($medication->removal_effective_date) && !$medication->is_removed_due_to_entry_error): ?>
+                        <div>
+                            Ended on <?= $medication->removal_effective_date ?>
+                        </div>
+                        <?php endif; ?>
                     </td>
                     <td>
                         <div class="d-flex align-items-start">
@@ -121,6 +136,14 @@ $medications = Point::getIntakePointsOfCategory($patient, 'MEDICATION', $note);
                     <div>Twice a day</div>
                 </div>
             </div>
+            <div class="mb-2">
+                <label class="text-sm text-secondary mb-1">Start Date</label>
+                <input type="date" class="form-control form-control-sm" data-name="start_date">
+            </div>
+            <div class="mb-2">
+                <label class="text-sm text-secondary mb-1">Prescribed By</label>
+                <input type="text" class="form-control form-control-sm" data-name="prescriber">
+            </div>
             <div class="mb-2">
                 <label class="text-sm text-secondary mb-1">Description</label>
                 <textarea type="text" data-name="description" class="form-control form-control-sm"></textarea>

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

@@ -17,6 +17,7 @@ $medications = Point::getIntakePointsOfCategory($patient, 'MEDICATION', $note);
                 <div class="<?= $medication->is_removed ? 'strike-through' : '' ?>">
                     <b><?= !!@($medication->data->name) ? @($medication->data->name) : '-' ?></b>
                     <?= !!@($medication->data->frequency) ? '/&nbsp;' . @($medication->data->frequency) : '' ?>
+                    <?= !!@($medication->data->start_date) ? '/&nbsp;From ' . @($medication->data->start_date) : '' ?>
                 </div>
                 <?php if ($medication->is_removed): ?>
                     <span class="ml-2 text-sm text-secondary">Removed on intake</span>