Hello all,
I'm editing a handout that currently prints out only OBS terms. I was curious what the syntax would be for document variables.
Current:
Pre-Operative Orders:", "B,u,1")}
{CFMT(OBSNOW("PREOPLABSORD"),"","","B","
")}{CFMT(OBSNOW("12LEADEKG"), "", "", "B", "
")}{CFMT(OBSNOW("COAG COMMENT"), "", "", "B", "
")}{CFMT(OBSNOW("PRGPTFMHX"), "", "", "B", "
")}
vs (what I tried)
{CFMT(OBSNOW("PREOPLABSORD"),"","","B","
")}{CFMT(OBSNOW("12LEADEKG"), "", "", "B", "
")}{CFMT(OBSNOW("COAG COMMENT"), "", "", "B", "
")}{CFMT(OBSNOW("PRGPTFMHX"), "", "", "B", "
"){"Medications to hold: " + STR(DOCUMENT.MED_HOLD_NONE) + " " +STR(DOCUMENT.MED_HOLD_FREE)}
It just spits out MEL in the handout when I did this. Any thoughts?
Thanks in advance,
Ben
I can't remember if I've ever tried this before, but....
I would start by removing the str() around your document variables.
Document variables are always strings.
Then make sure you're launching the handout from within the open encounter document where the document variables exist.
If that all fails to help, I would mark the document field to be shared with other forms to see if that made any difference.
- Sandy
[email protected]
You need to still 'evaluate' the MEL function within the braces { str(DOCUMENT.....) }. Otherwise, the handout will take whatever you have typed as static text.
BEWARE*******
You can print out document variables on a handout, BUT the handout has to be called from within your VFE form (using PRINTHANDOUT("") function. Additionally, within your VFE form, you need to make sure the checkbox is selected on each of the document variables that states (Share with other EFM Forms). I believe it is in the middle of the field properties window when you click on any particular field with a document variable in VFE.
If you are trying to print a handout outside of an open document, you will always get MEL errors because, once the document is signed, the document variables are no longer active, valid variables because all the values held in the document variables has been absorbed into the chart note.
If you have any other questions, feel free to message me back and I will provide some additional information.
Jim
Thanks all for the feedback. I essentially just switched the document variables to obs terms that fit to meet the deadline. I will review further when I get my head above water.