Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assistance required with Error message in CQL Library Editor #1272

Closed
Svellanky1 opened this issue Nov 6, 2023 · 4 comments
Closed

Assistance required with Error message in CQL Library Editor #1272

Svellanky1 opened this issue Nov 6, 2023 · 4 comments
Labels
input needed The issue needs more input from the submitter or another participant question

Comments

@Svellanky1
Copy link

We are receiving the following errors in CQL Library Editor after editing the value set name for one of the value sets used:
ERRORS:


Line 160: Could not validate reference to expression Active Exclusion Diagnosis at Start of ED Encounter because its definition contains errors.
Line 184: Could not resolve identifier Pregnancy (ICD10CM and SNOMEDCT) in the current library.
*******************************************************************************************************************/

The relevant lines from the CQL code are below:
156
157 define "Denominator Exclusions":
158 "Allergy or Intolerance to Thrombolytic Medications Overlaps ED Encounter"
159 union "Adverse Effect to Thrombolytic Medications Before End of ED Encounter"
160 union "Active Exclusion Diagnosis at Start of ED Encounter"
161 union "Active Oral Anticoagulant Medication at the Start of ED Encounter"
162 union "Exclusion Diagnosis During ED Encounter or Within 24 Hours of ED Encounter Start"
163 union "Major Surgical Procedure 21 Days or Less Before Start of or Starts During ED Encounter"
164 union "Intubation or Mechanical Circulatory Assist Procedure During ED Encounter or Within 24 Hours of ED Encounter Start"
165 union "Active Exclusion Diagnosis Within 90 Days Before or At the Start of ED Encounter"
166 union "Intracranial or Intraspinal Procedure 90 Days or Less Before Start of ED Encounter"
167 union "ED Encounter with Discharge Disposition as Patient Expired"
168
169 define "Active Oral Anticoagulant Medication at the Start of ED Encounter":
170 "ED Encounter with STEMI Diagnosis" EDwSTEMI
171 with ["Medication, Active": "Oral Anticoagulant Medications"] OralAnticoagulant
172 such that ( Global.HasStart ( OralAnticoagulant.relevantPeriod )
173 and OralAnticoagulant.relevantPeriod starts before or on start of EDwSTEMI.relevantPeriod
174 and OralAnticoagulant.relevantPeriod ends on or after start of EDwSTEMI.relevantPeriod
175 )
176 or ( OralAnticoagulant.relevantDatetime before or on EDwSTEMI.relevantPeriod )
177
178 define "Active Exclusion Diagnosis at Start of ED Encounter":
179 "ED Encounter with STEMI Diagnosis" EDwSTEMI
180 with ( ["Diagnosis": "Active Bleeding Excluding Menses or Bleeding Diathesis"]
181 union ["Diagnosis": "Malignant Intracranial Neoplasm Group"]
182 union ["Diagnosis": "Cerebral Vascular Lesion"]
183 union ["Diagnosis": "Dementia and Related Intracranial Pathologies"]
184 union ["Diagnosis": "Pregnancy (ICD10CM and SNOMEDCT)"]
185 union ["Diagnosis": "Allergy to thrombolytics"] ) ActiveExclusionDx
186 such that ActiveExclusionDx.prevalencePeriod overlaps before EDwSTEMI.relevantPeriod

Would you please let us know how to resolve this error? The value set has been updated in the workspace. Is there another step we are missing?

@JPercival
Copy link
Contributor

Hi @Svellanky1! Thanks for the report. What is the "CQL Library Editor" you are referring to? At first glance it looks like you're missing a Value Set definition. It will look something like the following, but replace the example URL below with the correct one for your scenario.

valueset "Pregnancy (ICD10CM and SNOMEDCT)" : 'example.com/valueset/123`

@JPercival JPercival added question input needed The issue needs more input from the submitter or another participant labels Nov 6, 2023
@Svellanky1
Copy link
Author

Hi @JPercival, thank you for your response. Apologies for the confusion, we are trying to edit the specifications for our measure in the MAT in the CQL workspace. This is where the error is showing up. Does that help?

In terms of the value set definition, we have that in the specifications already as:
valueset "Pregnancy (ICD10 and SNOMEDCT)": 'urn:oid:2.16.840.1.113883.3.3157.4055'
All other value sets are similarly defined but if there is anything additional that we need to do please let us know.

Thank you!

@JPercival
Copy link
Contributor

Hmm... It's not obvious to me where the issue is given that you've already defined the valueset. The MAT tool is actually "downstream" from this project. The Github org for MAT is here:

https://github.com/MeasureAuthoringTool

You may have better luck diagnosing the issue there.

@Svellanky1
Copy link
Author

Thank you for your assistance, @JPercival

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
input needed The issue needs more input from the submitter or another participant question
Projects
None yet
Development

No branches or pull requests

2 participants