I have created a custom for a provider where she clicks on "out of work" in the patient instructions. Is there a way for the provider to click "out of work" and have the handout/letter pop up automatically for the doctor to write the work excuse?
You can print a handout automatically with a button set to runprocess or watcher pane code in a form. This code that I use in a runprocess button prints the handout and then sets a variable I use to record that the handout was printed into the note.
PRINTHANDOUT("HandoutsDIABPEDHeight & Weight Status") DOCUMENT.HWS="Height and Weight Status handout printed and given to patient" }
You can't do that with a letter, can't even bring up the Print, Letters dialog. And letters are the only ones you can customize. Handouts can't be customized - only printed. Your best bet, if the provider has to customize, would be to create a form that basically filled in all the info needed and then give them a button to print the handout and have the handout coded to document variables or obsnow values.
Thank you!!
I have created a button in VFE for a form entry that prints a handout and records the action to an OBS term:
{PRINTHANDOUT("Handouts\NEMC\GM Internal medicine\GM Patient Education\Medications")}
{OBSNOW("MEDICAT LIST","PRINTED by MA for patient")}
Note, I was able to have the handout execute MEL commands - filling in patient name, listing meds, etc...(I had thought that only letters could do this.)