This is a request for assistance with updating a set of measures, currently under development, by replacing the current qualifying encounter logic with one of the functions in the library MATGlobalCommonFunctions version '4.1.000'.
The initial population is all inpatient encounters including those that originate in the ED or Observation, therefore I'm attempting to replace the current CQL qualifying encounter logic with the logic from global library function "HospitalizationWithObservation" to determine the IP.
Excerpt from CQL logic from one of the measures, but it doesn't seem correct:
define "Qualifying Inpatient Encounters":
["Encounter, Performed": "Encounter Inpatient"] InpatientEncounter
where InpatientEncounter.relevantPeriod during "Measurement Period"
define "Qualifying Encounters":
"Qualifying Inpatient Encounters" QualifyingEncounter
where AgeInYearsAt(start of Global."HospitalizationWithObservation"(QualifyingEncounter))>= 18
define "Initial Population":
"Qualifying Encounters"
intersect ( "Anticoagulant Medication Administered During Hospitalization"
union "Thrombolytic Medication Administered During Hospitalization"
)
define "Anticoagulant Medication Administered During Hospitalization":
"Qualifying Encounters" ValidEncounters
with ["Medication, Administered": "Anticoagulant Medications"] AnticoagulantMedication
such that AnticoagulantMedication.relevantPeriod during ValidEncounters.relevantPeriod
......etc.
In MAT, I selected the MATGlobalCommonFunction v4.1 using the "Includes" feature, not the "Function" feature. I logged an issue with the MAT Support, but I am having difficulty following their instructions, and they advised this is more so a CQL issue and recommended I log a ticket here. I disclose that I am not an expert measure developer, so I've searched for examples and resource sites to learn about how to apply globalcommon functions, and have not been able to find anything sufficient. I admit this may be a training issue for me. Can you advise on next steps?