Adding Decorations 12.x

Classic OSCAR has certain auto text entries including prescriptions and measurements are, by default, decorated with ***** This has been removed for version 12 but can be reverted for those who want to keep them NOTE ONTARIO USERS - NOT FOR YOU as of OSCAR 12 (Ontario MD CMS 4 certified version) any modifications to certified code risks invalidating the installation as being able to attract subsidy in Ontario.


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_
no_newlines.value
     } 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
uncomment the import (we are using that class) by removing the //
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