Hi there, I was hoping someone could help me out. I want to have a button that specifies a problem and when the button is clicked automatcially adds the problem to the patients problem list. I am working with some code that looks like this but I it is not working at all. I am using a button/run process
{MEL_ADD_PROBLEMS("", "Abnormal Blood Results", "Abrnormal Blood Results", "", fnGetProblemCodes(), fnGetProblemDescriptions(), "", "", "", "", "")
}
I am sure I am missing a bunch here, please help!
Thanks!
You have too many arguments, this is the syntax
MEL_ADD_PROBLEM(type, description, code, onset_date, end_date, annotate,
assessment, comment)
For type you probably want "dx of"
The default for onset_date is today
Annotate means a comment on the problem, comment means a comment on the assessment.
You probably just want to leave the last 5 fields as ""
Also, the fnGetProblemsCodes and fnGetProblemDescriptions is used when you are picking a problem from a list and then using it to push an order.
Looks like you would want something more like this:
MEL_ADD_PROBLEM("dx of", "OTHER ABNORMAL BLOOD CHEMISTRY", "ICD-790.6", str(._TODAYSDATE), "", "")