I can't get this thing to work, I don't get any errors and my MEL trace is clean but it just won't show up!
thoughts?
{IF OBSNOW("PTDISCH") == "yes"
THEN MEL_SEND_FLAG("Popup Alert",,"Important",str(._todaysdate),"Patient DC","THIS PATIENT HAS BEEN DISCHARGED FROM THE PRACTICE no more appointments to be scheduled 30 days after this popup","Summary","")
ELSE ""
ENDIF}
It could be the two comma's following your Pop Up Alert and Important. When I create a quick text and paste it into it I get this when I run it.
{IF OBSNOW("PTDISCH") == "yes"
THEN MEL_SEND_FLAG("Popup Alert",, <-COMPILER ERROR NEARBY: Expect EXPRESSION. Instead had COMMA after COMMA
Maybe that will get you close?
I tried to run the MEL_SEND_FLAG code as a quick text and it threw an error with no one being specified to send the flag to as the cause (didn't like the two commas together). Worked if I put a userid in quotes in the second field.
try this?
MEL_SEND_FLAG("Popup Alert","","Important",str(._todaysdate),"Patient DC","THIS PATIENT HAS BEEN DISCHARGED FROM THE PRACTICE no more appointments to be scheduled 30 days after this popup","Summary") }
Added empty quotes for the user name- still need to try it with the if statement
Tried putting empty quotes there as well, but I forgot I made another change, so yea, that did it. thanks!