Hello!
I am trying to add a checkbox that will push out multiple results to the note. I am having trouble with this because it is not liking the "Multiple Expressions in a single item". Since I am using a checkbox I added the expressions on the Translation tab under Chart Note. When I tested the form in our demo it worked but when I put it in live it did not like it. Any suggestions as to how I can add all of these expressions to the note with a click of a checkbox?
This is what I had added on the Translation tab:
Labs Reviewed this Visit:
{cfmt(LASTOBSVALUEDATE("HGBA1C"),"", " HGBA1C: ", "B", "")}{cfmt(LASTOBSVALUEDATE("CREATININE"),"", " Creatinine: ", "B", "")}{cfmt(LASTOBSVALUEDATE("MALCR"),"", " Microalbumin Ratio: ", "B", "")}{cfmt(LASTOBSVALUEDATE("GLYCO-HGB"),"", " Glycohemoglobin: ", "B", "")}{cfmt(LASTOBSVALUEDATE("TSH"),"", " TSH: ", "B", "")}{cfmt(LASTOBSVALUEDATE("CHOLESTEROL"),"", " CHOL: ", "B", "")}{cfmt(LASTOBSVALUEDATE("LDL"),"", " LDL: ", "B", "")}{cfmt(LASTOBSVALUEDATE("HDL"),"", " HDL: ", "B", "")}{cfmt(LASTOBSVALUEDATE("TRIGLYCERIDE"),"", " Triglyceride: ", "B", "")}{cfmt(LASTOBSVALUEDATE("DIAB EYE EX"),"", " Diabetic Eye Exam: ", "B", "")}{cfmt(LASTOBSVALUEDATE("DIAB FOOT CK"),"", " FOOT CK: ", "B", "")}{cfmt(LASTOBSVALUEDATE("PNEUMOVAX"),"", " PNEUMOVAX: ", "B", "")}{cfmt(LASTOBSVALUEDATE("FLU VAX"),"", " FLU VAX: ", "B", "")}
Thanks!
-Alex
This may not be the easiest solution, but when I need to dump multiple obsterms to the chart I use a runprocess button tied to a document variable and set up a visibility region with a single text field containing everything I need formatted in the format field based on the condition.
I'll keep an eye on this thread in case there's a simpler solution just in case.
You can use IF statements in the text translation. So tie your checkbox to a document variable and put something like this in its text translation (untested):
{if (DOCUMENT.MYCHECKBOXVALUE<>"") then
"Here are all the current values:
HGBA1C: "+OBSNOW("HGBA1C")+"
CREATININE: "+OBSNOW("CREATININE")+"
"
else "" endif }
Don't forget the else "" endif, or else the text translation prints FALSE or 0 or something like that when the if statement is false.
If you want the formatting you can use the fmt() command. Like this (untested):
{if (DOCUMENT.MYCHECKBOXVALUE<>"") then
"Here are all the current values:
"+fmt("HGBA1C: ","B")+OBSNOW("HGBA1C")+"
"+fmt("CREATININE: ","B")+OBSNOW("CREATININE")+"
"
else "" endif }
As you can see cfmt() is nothing special, it's just a built-in function wrapped around an IF statement.