Răsfoiți Sursa

Erx - remove "supply" erx_category support

Vijayakrishnan 3 ani în urmă
părinte
comite
fa621439b3
1 a modificat fișierele cu 0 adăugiri și 46 ștergeri
  1. 0 46
      resources/views/app/patient/prescriptions/list.blade.php

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

@@ -17,10 +17,6 @@
             <span class="mx-2 text-secondary on-hover-opaque">|</span>
             <a href="#" v-on:click.prevent="newERx('REFERRAL')">Referral</a>
         @endif
-        @if(!request()->input('erx_category') || request()->input('erx_category') === 'SUPPLY')
-            <span class="mx-2 text-secondary on-hover-opaque">|</span>
-            <a href="#" v-on:click.prevent="newERx('SUPPLY')">Supply</a>
-        @endif
         @if(!request()->input('erx_category') || request()->input('erx_category') === 'OTHER')
             <span class="mx-2 text-secondary on-hover-opaque">|</span>
             <a href="#" v-on:click.prevent="newERx('OTHER')">Other</a>
@@ -90,10 +86,6 @@
                                 <b class="mr-2">@{{prescription.clinical_detail_json.to ?? '-'}}</b>
                                 <span class="text-secondary mr-1">@{{prescription.clinical_detail_json.memo ?? '-'}}</span>
                             </div>
-                            <div class="d-flex align-items-baseline" v-if="prescription.erx_category === 'SUPPLY'">
-                                <b class="mr-2">@{{prescription.clinical_detail_json.item ?? '-'}}</b>
-                                <span class="text-secondary mr-1">@{{prescription.clinical_detail_json.quantity ?? '-'}}</span>
-                            </div>
                             <div class="d-flex align-items-baseline" v-if="prescription.erx_category === 'OTHER'">
                                 <b class="mr-2">@{{prescription.clinical_detail_json.title ?? '-'}}</b>
                                 <span class="text-secondary mr-1">@{{prescription.clinical_detail_json.memo ?? '-'}}</span>
@@ -184,10 +176,6 @@
                             <b class="mr-2">@{{currentPrescription.clinical_detail_json.to ?? '-'}}</b>
                             <span class="text-secondary mr-1">@{{currentPrescription.clinical_detail_json.memo ?? '-'}}</span>
                         </div>
-                        <div class="d-flex align-items-baseline" v-if="currentPrescription.erx_category === 'SUPPLY'">
-                            <b class="mr-2">@{{currentPrescription.clinical_detail_json.item ?? '-'}}</b>
-                            <span class="text-secondary mr-1">@{{currentPrescription.clinical_detail_json.quantity ?? '-'}}</span>
-                        </div>
                         <div class="d-flex align-items-baseline" v-if="currentPrescription.erx_category === 'OTHER'">
                             <b class="mr-2">@{{currentPrescription.clinical_detail_json.title ?? '-'}}</b>
                             <span class="text-secondary mr-1">@{{currentPrescription.clinical_detail_json.memo ?? '-'}}</span>
@@ -379,7 +367,6 @@
     @include('app.patient.prescriptions.lab-form')
     @include('app.patient.prescriptions.imaging-form')
     @include('app.patient.prescriptions.referral-form')
-    @include('app.patient.prescriptions.supply-form')
     @include('app.patient.prescriptions.other-form')
     @include('app.patient.prescriptions.logistics-form')
     @include('app.patient.prescriptions.hcp-pro-form')
@@ -544,18 +531,6 @@ GROUP BY erx_category");
                             memo: '',
                         }
                     },
-                    currentPrescription_SUPPLY: {
-                        noteUid: '{{ @$note ? $note->uid : '' }}',
-                        clientUid: '{{ $patient->uid }}',
-                        replacesCancelledErxUid: null, // TODO: step-2 support UI to mark a new one as replacing a cancelled one
-                        hcpProUid: '{{$pro->uid}}',
-                        erxCategory: 'SUPPLY',
-                        clinicalDetailJson: {
-                            item: '',
-                            quantity: '',
-                            memo: '',
-                        }
-                    },
                     currentPrescription_OTHER: {
                         noteUid: '{{ @$note ? $note->uid : '' }}',
                         clientUid: '{{ $patient->uid }}',
@@ -755,13 +730,6 @@ GROUP BY erx_category");
                                     memo: '',
                                 };
                                 break;
-                            case 'SUPPLY':
-                                data = {
-                                    item: '',
-                                    quantity: '',
-                                    memo: '',
-                                };
-                                break;
                             case 'OTHER':
                                 data = {
                                     title: '',
@@ -861,20 +829,6 @@ GROUP BY erx_category");
                                     }
                                 };
                                 break;
-                            case 'SUPPLY':
-                                this.currentPrescription_SUPPLY = {
-                                    noteUid: '{{ @$note ? $note->uid : '' }}',
-                                    clientUid: '{{ $patient->uid }}',
-                                    replacesCancelledErxUid: null, // TODO: step-2 support UI to mark a new one as replacing a cancelled one
-                                    hcpProUid: '{{$pro->uid}}',
-                                    erxCategory: _type,
-                                    clinicalDetailJson: {
-                                        item: '',
-                                        quantity: '',
-                                        memo: '',
-                                    }
-                                };
-                                break;
                             case 'OTHER':
                                 this.currentPrescription_OTHER = {
                                     noteUid: '{{ @$note ? $note->uid : '' }}',