I would like to create an action button for sending a flag.
Could someone please tell me what is wrong with the action button below? This isn't working:
Action Button
Connection Type: Runprocess
{MEL_SEND_FLAG("Flag", "cmleeds", "Important", str(._todaysdate), "Depression Screening", "PHQ-9 >= 18", "summary", "")}
Nothing happens when I click the button from the form in a chart update.
Here is what i have in my button with a Runprocess
{MEL_SEND_FLAG("Flag","my name is here","Urgent","0/07/2012","Flu Vax due","Patient high rish for flu schedule to come in for Flu vaccine","summary","")}
I have the following logic in a button:
//Need to hardcode in the username for the flag recipient
{global msg1 = "Please contact patient with an PHQ-9 score of "
global msg2 = {LASTOBSVALUE("PHQ-9 SCORE")}
MEL_SEND_FLAG("Flag","username","Urgent",str(._todaysdate),"PHQ9 Assistance Needed",msg1 + msg2,"Documents")}
Thus, I think you have an extra parameter after "summary".
I tried using the "global msg1 =" version of the code above, to the letter, using the username of the flag recipient, and the flag is still not sending, even after signing the update.
I've confirmed the username is accurate for the recipient.
Any idea what's missing?
I would do a MEL trace and see why it is failing.
How do I do an MEL Trace? Is this a shortcut key in Centricty that creates the error log? What key stroke is this?
You can turn it on with CTRL-ALT-M or in Options, Tracing. When we do tracing with the hotkey - it ends up in C:\Users\username\appdata\roaming\. If you do it through the menu it might be in a different place.
Just one more thought...
Perhaps type in the command again clean into a blank new space. Sometime MEL is funny about cut/paste and things go weird.
Single and double quote characters are notorious for this.
I'll give that a try. Thanks.