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 TestIntersectNull #1343

Open brynrhodes opened 3 months ago

brynrhodes commented 3 months ago

The TestIntersectNull test is:

Interval[1, 10] intersect Interval[5, null)

According to the spec, the expected outcome should be Interval[5, null)

However, the Java engine test suite had this expected outcome as null. In addition, there are 4 tests related to this in the published spec (TestIntersectNull1 through TestIntersectNull4) that were not in the Java engine test suite. I've added the correct expected outcome to the test suite, as well as the missing tests, but the engine now does not pass these tests (so they've been added to the skip list).