4.7.2 Adding Decorations
Tweaking Prescription Decorations
To add decorations from Rx just find the OscarRx/ViewScript2.jsp (for drugref2/3 similar for OscarRx/ViewScript.jsp for drugref1/2)
line 281 and following can be changed to
text = "";
console.log("1");
text = text.substring(0, 82) + "\n";
if (document.all){
text += preview.document.forms[0].rx_
} else {
text += preview.document.forms[0].rx_no_newlines.value + "\n";
}
console.log("2");
text+=document.getElementById('additionalNotes').value+"\n";
text += "**********************************************************************************\n";
Tweaking Measurement Decorations
To add decorations to Measurements just find
oscar/oscarEncounter/oscarMeasurements/pageUtil/EctMeasurementsAction.java
import org.apache.commons.lang.StringUtils;
Line 117: changed to
String textOnEncounter = "**"+StringUtils.rightPad(by,80,"*")+"\\n";
Line 259 changed to
textOnEncounter = textOnEncounter + "**********************************************************************************\\n";
you will need to recompile the class
Document Actions