I created a quick text that has some text and a mel_add_order function. It works great but I get a zero after the text.
Any idea why?
A return code is programmed into that symbol.
You'll get a 0 if the order processed correctly.
You'll get any one of several - numbers returned to let you know why the order failed.
-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
I would suggest you put a if clause around the Add Order similar to if MEL_ADD_ORDER(...) <0 then userok("The order did not record.") else "" endif
Thank you kindly!