i have an old 'Prescriptions' form i am using in CPS10
it is the one that pulls in from the RxRefill button
i do not have a .dlg or .fd file with it.
i would like to be able to add an 'update meds' button (function ADD_MEDICATION) to this form but don't know how.
any hints/ideas/tips, etc ?
feel free to email directly if you want [email protected]
btw...
i have tried adding the following code to the .efm file:
ButtonFieldTemplate 4 92 457 116 [ADD_MEDICATION][][][][Update Meds][0][4102][Arial:8:][16711680][]
however, the button does nothing when pressed. what else to i need to do?
also, how do i move the postition to where i want it? i don't know how to adjust the numbers that position it (ie. 4 92 457 116) ???
i think that the add_medication needs to have curly braces around it.
The numbers are the top left hand corner and the bottom right hand corner "coordinates" in pixels.
eg 4 92 457 116 would have the top left corner 4 pixels down and 92 pixels in (or maybe the other way around) and the bottom right at 457,116.
thanks for response.
changed to :
ButtonFieldTemplate 4 92 457 116 [{ADD_MEDICATION}][][][][Update Meds][0][4102][Arial:8:][16711680][]
no difference
button still does nothing
In EMR there is no ADD_Medication MEL function. You have UPDATE_MEDS() and NEWMEDS(customlist). If there is a CPS ADD_MEDICATION function you may need to put empty parenthesis after it i.e. {ADD_MEDICATION()}
David Shower
OU Tulsa School of Community Medicine
You can use mel_add_medication:
The code you using:
ButtonFieldTemplate 4 92 457 116 [ADD_MEDICATION][][][][Update Meds][0][4102][Arial:8:][16711680][]
Seems to be correct. I would check on [16711680] and make sure the rest of the refill form is using that number. I placed this code into an efm on a test form, and it worked.
It seems to work in forms other than the Prescriptions form. I've tried other actions for the button (i.e. OPEN_FORM_COMP()), but I have had no success in getting a new button to do anything on this form. Something is keeping functions from working (other than the ones used for selecting pharmacy, auth provider, etc.)
Yeah, so basically GE has made it to where you can't add any other functions (i.e. ADD_MEDICATION) to its Prescription form. If we change the name, sign/print and Select pharm buttons stop working.
I was just trying to edit my post to mention that!
Yeah, that is unfortunate.
mikeseale said:
Yeah, so basically GE has made it to where you can't add any other functions (i.e. ADD_MEDICATION) to its Prescription form. If we change the name, sign/print and Select pharm buttons stop working.
This is by no means a solution. But if you want a quick way to CHANGE meds when on the Rx Refill screen.
Shift + Ctrl + M = Opens the Update Meds Dialog box (displays in front of the form)
Shift + Ctrl + R = Refill Prescription (this will refresh the form with any changes)