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.
Seeing an exception at R4FhirTerminologyProvider.in when the terminology server returns another parameter other than "result" first. I was not sure if there was a required order or not honestly when it came to the parameters returned by the $validate-code operation so this issue might not be with the engine-fhir subproject.
This occurred when running cms190 though I can try to mock up something simpler if needed.
Example request to a terminology server where this is happening:
Caused by: java.lang.ClassCastException: class org.hl7.fhir.r4.model.StringType cannot be cast to class org.hl7.fhir.r4.model.BooleanType (org.hl7.fhir.r4.model.StringType and org.hl7.fhir.r4.model.BooleanType are in unnamed module of loader 'app')
at org.opencds.cqf.cql.engine.fhir.terminology.R4FhirTerminologyProvider.in(R4FhirTerminologyProvider.java:70) ~[engine-fhir-3.9.0.jar:3.9.0]
at org.opencds.cqf.cql.engine.elm.executing.InValueSetEvaluator.inValueSet(InValueSetEvaluator.java:48) ~[engine-3.9.0.jar:3.9.0]
at org.opencds.cqf.cql.engine.execution.EvaluationVisitor.visitInValueSet(EvaluationVisitor.java:123) ~[engine-3.9.0.jar:3.9.0]
at org.opencds.cqf.cql.engine.execution.EvaluationVisitor.visitInValueSet(EvaluationVisitor.java:14) ~[engine-3.9.0.jar:3.9.0]
at org.cqframework.cql.elm.visiting.BaseElmClinicalVisitor.visitOperatorExpression(BaseElmClinicalVisitor.java:64) ~[elm-3.9.0.jar:3.9.0]
at org.cqframework.cql.elm.visiting.BaseElmVisitor.visitExpression(BaseElmVisitor.java:267) ~[elm-3.9.0.jar:3.9.0]
at org.cqframework.cql.elm.visiting.BaseElmClinicalVisitor.visitExpression(BaseElmClinicalVisitor.java:49) ~[elm-3.9.0.jar:3.9.0]
at org.opencds.cqf.cql.engine.execution.EvaluationVisitor.visitOr(EvaluationVisitor.java:1189) ~[engine-3.9.0.jar:3.9.0]
at org.opencds.cqf.cql.engine.execution.EvaluationVisitor.visitOr(EvaluationVisitor.java:14) ~[engine-3.9.0.jar:3.9.0]
...
Seeing an exception at R4FhirTerminologyProvider.in when the terminology server returns another parameter other than "result" first. I was not sure if there was a required order or not honestly when it came to the parameters returned by the $validate-code operation so this issue might not be with the engine-fhir subproject.
This occurred when running cms190 though I can try to mock up something simpler if needed.
Example request to a terminology server where this is happening:
The result from above request:
The exception: