So I am trying to build some quick texts that will complete 3 functions.
1. Will add the Dx code to the problem list (this is working).
2. Will add the med to the med list (this is also working).
3. Will add the order to the orders module with the dx code attached to it (not working as it is asking for a modifier, even though the MEL Symbol help states that the modifier is optional).
So is the modifier a truly optional item or is it required?
See below thread:
{MEL_ADD_PROBLEM("DX OF","Strep sore throat","ICD-034.0",str(._todaysdate))""}
{MEL_ADD_MEDICATION("AMOXICILLIN 875 MG ORAL TABS","1 po TWICE DAILY","03/26/2015",56787,"04/04/2015","20","0","N","Brand is not indicated")}
{MEL_ADD_ORDER("S",".Office Labs","Rapid Strep (Office)","ICD-034.0","Strep sore throat")""}
Any help would be greatly appreciated!
You still need a placeholder for everything, it is optional though. This should work for you -
{MEL_ADD_ORDER(“S”,”.Office Labs”,”Rapid Strep (Office)”,"",”ICD-034.0″,”Strep sore throat”,””,"","","","")}
This worked! I left off the end ,””,"","","","" and only filled in the modifier section and works perfectly! Thank you very much.
Rationale:
Data symbols are in reality, functions. As such, each parameter (aka argument) is indexed in the list. While most times, you can safely omit unused trailing arguments, you cannot omit an argument between used arguments as it will throw off the index, instead you must use a null placeholder signified by empty quotes.
Example:
fnRandomFunction(arg1,arg2,arg3,arg4)
If you omit arg2, to the function, arg3 becomes arg2 and arg4 becomes arg3, which in turn breaks the function.
Clear as mud?