cqframework / ecqm-content-qicore-2022

eCQM FHIR Measure Content based on 2022 AU Measures
Creative Commons Zero v1.0 Universal
5 stars 14 forks source link

FHIRHelpers.ToConcept cannot resolve call to operator with signature (System.Concept). #9

Closed JuliaDawson closed 1 year ago

JuliaDawson commented 2 years ago

Please see the attached zip file for screenshots, CQL and testcase for problems in STK-2. STK-2_ForToConcept_Error.zip

Error says 'Could not resolve call to operator ToConcept with signature (System.Concept).' in logic like below:

define "Pharmacological Contraindications for Antithrombotic Therapy at Discharge": ["MedicationRequest": medication in "Pharmacological Contraindications For Antithrombotic Therapy"] Pharmacological where Pharmacological.doNotPerform is true and exists ( Pharmacological.category C where FHIRHelpers.ToConcept ( C ) ~ FHIRCommon."Community" or FHIRHelpers.ToConcept ( C ) ~ FHIRCommon."Discharge" and Pharmacological.status in { 'active', 'completed' } and Pharmacological.intent = 'order')

drthyl commented 2 years ago

Would the error resolve if you remove FHIRHelpers.ToConcept?

define "Pharmacological Contraindications for Antithrombotic Therapy at Discharge":
["MedicationRequest": medication in "Pharmacological Contraindications For Antithrombotic Therapy"] Pharmacological
where Pharmacological.doNotPerform is true
and exists ( Pharmacological.category C
where C ~ FHIRCommon."Community"
or C ~ FHIRCommon."Discharge"
and Pharmacological.status in { 'active', 'completed' }
and Pharmacological.intent = 'order')
JuliaDawson commented 2 years ago

It does! Thank you!

brynrhodes commented 1 year ago

Fixed in 0.4.0