|
@@ -100,9 +100,9 @@
|
|
|
<div v-if="currentPrescription.clinical_detail_json" class="d-inline-flex align-items-baseline">
|
|
|
<div class="d-flex align-items-baseline" v-if="currentPrescription.erx_category === 'DRUG'">
|
|
|
<b class="mr-2 font-size-16">@{{currentPrescription.clinical_detail_json.medication ?? '-'}}</b>
|
|
|
- <span class="text-secondary mr-1 font-size-16">@{{currentPrescription.clinical_detail_json.strength ?? '-'}}</span>
|
|
|
+ <!--<span class="text-secondary mr-1 font-size-16">@{{currentPrescription.clinical_detail_json.strength ?? '-'}}</span>
|
|
|
<span class="text-secondary mr-1 font-size-16">@{{currentPrescription.clinical_detail_json.amount ?? '-'}}</span>
|
|
|
- <span class="text-secondary mr-1 font-size-16">@{{currentPrescription.clinical_detail_json.route ?? '-'}}</span>
|
|
|
+ <span class="text-secondary mr-1 font-size-16">@{{currentPrescription.clinical_detail_json.route ?? '-'}}</span>-->
|
|
|
</div>
|
|
|
<div class="d-flex align-items-baseline" v-if="currentPrescription.erx_category === 'LAB' || currentPrescription.erx_category === 'IMAGING'">
|
|
|
<b class="mr-2 font-size-16">@{{currentPrescription.clinical_detail_json.test ?? '-'}}</b>
|
|
@@ -144,9 +144,9 @@
|
|
|
<div v-if="currentPrescription.clinical_detail_json" class="d-inline-flex align-items-baseline">
|
|
|
<div class="d-flex align-items-baseline" v-if="currentPrescription.erx_category === 'DRUG'">
|
|
|
<b class="mr-2">@{{currentPrescription.clinical_detail_json.medication ?? '-'}}</b>
|
|
|
- <span class="text-secondary mr-1">@{{currentPrescription.clinical_detail_json.strength ?? '-'}}</span>
|
|
|
+ <!--<span class="text-secondary mr-1">@{{currentPrescription.clinical_detail_json.strength ?? '-'}}</span>
|
|
|
<span class="text-secondary mr-1">@{{currentPrescription.clinical_detail_json.dispense ?? '-'}}</span>
|
|
|
- <span class="text-secondary mr-1">@{{currentPrescription.clinical_detail_json.refills ?? '-'}}</span>
|
|
|
+ <span class="text-secondary mr-1">@{{currentPrescription.clinical_detail_json.refills ?? '-'}}</span>-->
|
|
|
</div>
|
|
|
<div class="d-flex align-items-baseline" v-if="currentPrescription.erx_category === 'LAB' || currentPrescription.erx_category === 'IMAGING'">
|
|
|
<b class="mr-2">@{{currentPrescription.clinical_detail_json.test ?? '-'}}</b>
|
|
@@ -509,8 +509,8 @@
|
|
|
}
|
|
|
Vue.nextTick(() => {
|
|
|
showStagPopup('prescription-popup-' + this.currentPrescriptionType, true);
|
|
|
- $('[stag-suggest][stag-suggest-initialized]').removeAttr('stag-suggest-initialized');
|
|
|
if(_type === 'DRUG') {
|
|
|
+ $('[stag-suggest][stag-suggest-initialized]').removeAttr('stag-suggest-initialized');
|
|
|
initStagSuggest();
|
|
|
this.initFdbMedSuggest();
|
|
|
}
|
|
@@ -525,6 +525,28 @@
|
|
|
};
|
|
|
Vue.nextTick(() => {
|
|
|
showStagPopup('prescription-popup-' + this.currentPrescriptionType, true);
|
|
|
+ if(this.currentPrescriptionType === 'DRUG') {
|
|
|
+ $('[stag-suggest][stag-suggest-initialized]').removeAttr('stag-suggest-initialized');
|
|
|
+ initStagSuggest();
|
|
|
+ this.initFdbMedSuggest();
|
|
|
+
|
|
|
+ // re-populate drug fields
|
|
|
+ console.log(this.currentPrescription_DRUG);
|
|
|
+ let parentSegment = $('#prescriptions-{{$patient->id}} [stag-popup-key="prescription-popup-DRUG"]>form').first();
|
|
|
+ parentSegment.find('input.prescription-medication').val(this.currentPrescription_DRUG.clinicalDetailJson.medication);
|
|
|
+ parentSegment.find('select.prescription-route')
|
|
|
+ .empty()
|
|
|
+ .append($('<option/>').attr('value', 1).text(this.currentPrescription_DRUG.clinicalDetailJson.route))
|
|
|
+ .val(1);
|
|
|
+ parentSegment.find('select.prescription-dose')
|
|
|
+ .empty()
|
|
|
+ .append($('<option/>').attr('value', 1).text(this.currentPrescription_DRUG.clinicalDetailJson.dose))
|
|
|
+ .val(1);
|
|
|
+ parentSegment.find('select.prescription-strength')
|
|
|
+ .empty()
|
|
|
+ .append($('<option/>').attr('value', 1).text(this.currentPrescription_DRUG.clinicalDetailJson.strength))
|
|
|
+ .val(1);
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
savePrescription: function() {
|