Changeset 4947 for openmrs/branches/1.3.x/web/scripts/drugOrder.js.withjstl
- Timestamp:
- 07/16/08 12:29:31 (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openmrs/branches/1.3.x/web/scripts/drugOrder.js.withjstl
r4095 r4947 19 19 20 20 var currentRegimenTableCellFuncs = regimenMode != "view" ? [ 21 function(data) { return " <a class=\"patientRegimenDrugName\" href=\"orderDrug.form?orderId=" + data.orderId + "\">" + data.drugName + "</a>"; }, 21 function(data) { 22 if (data.drugName != null) 23 return " <a class=\"patientRegimenDrugName\" href=\"orderDrug.form?orderId=" + data.orderId + "\">" + data.drugName + "</a>"; 24 else 25 return " <a class=\"patientRegimenDrugName\" href=\"orderDrug.form?orderId=" + data.orderId + "\">" + data.conceptName + "</a>"; 26 }, 22 27 function(data) { return data.dose + " " + data.units; }, 23 28 function(data) { return "" + data.frequency; }, … … 48 53 } 49 54 ] : [ 50 function(data) { return " <a href=\"orderDrug.form?orderId=" + data.orderId + "\">" + data.drugName + "</a>"; }, 55 function(data) { 56 if (data.drugName != null) 57 return " <a href=\"orderDrug.form?orderId=" + data.orderId + "\">" + data.drugName + "</a>"; 58 else 59 return " <a href=\"orderDrug.form?orderId=" + data.orderId + "\">" + data.conceptName + "</a>"; 60 }, 51 61 function(data) { return data.dose + " " + data.units; }, 52 62 function(data) { return "" + data.frequency; }, … … 57 67 58 68 var completedRegimenTableCellFuncs = regimenMode != "view" ? [ 59 function(data) { return " <a class=\"patientRegimenDrugName\" href=\"orderDrug.form?orderId=" + data.orderId + "\">" + data.drugName + "</a>"; }, 69 function(data) { 70 if (data.drugName != null) 71 return " <a class=\"patientRegimenDrugName\" href=\"orderDrug.form?orderId=" + data.orderId + "\">" + data.drugName + "</a>"; 72 else 73 return " <a class=\"patientRegimenDrugName\" href=\"orderDrug.form?orderId=" + data.orderId + "\">" + data.conceptName + "</a>"; 74 }, 60 75 function(data) { return data.dose + " " + data.units; }, 61 76 function(data) { return "" + data.frequency; }, … … 76 91 } 77 92 ] : [ 78 function(data) { return " <a href=\"orderDrug.form?orderId=" + data.orderId + "\">" + data.drugName + "</a>"; }, 93 function(data) { 94 if (data.drugName != null) 95 return " <a href=\"orderDrug.form?orderId=" + data.orderId + "\">" + data.drugName + "</a>"; 96 else 97 return " <a href=\"orderDrug.form?orderId=" + data.orderId + "\">" + data.conceptName + "</a>"; 98 }, 79 99 function(data) { return data.dose + " " + data.units; }, 80 100 function(data) { return "" + data.frequency; },