Just wanted to check in here before I reinvented the wheel. Does anybody have a function that utilizes the error handling for MEL_ADD_ORDER (pop up preferably)? More specifically these 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
Probably not exactly what you want, but this is a generic error code processor code snippet:
strError=Mel_Add_Order("S","CPT II Codes",arrayGCD[j][2], strMod, strICD9, strProbDesc,"","1","N","", ADDDATES(str(._TODAYSDATE), "0", "0", "0"))
if strError<>0 then
userok("Error in placing order: "+arrayGCD[j][1]+". "+HRET+"Description: "+arrayGCD[j][2]+HRET+"Error Code: "+strError)
endif
Thanks! I think I can work with that