I swear I once had a MEL expresssion within an action button that printed a specific handout...am I dreaming this? Or is there actually a MEL button that can do this?
Thank you!
description Prints the specified handout. type Data symbol function syntax PRINTHANDOUT(ID,Language,Type,Illustration) PRINTHANDOUT(path and name) arguments
when to evaluate N/A returns Prints the handout specified in the argument comment Patient Education Handout ID’s can be found by going to the Print Handouts window and clicking the binoculars button to open up the full list. At the bottom of the window, click More>> to see additional information on the selected handout, including the ID. example 1 {PRINTHANDOUT("220","E","H","N")} Prints the Breast Self Exam Handout in English with the associated illustration. example 2 {PRINTHANDOUT("Enterprise\Medicalogic\Informed Consent")} Prints the Informed Consent custom handout from the Medicalogic folder. where used Encounter Form Action Buttons only. |
I just realized...I never said thank you for this.
Much appreciated.
I just have one other question...if you create a handout template, can you give it an ID number as Centricity has given theirs.
I can seem to create a function to print custom templates.
I've never assigned an ID to a handout/letter. Don't think it's possible. I just use the path/name.
This will print the handout and then check the item in a listbox.
{fn PrintHandouts(handoutName, list, listval)
{
PRINTHANDOUT(STR(handoutName))
if EVAL(list)<>"" then
if MATCH(EVAL(list), 1, listval)==0 then
EVAL(list + ' = ' + list + ' + ", " + "' + listval + '"')
endif
else
EVAL(list + ' = "' + listval + '"')
endif
return ""
}
}
Thank you. I tried to give them IDs, that was a no-go. I was however, (using) the same as above last night and got them to print using the path.
Thanks again for the input.
Rebecca
Any tips on assigning the correct path?
I have a custom letter that users would like to print from the form we are building and I just can't figure what the path is...
In the action button, set connection type to RUNPROCESS. Click the button below the code window that says function. Leave library name blank, in function name find
PRINTHANDOUT(path and name) and click okay. A select handout window will pop up, search the name of the handout you want to print, select one and click okay. If you have multiple handouts with the same name its kind of trial and error but should get you there fairly quickly.
Thank You!
Actually, I had the right path, but the custom handout is not recognized by VFE. I must not be putting it in the right spot in the EMR. I goto settings > handouts > handout templates.
I put it in every folder and nothing shows up in VFE.
What am I missing besides 3 more years of experience and a degree in computer science?
Do you have more than one database? VFE connects to only database to lookup observation terms, handouts, form paths, etc. If it is connected to a database that doesnt have that handout loaded it will not show up using this method. If you go to Tools -> Options - > Advanced you can see what database VFE is connected to.
I have had trouble with getting the path right with this function as well, even when the path reads correctly. Sometimes I switch forward slashes to backslashes, or delete the function and retype it. Im not sure why I have these problems sometimes but when I use the process outlined above it works more often than not.
found it.
whatever the reason is, it doesn't "show up" in VFE, but the path points to the document and we are able to print from the form. I guess that's all that matters...
-thanks again
huge help over the past couple of days, much appreciated!