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

CQL function operand resultType null #1378

Open
arby50 opened this issue Jul 6, 2024 · 0 comments
Open

CQL function operand resultType null #1378

arby50 opened this issue Jul 6, 2024 · 0 comments

Comments

@arby50
Copy link

arby50 commented Jul 6, 2024

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",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant