Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions src/main/webapp/oscarRx/SearchDrug3.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ if (rx_enhance!=null && rx_enhance.equals("true")) {
var data = "rand="+rand;
new Ajax.Request(url, {method: 'post',parameters:data,onSuccess:function(transport){
// updateCurrentInteractions();
updateDrugrefInteractions();
}});
}
function onPrint(cfgPage) {
Expand Down Expand Up @@ -1108,8 +1109,9 @@ body {
<%-- End List Drugs Prescribed --%>

</td>
<td width="300px" valign="top" >
<td style="width:300px; vertical-align:top">
<div id="interactionsRxMyD" style="float:right;"></div>
<div id="interactionsRx" style="float:right;"></div>
</td>
</tr>

Expand Down Expand Up @@ -1476,6 +1478,7 @@ function changeLt(drugId){
var data = "rand=" + Math.floor(Math.random()*10001);
new Ajax.Request(url, {method: 'post',parameters:data,onSuccess:function(transport){
// updateCurrentInteractions();
updateDrugrefInteractions();
}});
$('rxText').innerHTML="";//make pending prescriptions disappear.
$("searchString").focus();
Expand All @@ -1486,6 +1489,7 @@ function changeLt(drugId){
new Ajax.Updater('rxText',url, {method:'get',parameters:data,asynchronous:true,evalScripts:true,
insertion: Insertion.Bottom,onSuccess:function(transport){
// updateCurrentInteractions();
updateDrugrefInteractions();
}});

}
Expand Down Expand Up @@ -1514,6 +1518,7 @@ function changeLt(drugId){
var url="<c:out value="${ctx}"/>" + "/oscarRx/rxStashDelete.do?parameterValue=deletePrescribe";
new Ajax.Request(url, {method: 'get',parameters:data,onSuccess:function(transport){
// updateCurrentInteractions();
updateDrugrefInteractions();
if($('deleteOnCloseRxBox').value=='true'){
deleteRxOnCloseRxBox(randomId);
}
Expand All @@ -1539,6 +1544,7 @@ function changeLt(drugId){
$(discont).style.textDecoration='line-through';
$(prescrip).style.textDecoration='line-through';
// updateCurrentInteractions();
updateDrugrefInteractions();
}
}});

Expand Down Expand Up @@ -1598,6 +1604,7 @@ var skipParseInstr = false;
$(discont).style.textDecoration='line-through';
$(prescrip).style.textDecoration='line-through';
// updateCurrentInteractions();
updateDrugrefInteractions();
}});
}
return false;
Expand Down Expand Up @@ -1695,6 +1702,7 @@ var skipParseInstr = false;
$('discont_'+json.id).innerHTML = json.reason;
$('prescrip_'+json.id).style.textDecoration='line-through';
// updateCurrentInteractions();
updateDrugrefInteractions();
}});

}
Expand All @@ -1715,13 +1723,19 @@ var skipParseInstr = false;
}});
}});
}
function updateDrugrefInteractions(){
<oscar:oscarPropertiesCheck property="HOLBROOK" value="yes">
callReplacementWebService("InteractionDisplay.jsp",'interactionsRx');
</oscar:oscarPropertiesCheck>
}
//represcribe long term meds
function RePrescribeLongTerm(){
var demoNo='<%=patient.getDemographicNo()%>';
var data="demoNo="+demoNo+"&showall=<%=showall%>&rand=" + Math.floor(Math.random()*10001);
var url= "<c:out value="${ctx}"/>" + "/oscarRx/rePrescribe2.do?method=repcbAllLongTerm";
new Ajax.Updater('rxText',url, {method:'get',parameters:data,asynchronous:true,insertion: Insertion.Bottom,onSuccess:function(transport){
// updateCurrentInteractions();
updateDrugrefInteractions();
}});
return false;
}
Expand Down Expand Up @@ -1890,6 +1904,7 @@ YAHOO.example.FnMultipleFields = function(){
new Ajax.Updater('rxText',url, {method:'get',parameters:params,evalScripts:true,
insertion: Insertion.Bottom,onSuccess:function(transport){
// updateCurrentInteractions();
updateDrugrefInteractions();
}});

$('searchString').value = "";
Expand Down Expand Up @@ -2051,6 +2066,7 @@ function setSearchedDrug(drugId,name){
var params = "demographicNo=<%=demoNo%>&drugId="+drugId+"&text="+name+"&randomId="+ran_number;
new Ajax.Updater('rxText',url, {method:'get',parameters:params,asynchronous:true,evalScripts:true,insertion: Insertion.Bottom,onSuccess:function(transport){
// updateCurrentInteractions();
updateDrugrefInteractions();
}});
$('searchString').value = "";
}
Expand Down Expand Up @@ -2091,6 +2107,7 @@ function represcribe(element, toArchive){
new Ajax.Updater('rxText',url, {method:'get',parameters:data,asynchronous:false,evalScripts:true,
insertion: Insertion.Bottom,onSuccess:function(transport){
// updateCurrentInteractions();
updateDrugrefInteractions();
}});
}else if(drugId!=null){
var dataUpdateId="reRxDrugId="+toArchive+"&action=addToReRxDrugIdList&rand="+Math.floor(Math.random()*10001);
Expand All @@ -2102,6 +2119,7 @@ function represcribe(element, toArchive){
new Ajax.Updater('rxText',url, {method:'get',parameters:data,evalScripts:true,
insertion: Insertion.Bottom,onSuccess:function(transport){
// updateCurrentInteractions();
updateDrugrefInteractions();
}});

}
Expand Down Expand Up @@ -2531,4 +2549,4 @@ function updateLongTerm(rand,repeatEl) {
<script language="javascript" src="../commons/scripts/sort_table/standardista-table-sorting.js"></script>

</body>
</html:html>
</html:html>