-
Question
-
Resolution: Done
-
Blocker
-
None
-
Attempting to revise a measure by removing lookbacks for denominator exclusions and I am having trouble with syntax.
-
6175010748
-
Appropriate Treatment for ST-Segment Elevation Myocardial Infarction (STEMI) Patients in the Emergency Department (ED)
Initial draft of this measure had denominator exclusions with lookback periods some extended through the 1 year measurement period, others varied in length from weeks to months. I am attempting to remove all lookback periods and would like all exclusions to be excluded based on conditions that appear during the ED Visit.
One exclusion is Mortality in the ED...when I revised the syntax from:
/Mortality in ED/
exists ( ["Encounter, Performed": "Mortality in ED"] edmort
where edmort.relevantPeriod during "Measurement Period"
)
or exists ( ["Encounter, Performed": "Mortality in ED (2)"] edmort2
where edmort2.relevantPeriod during "Measurement Period"
)
to
/Mortality in ED/
exists ( ["Encounter, Performed": "Mortality in ED"] edmort
where edmort.relevantPeriod during "ED Encounter"
)
or exists ( ["Encounter, Performed": "Mortality in ED (2)"] edmort2
where edmort2.relevantPeriod during "ED Encounter"
)
I receive the following message: ERROR Could not resolve call to operator INcludeIn with signature (interval<System.DateTime>, System.Boolean)
Other potentially relevant pieces of code are below:
define "ED STEMI":
exists ( "ED Encounter" ) EDVisit
with ( "STEMI Encounter" ) STEMIED
such that EDVisit.relevantPeriod overlaps STEMIED.relevantPeriod
define "ED Encounter":
( ["Encounter, Performed": "ED (01)"] EDVisit
where EDVisit.relevantPeriod during "Measurement Period"
sort by
end of relevantPeriod desc
)
define "Initial Population":
exists ["Patient Characteristic Birthdate": "Birthdate"] BirthDate
where Global.CalendarAgeInYearsAt ( BirthDate.birthDatetime, start of "Measurement Period" ) >= 18
and exists ( "STEMI Encounter" )
and exists ( "ED Encounter" )
define "STEMI Encounter":
( ["Encounter, Performed": "STEMI (01)"] STEMIVisit
where STEMIVisit.relevantPeriod during "Measurement Period"
sort by
end of relevantPeriod desc
)
define "PCI or Fibro Treatment":
( ["Encounter, Performed": "Fibrinolytic Therapy (01)"]
union ["Encounter, Performed": "Percutaneous Coronary Intervention (01)"] AppropriateTreatment
where AppropriateTreatment.relevantPeriod during "Measurement Period"
sort by
end of relevantPeriod desc
)
define "Allergic Reaction":
["Encounter, Performed": "Streptokinase adverse reaction (disorder)"]
union ["Encounter, Performed": "Allergy to anistreplase (finding)"]
union ["Encounter, Performed": "Allergy to streptokinase (finding)"]
union ["Encounter, Performed": "Anistreplase adverse reaction (disorder)"] AllergicEncounter
where AllergicEncounter.relevantPeriod during "Measurement Period"
or AllergicEncounter.relevantPeriod before "Measurement Period"
define "Denominator Exclusion":
/Defining all Denominator Exclusions/
/Mortality in ED/
exists ( ["Encounter, Performed": "Mortality in ED"] edmort
where edmort.relevantPeriod during "ED Encounter"
)
or exists ( ["Encounter, Performed": "Mortality in ED (2)"] edmort2
where edmort2.relevantPeriod during "ED Encounter"
)