I am using the function below in a form data display MEL expression, but it is displaying all problems, not just ones containing apnea. Do I have something wrong?
{LISTSUBSET(PROB_ACTIVE("list"),"list","apnea", "contains", "any")
Can you post the code for the function LISTSUBSET? That isn't a MEL function that I am aware of.
I found it by looking through help, this what it says-
description This function filters clinical lists, such as problems, medications, and allergies, enabling display of only part of a list. type Data symbol function syntax LISTSUBSET(list, list_format, string, match_type, case) arguments
returns A list of items that match the specified string, formatted as specified by list_format comment Be very careful how you use this function. For example, you could create a LISTSUBSET function to display problems from the problem list that start with Diab, intending to display all of the patient’s problems that are related to diabetes. However, some diabetes-related problems may not show up, such as peripheral neuropathy. example 1 {LISTSUBSET(PROB_PRIOR("list"),"list","diab", "contains", "any") returns DIABETES MELLITUS W/PERIPH CIRCULAT DISORDERS (ICD-250.7) POLYNEUROPATHY IN DIABETES (ICD-357.2)_ This example, from the Childhood Immunizations form included in the Pediatrics clinical content, makes use of the fact that observation terms for immunizations have a "#" character in them. example 2 {LISTSUBSET(OBS_LIST_CHANGES(), "list", "#", "contains", "any")} returns Added new observation of DPT #4VIS: 06/11/1999 (06/11/1999 9:49) Added new observation of DPT #4EXP: 06/20/2003 (06/11/1999 9:49) Added new observation of DPT #4SITE: right deltoid (06/11/1999 9:49) Added new observation of DPT #4BY: doctor (06/11/1999 9:49) Added new observation of DPT #4RTE: SQ (06/11/1999 9:49) Added new observation of DPT #4LOT: 4 (06/11/1999 9:49) Added new observation of DPT #4MFR: Smith-Kline-Beecham (06/11/1999 9:49) Added new observation of DPT #4: done (06/11/1999 9:49) where used Chart: letter and handout templates, text components, and quick text. Encounter Form Editor: MEL expressions |
Sorry, guess I typed it wrong looking for it. The format looks fine - the only thing I see if if that is your exact code you pasted you are missing the closing curly bracket.
That's right, I just fixed it but it still didn't work but thanks for catching that.
Have you looked at a MEL trace yet?
No, good idea, I will try that.