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

Incorrect result for Collapse #1342

Closed brynrhodes closed 3 months ago

brynrhodes commented 3 months ago

The "TestCollapseNull" test case is:

collapse { Interval(null, null) }

According to the spec though, the result of this should be { Interval(null, null) }, based on this line:

"if the input list contains a single interval, the result is a list with that interval"

More broadly, the expression Interval(null, null) actually results in a null, rather than in an interval with null boundaries.

brynrhodes commented 3 months ago

Withdrawing this, down a rabbit hole