diff --git a/src/outpatient/app/view/patient/more.js b/src/outpatient/app/view/patient/more.js index 851f0836..91835ab7 100644 --- a/src/outpatient/app/view/patient/more.js +++ b/src/outpatient/app/view/patient/more.js @@ -26,7 +26,7 @@ Ext.define('RaxaEmr.Outpatient.view.patient.more', { layout: 'vbox', items: [{ id: 'content', - tpl: ['
', '
', '
', '
', '
', '{display}', '
', 'From : -- ', '
', '
', '
', '
', '
', ' Age : {age} ', 'ID : --', '
', '
', '
', '

--

', '', '
', '
', '
'].join('') + tpl: ['
', '
', '
', '
', '
', '{display}', '
', 'From : -- ', '
', '
', '
', '
', '
', ' Age : {age} ', 'ID : --', '
', '
', '
', '

--

', '', '
', '
', '
'].join('') }, { xtype: 'vitalsGrid', height: 84 diff --git a/src/outpatient/app/view/patientlist.js b/src/outpatient/app/view/patientlist.js index 9f0e2f15..ddfbdc73 100644 --- a/src/outpatient/app/view/patientlist.js +++ b/src/outpatient/app/view/patientlist.js @@ -92,17 +92,20 @@ Ext.define('RaxaEmr.Outpatient.view.patientlist', { }], //list items are shown by this itemTpl: new Ext.XTemplate( - '
', '
', '{display}', 'Gender : {[this.gender(values.gender)]}', 'From : ----', '
', '
', '----', 'Disease : ----', 'Age : {age}', '
', '
8
', '
', 'Last Visit : ----', 'No. of Visits : --', 'ID : ----', '
', + '
', '
', '{display}', 'Gender : {[this.gender(values.gender)]}', 'From : ----', '
', '
', '----', 'Disease : ----', 'Age : {age}', '
', '
8
', '
', 'Last Visit : ----', 'No. of Visits : --', 'ID : ----', '
', { date: function(str){ return str.encounters[0].encounterDatetime.split("T")[0]; }, gender: function(str){ - if(str == 'M'){ + if(str == 'Male'){ return 'Male'; - }else if(str == 'F'){ - return 'Female'; - } + }else if(str == 'Female'){ + return 'Female'; + } + else if (str == 'Other'){ + return '----'; + } } } ) diff --git a/src/outpatient/resources/images/default_image.png b/src/outpatient/resources/images/default_image.png new file mode 100644 index 00000000..60e64873 Binary files /dev/null and b/src/outpatient/resources/images/default_image.png differ diff --git a/src/pharmacy/app/controller/prescription.js b/src/pharmacy/app/controller/prescription.js index be9421c0..7567f391 100644 --- a/src/pharmacy/app/controller/prescription.js +++ b/src/pharmacy/app/controller/prescription.js @@ -381,7 +381,27 @@ Ext.define("RaxaEmr.Pharmacy.controller.prescription", { } } localStorage.setItem('selectedPatient', JSON.stringify(selectedPatient)); - var printWindow = window.open('app/print.html', 'Fill Prescription', 'height=500,width=1100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes'); + + // Checking DrugName and Quantity are enetered for each row entered. + var qtyanddrugNameFlag=0; // Flag to check for empty entries for either drugname or quantity + for (var i=0;i