|
@@ -276,7 +276,7 @@
|
|
|
|
|
|
function init() {
|
|
|
|
|
|
- window.booApp = new Vue({
|
|
|
+ new Vue({
|
|
|
el: '#prescriptions-{{$patient->id}}',
|
|
|
delimiters: ['@{{', '}}'],
|
|
|
data: {
|
|
@@ -286,7 +286,7 @@
|
|
|
currentPrescriptionType: '',
|
|
|
|
|
|
// selected
|
|
|
- currentPrescription: <?= $currentPrescription ?>,
|
|
|
+ currentPrescription: <?= $currentPrescription ? json_encode($currentPrescription) : 'null' ?>,
|
|
|
|
|
|
// for editing clinical details
|
|
|
currentPrescription_DRUG: {
|
|
@@ -409,7 +409,7 @@
|
|
|
copyToPatient: false,
|
|
|
copyToPatientFaxNumber: '',
|
|
|
copyToPatientEmail: '',
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
|