cqframework / cql-tests

Clinical Quality Language Tests Repository
Apache License 2.0
2 stars 4 forks source link

Adding edge case tests for overlaps operators. #24

Open brynrhodes opened 5 months ago

brynrhodes commented 5 months ago

This adds a few edge case tests for the overlaps, overlaps before and overlaps after operators. These tests are related to the technical correction submitted to the specification here:

https://jira.hl7.org/browse/FHIR-46051

The author's guide is unclear about the intended interpretation of "overlaps before" and "overlaps after", whereas the reference and logical specification are both clear. These tests cover the edges of:

1) overlaps for equal intervals (true) 2) overlaps where the first interval starts at the end of the second (true) 3) overlaps before for equal intervals (false) 4) overlaps after for equal intervals (false)

brynrhodes commented 5 months ago

These new tests have been run successfully on the Java engine (see Cooking with CQL session 83)