I have a form that lists a patients Allergies via the following function:
{ALL_AFTER("LIST")}
If the person does not have any allergies I would like it to say
"No Drug Allergies Listed"
Is this possible?
Thanks,
cdpaxson
Use a data display set to MEL Expression with this -
{if (ALL_AFTER() <> "") then
ALL_AFTER("list")
else
"No Drug Allergies Listed"
endif}
I tried that and I get no results.
It should, if you want it displayed in the form that should work, if you want that in the text translation as well you will need to change the Chart note box under the translation tab, it should look something like -
{CFMT(ALL_AFTER("LIST"), "", "Allergies
", "B,U", "
")}
Change it to -
{if ALL_AFTER("LIST") <> "" then
CFMT(ALL_AFTER("LIST"), "", "Allergies
", "B,U", "
")
else
FMT("No Drug Allergies Listed
","")
endif}
Thank you. It works!