Jelajahi Sumber

ERx item field "instructions"

Vijayakrishnan 3 tahun lalu
induk
melakukan
86dfb012ec
1 mengubah file dengan 6 tambahan dan 0 penghapusan
  1. 6 0
      resources/views/app/patient/prescriptions/list.blade.php

+ 6 - 0
resources/views/app/patient/prescriptions/list.blade.php

@@ -174,6 +174,9 @@
                                 <div class="d-flex align-items-baseline">
                                     <b class="mr-2">@{{drug.medication ?? '-'}}</b>
                                 </div>
+                                <div v-if="drug.instructions" class="d-flex align-items-baseline text-secondary font-italic">
+                                    @{{ drug.instructions }}
+                                </div>
                                 <div class="d-flex align-items-baseline">
                                     <span class="text-secondary">Dispense:</span>
                                     <span class="ml-1">@{{ drug.dispense ? drug.dispense : '-' }}</span>
@@ -202,12 +205,14 @@
                 <table class="m-0 table table-sm border bg-white table-hover table-bordered">
                     <tr>
                         <th>Medication</th>
+                        <th>Instructions</th>
                         <th>Dispense</th>
                         <th>Refills</th>
                         <th>&nbsp;</th>
                     </tr>
                     <tr v-for="drug in existingDrugs" v-if="notAlreadyAdded(drug.data.name)">
                         <td class="">@{{ drug.data.name }}</td>
+                        <td class="width-150px bg-white py-0 pr-0"><input type="text" class="form-control form-control-sm min-width-unset rounded-0 border-0 shadow-none" v-model="drug.data.instructions"></td>
                         <td class="width-70px bg-white py-0 pr-0"><input type="text" class="form-control form-control-sm min-width-unset rounded-0 border-0 shadow-none" v-model="drug.data.dispense"></td>
                         <td class="width-70px bg-white py-0 pl-0"><input type="text" class="form-control form-control-sm min-width-unset rounded-0 border-0 shadow-none" v-model="drug.data.refills"></td>
                         <td class="text-right">
@@ -1144,6 +1149,7 @@ GROUP BY erx_category");
                             medication: existing.data.name,
                             dispense: existing.data.dispense,
                             refills: existing.data.refills,
+                            instructions: existing.data.instructions,
                         });
                         this.currentPrescription.clinical_detail_json.items = JSON.parse(JSON.stringify(this.currentPrescription.clinical_detail_json.items));
                         let temp = this.currentPrescription;