Does anyone know how to Sign/Print pending prescriptions using MEL?
I'd like to have a form button just like the one on the stock Prescriptions form. I tried running a MEL trace while using the Prescriptions form but couldn't find it in the code.
It's definitely not supported or designed to be able to add a sign/print button to custom forms.
Out of curiosity I took a peak inside the Prescription form and it appears to use special functions and symbols not accessable by other forms.
I tried to modify a test form to see if I could change a button to sign/print rx. After creating the clinical kit files, I opened the EFM in Notepad and changed the code of the button to match that of stock sign/print button.
For example, the part in red (the numbers before it specifiy the size and position):
ButtonFieldTemplate 4 8 603 32 [mPrintBtn][][][mEnablePrint][mPrintBtn][1][2048][][][][][]
I imported it into CPS and it didn't work, so I changed the form's name to Prescriptions, reimported, and it did work. So it's only possible if the form's name is Prescriptions and the EFM file is manually edited to have the print code as VFE can not do it. Probably a bad idea to do this, but it looks like a custom prescription form can be hacked together if necessary.
Wow, thanks kwolfe! You are a genious!
I don't want to recreate the Prescriptions form, but rather just have the ability to sign pending scripts from somewhere other than just the Prescriptions form and the Update Medications screen.
I really appreciate you checking this out and posting back your findings!!!
-mj
fyi, I am able to do the same thing with the Select Pharmacy button on the Prescriptions. form. It calles a function "mSelectPharm". But the form has to be named Prescriptions.