-
Type:
Question/Guidance
-
Resolution: Done
-
Priority:
Major
-
Component/s: None
-
None
-
We have to submit the FHIR package to Mathematica by Friday but can't produce with errors.
-
2036714650
Hi,
We keep getting an error message in the FHIR/CQL version of the STEMI measure in the MAT v6.10 (FHIR). The deadline for submitting the FHIR measure package (without errors) is Friday 10/14/22. We tried many different syntax but can't get past the error. Please let us know if you need any additional information.
Thanks,
Beth Triche
The code where the error messages begin is supposed to be defining “ED Encounter with Diagnosis of STEMI”. With the automatic conversion from the QDM version to FHIR version, we got error messages in the FHIR version beginning with the following code.
61 define "ED Encounter with Diagnosis of STEMI":
62 ["Encounter": "ED"] EDEncounter
63 where ["Condition": "STEMI"] DxSTEMI
64 such that DxSTEMI.clinicalStatus = ‘active’
65 and EDEncounter.status = 'finished'
66 and Global."Prevalence Period" ( DxSTEMI ) starts during EDEncounter.period
67 and EDEncounter.period during "Measurement Period"
**
The errors usually are around
such that DxSTEMI.clinicalStatus ~ Global."active"
I also noticed later in the code, where we define similar variable, the code doesn’t include the ~Global.”active”
152 define "ED Encounter with Encounter Diagnosis of STEMI":
153 ["Encounter": "ED"] EDEncounter
154 where EDEncounter.status = 'finished'
155 and ( EDEncounter.reasonCode in "STEMI"
156 or exists ( ( Global."EncounterDiagnosis" ( EDEncounter ) ) EncDiagnosis
157 where EncDiagnosis.code in "STEMI"
158 )
159 )
160 and EDEncounter.period during "Measurement Period"
161
162 define "ED Encounter with STEMI Diagnosis":
163 "ED Encounter with Encounter Diagnosis of STEMI"
164 union "ED Encounter with Diagnosis of STEMI"
165
__________________________________________________________________
define "ED Encounter with Encounter Diagnosis of STEMI":
["Encounter": "ED"] EDEncounter
where EDEncounter.status = 'finished'
and ( EDEncounter.reasonCode in "STEMI"
or exists ( ( Global."EncounterDiagnosis" ( EDEncounter ) ) EncDiagnosis
where EncDiagnosis.code in "STEMI"
)
)
and EDEncounter.period during "Measurement Period"
define "ED Encounter with Diagnosis of STEMI":
["Encounter": "ED"] EDEncounter
where ["Condition": "STEMI"] DxSTEMI
such that DxSTEMI.clinicalStatus ~ Global.'active'
and EDEncounter.status = 'finished'
and Global."Prevalence Period" ( DxSTEMI ) starts during EDEncounter.period
and EDEncounter.period during "Measurement Period"
define "ED Encounter with STEMI Diagnosis":
"ED Encounter with Encounter Diagnosis of STEMI"
union "ED Encounter with Diagnosis of STEMI"
____________________________________________________________
define "ED Encounter with Diagnosis of STEMI":
from
["Encounter": "ED"] EDEncounter,
["Condition": "STEMI"] DxSTEMI
such that DxSTEMI.clinicalStatus = 'active'
and EDEncounter.status = 'finished'
and Global."Prevalence Period" ( DxSTEMI ) starts during EDEncounter.period
and EDEncounter.period during "Measurement Period"
______________________________________________________________