Răsfoiți Sursa

Manage eRx (wip)

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

+ 7 - 4
resources/views/app/patient/prescriptions/list-popup.blade.php

@@ -110,7 +110,7 @@
             </tr>
             </tbody>
         </table>
-        <div v-if="currentPrescription" class="min-width-500px ml-2 border align-self-stretch p-3">
+        <div v-if="currentPrescription" class="min-width-700px ml-2 border align-self-stretch p-3">
             <div class="d-flex align-items-center">
                 <h3 class="font-size-16 m-0">
                     <span class="mr-1 font-size-16">@{{ currentPrescription.erx_category }} / @{{ currentPrescription.created_at_friendly_short }}</span>
@@ -129,10 +129,12 @@
                     @endif
                 </div>
             </div>
+            @if(!request()->input('erx_category'))
             <div class="pb-2 d-flex align-items-center">
                 <span class="min-width-140px text-secondary text-sm">Type</span>
                 <span>@{{currentPrescription.erx_category}}</span>
             </div>
+            @endif
             <div class="pb-2 d-flex align-items-baseline" v-if="currentPrescription.erx_category !== 'DRUG'">
                 <span class="min-width-140px text-secondary text-sm">Clinical</span>
                 <div class="d-inline-flex align-items-baseline flex-grow-1">
@@ -201,9 +203,9 @@
                         <th>&nbsp;</th>
                     </tr>
                     <tr v-for="drug in existingDrugs" v-if="notAlreadyAdded(drug.data.name)">
-                        <td class="width-200px">@{{ drug.data.name }}</td>
-                        <td class="width-70px"><input type="text" class="form-control form-control-sm min-width-unset" v-model="drug.data.dispense"></td>
-                        <td class="width-70px"><input type="text" class="form-control form-control-sm min-width-unset" v-model="drug.data.refills"></td>
+                        <td class="min-width-200px">@{{ drug.data.name }}</td>
+                        <td class="width-70px py-0 pr-0"><input type="text" class="form-control form-control-sm min-width-unset rounded-0 border-top-0 border-bottom-0 border-right-0 shadow-none" v-model="drug.data.dispense"></td>
+                        <td class="width-70px py-0 pl-0"><input type="text" class="form-control form-control-sm min-width-unset rounded-0 border-top-0 border-bottom-0 shadow-none" v-model="drug.data.refills"></td>
                         <td class="text-right">
                             <a href="#" v-on:click.prevent="addExistingDrugToERx(drug.uid)" class="text-nowrap">Add to eRx</a>
                         </td>
@@ -215,6 +217,7 @@
                 Add new form
             </div>
 
+            <hr class="my-3">
             <div class="pb-2 d-flex align-items-center">
                 <span class="min-width-140px text-secondary text-sm">Logistics</span>
                 <div class="d-inline-flex align-items-baseline flex-grow-1">