It seems easy enough but I am certainly doing something wrong here. I have a simple MEL expression pulling in data from insurance company information
{INS_NAME("P")}
It works fine in the form but I can't get it to show up in text or print. This is what I have in chart note and printed form.
{IF INS_NAME("P")<>"" THEN fmt("Primary Insurance plan: ", "B") + INS_NAME("P") ELSE " " ENDIF}
I don't get what I am doing wrong. Thoughts?
I seem to recall something like this happening to me. I was using a 'data' display element, and added HRET to end of the field.
here is a small form for insurance i have you can look at
Wouldn't you need a fmt statement for the INS_NAME too? Or just put it all in a CFMT statement?
{CFMT(INS_NAME("P","","Primary Insurance plan: ","B","","")}
thanks! I will give those a try and post back
This is what I ended up using, its working fine now.
Thanks!
{IF INS_ID("P")<>""
THEN fmt("Primary Insurance ID: ", "B") + cfmt(INS_ID("P"),"","","","
","")
ELSE "
" ENDIF}