Personal tools
You are here: Home / OSCAR Users / EMR and Case Management Resources / eForms / eForms in development/beta testing / Useful Code / Greasemonkey Scripts / Greasemonkey Scripts shared by Dr Stan Hurwitz: E-Chart buttons, demographics tweaks and for the Dymo label printer
Navigation
 

Greasemonkey Scripts shared by Dr Stan Hurwitz: E-Chart buttons, demographics tweaks and for the Dymo label printer

You need to set up at least one Dymo label printer on your computer. The code will send to the first LabelWriter printer it finds. The good part is that this does not change Oscars default SendTo printer. If "Dymo printer not found" alerts you may have to click on "allow access". ----- Use preferences to place a link to the Dymo printer form on "eForms to display on appointment screen". I've attached greasemonkeys that insert a Dymo Print button on to the Master and Encounter screens (together with a host of other functions). ----- Print_appointment.user.js - Button that mines the details and prints appointment label eform (Set your own specific fid form number) ----- Echart_Buttons.user.js - Inserts a Dymo label print button plus various navigation buttons for echart screen. Set your own specific fid (form number) or Measurement groupName. ----- Demographic_copy.user.js - Inserts Dymo label print button onto Master screen. Copies demographic address/phone from the master screen (can be set to copy mum's PHN for newborn). Pastes address/phone details into another demographic's edit screen (requires "allow cookies on") ----- label_print.user.js - Set your own specific defaults for Oscar's native labels
Dymo Label Printer zip and JS script
Update May 3rd 2015 - From Stanley Hurwitz - The (New) zip file consists of an HTML form, DymoLabelNew.html and two js files that are uploaded to the image directory. The source code was downloaded directly from Dymo's site (works for Windows 7, 8.1 and 8.2):--- http://www.labelwriter.com/software/dls/sdk/samples/js/PrintLabel/PrintLabel.html --- http://labelwriter.com/software/dls/sdk/js/DYMO.Label.Framework.latest.js --- http://developers.dymo.com/2010/06/02/dymo-label-framework-javascript-library-samples-print-a-label --- The label form can be accessed in the usual manner as an eform. I've also attached a GM that places a button on the master and encounter screens for ease of use. The GM requires a bit of tweaking as the form ID needs to be individualized. (see description below about the form id or fid). With the first use of the label form, you will probably get an error message "Dymo printer not found" as FireFox will block the add on. There should be an alert in the right upper screen asking to ALLOW or CONTINUE BLOCKING. Click ALLOW AND REMEMBER. ------ From 2014 ---- For this to work you need to know and insert the ID (for the eform) on YOUR server of the Dymo Appointment Label eform - it is called an fid. First install the html. Then open it up and you can find it (the FID) in the address bar when you open up the eform: for example --------- https://**.**.**.***:11042/oscar_*********/eform/efmformadd_data.jsp?fid=617&demographic_no=10060&appointment= -------- look for the fid= of the eform ON YOUR SERVER (ie what is in the place of 617 in this example) and copy down the number, then open up the greasmonkey script in something like notepad (not MS Word, it will alter the code) insert that number in the greasemonkey script where it says: var formPath = vPath + "/eform/efmformadd_data.jsp?fid=37&demographic_no=" + demo_no // INSERT YOU OWN FORM ID (fid=??) HERE (replace ## with the number you found). The load the greasemonkey script in the images library. Dr. Hurwitz is available to explain further if their are questions: sdhurwitz@gmail.com
Greasemonkey Script which creates a button to copy the demographics from one patient to a second patient
Update December 10th 2016 - improved identification of elements to improve reliability. Demographic_copy.user.js - Inserts Dymo label print button onto Master screen. Copies demographic address/phone from the master screen (can be set to copy mum's PHN for newborn). Pastes address/phone details into another demographic's edit screen (requires "allow cookies on")
Greasemonkey Script to insert buttons on the Encounter page
Echart_Buttons.user.js - Inserts a Dymo label print button plus various navigation buttons for echart screen. Set your own specific fid (form number) or Measurement groupName.
Greasemonkey script to change the defaults for the lables
label_print.user.js - Set your own specific defaults for Oscar's native labels
Print Multi-line Invoices
invoice_screen.user.js - Create multiline statements (inserts a button onto invoice screen)
Greasemonkey script for time dependant billing codes
This Greasemonkey sets start and end times with one click for time dependent billing codes. Sets endtime to the current time and begintime to preset time of 8, 20, 40 or 50 minutes.
Reminder Suite
Update November 18th - In response to screening programs FIT recall notifications: Update to reminder GM: I have added "FIT" and time= "Now" Stan -- Time saving reminder GM for transcription reports and documents: The most efficient time for me to update recalls, reminders and preventions is when opening and reading new incoming reports and documents. The GM inserts two buttons on report and document screens: one for a Tickler link and one for an Auto reminder link. Clicking either button will open a quick pick table popup. The reminder button auto-inserts text into the Reminder box and the Risk Factor boxes of the encounter screen; the tickler button opens a pre-populated tickler screen. If the reminder is a Pap, Mammogram or Colonoscopy, the GM also opens a pre-populated Prevention screen with Next Date set. To use this script, first upload the PushtoReminder form. Once uploaded, open the form to obtain the specific form id number on your own Oscar system. Copy this unique form id number to the gm script as indicated below: //********************************************************** var inputvar = 123 //form id goes here //********************************************************** I've programmed the script to populate both the Reminder and Risk Factor boxes. but of course the script can be changed to populate any of the CPP boxes on the encounter screen. Stan.
Greasemonkey Invoice Suite
Gm's to improve private billing invoicing. 1. In INVOICE LIST screen, highlights the "anchor invoice" (the primary invoice that is updated for the payer info). The anchor invoice saves associated multi-line invoices for future re-billing and for receiving payment. 2. Adds the ability to create, update and save new custom multi-line invoices. 3. When receiving payment, enter the total amount received. Auto-apply the amount for each invoice line using balance carried forward. All three gm's need to be uploaded. The "invoice1_screen.user.js" is an update to my previous "Create multi-line invoices". It seems to be working properly. Please advise of you notice any bugs. Stan.
Timer Function for eChart 2018
From Stanley Hurwitz:---- I have been testing this timer out for CDM's where total echart time is required with and without face-to-face encounter. I think I've ironed out the bugs... The timer starts when the echart is opened and is inactivated for the first 30 seconds. ---- Echart can be refreshed without affecting the timer.----- Clicking the timer will open an eform that can be submitted for time recording or closed without recording. The time data is placed in:---- A. Info bar below the visit----- B. into the measurement TIME. This measurement records total time spent with the echart open (if the eform is submitted). Useful when we want to record total echart time each time you open the echart.---- How to setup:---- 1. Create new measurement---- TIME Time TimeLog LoginLogout No Validations---- 2. Upload eform PushTotime---- 3. Import GM Timer suite---- 4. Set form Id number in the GM script. --- 5. Requires Cookies accept in FF options.---- Stan.

Document Actions

 

Download button

DOWNLOAD OSCAR FOR TESTING

 

eForms button

DOWNLOAD SHARED E-FORMS


 Customize button

FIND PLUG-INS AND TWEAKS
FOR YOUR OSCAR EMR

 

Subscribe Button

SUBSCRIBE TO DISCUSSION LIST 
(SEE ALL LISTS)

  

Help button

ACCESS THE ONLINE MANUALS
(PAID SUPPORT)