cqframework / clinical_quality_language

Clinical Quality Language (CQL) is an HL7 specification for the expression of clinical knowledge that can be used within both the Clinical Decision Support (CDS) and Clinical Quality Measurement (CQM) domains. This repository contains complementary tooling in support of that specification.
https://confluence.hl7.org/display/CDS/Clinical+Quality+Language
Apache License 2.0
267 stars 123 forks source link

CQL function operand resultType null #1378

Open arby50 opened 4 months ago

arby50 commented 4 months ago

When including FHIRHelpers version '4.0.1' in a CQL file, compiling into ELM and calling engine.evaluate() using the resulting ELM file, the subsequent CQLEngine.loadAndValidate() call errors when attempting to add the first ExpressionDef "ToInterval" based on the null resultType of the 'period' Operand. CQL: define function ToInterval(period FHIR.Period):

exception in Signature.java throw new IllegalArgumentException("operandTypes in signatures cannot be null");

I assume this is based on a setting in cql-to-elm that would include the resultType but cannot find the setting. The ELM contains a resultTypeName only: "resultTypeName" : "{http://hl7.org/fhir}Period",