I have an action button using MEL ADD ORDER and I need a way to display the error code using the USEROK feature. I can see the error code in the MEL Trace.
Action Button code: {PLACE_ORDER(DOCUMENT.TEMP_570257250_2643_34955952,"Colonoscopy - 45378","Colonoscopy - 45378")}
MEL ADD ORDER error codes:
-1 : Invalid Order Type
-2 : Invalid order category
-3 : Invalid Description
-4 : Order obsolete
-5 : Invalid Diagnosis Code
-6 : Comments field too long
-7 : Invalid Priority
-8 : Invalid or obsolete authorizing provider
-9 : Invalid order date
-10: Invalid Modifier
-11: Additional information is required for this order
-12: Unequal number of diagnosis codes and diagnosis code descriptions
-13: Invalid quantity or units
Theresa
result = MEL_ADD_ORDER(parameters)
cond
case result = -1
USEROK("Invalid Order Type")
case result = -2
USEROK("Invalid order category")
case result = -3
USEROK("Invalid Description")
case result = -4
USEROK("Order obsolete")
case result = -5
USEROK("Invalid Diagnosis Code")
case result = -6
USEROK("Comments field too long")
case result = -7
USEROK("Invalid Priority")
case result = -8
USEROK("Invalid or obsolete authorizing provider")
case result = -9
USEROK("Invalid order date")
case result = -10
USEROK("Invalid Modifier")
case result = -11
USEROK("Additional information is required for this order")
case result = -12
USEROK("Unequal number of diagnosis codes and diagnosis code descriptions")
case result = -13
USEROK("Invalid quantity or units")
else
""
end cond