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
251 stars 121 forks source link

Unexpected type testing result #1337

Open brynrhodes opened 4 months ago

brynrhodes commented 4 months ago

The expression

5 is Choice<Integer, String>

This returns true in both the Java and JS engines, but it seems like it ought to be false, since 5 is Integer, and based on the spec definitions there is no exact match or subtype relationship between the types. Investigate why this is returning 5.

See the thread here for more discussion and to report the results of this investigation: https://chat.fhir.org/#narrow/stream/179220-cql/topic/Type.20Testing.20with.20Choice/near/424791833