yehster wrote on Wednesday, October 12, 2011:
I have been working on client side integration with the free Allscripts ePrescribe and openemr.
I have been testing it with the 4.1 and 4.2 versions of OpenEMR, but it should probably work with 4.0.
It requires running firefox and using the greasemonkey addon
http://www.greasespot.net/
The script is available here.
https://github.com/yehster/oemruserscripts/blob/master/greasemonkey/allscriptsInterface.user.js
https://github.com/yehster/oemruserscripts/raw/master/greasemonkey/allscriptsInterface.user.js
It has two many features right now.
1. Find your current patient selected in OpenEMR in Allscripts. This assumes that you have already created the patient’s info in Allscripts.
2. Load the demographic information of the current OpenEMR patient into the Allscripts addPatient.aspx form.
After installing greasemonkey and this script, what you should see is a new button in the upper frame of OpenEMR where the patient’s Name and DOB are displayed. This button is just a link to the Allscripts webpage which opens in a new window. This button is also only displayed when you have an active patient in OpenEMR.
What happens is if you search for a patient in OpenEMR, then click this button, in the new Allscripts window, if you haven’t logged in yet, you are prompted to log in. After you log in, or if you already have an active session, the search boxes will be filled with the current patient’s last name and first name, and the search button gets automatically clicked. Then, it checks to results to see if there is a matching patient (by first name, last name and DOB). If so, that record is automatically selected.
That’s what function 1. does for now.
Function 2 adds a button “Load from OpenEMR” on the page “https://eprescribe.allscripts.com/AddPatient.aspx”.
This assumes that you are logged in to OpenEMR and have already selected a patient.
Upon hitting that button, a request for the demographics information is then sent to whatever OpenEMR server you’ve been using most recently. This information is then used to populate the form in allscripts. You can then hit Save, or edit the other fields, or do what ever you want at this point. It just saves you the trouble of typing in the information available in OpenEMR.
This is early code, so be forewarned that it may be buggy.
-Kevin Yeh