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 behavior of ToDateTime operator #1345

Open brynrhodes opened 3 months ago

brynrhodes commented 3 months ago

The spec clearly indicates the ToDateTime(Date) operator will return a DateTime with the time components unspecified. The following tests validate this behavior (from the published spec test suite):

ToDateTimeDate ToDateTimeTimeUnspecified

These tests were missing from the test suite in the engine, and when I added them, they fail because the ToDateTime implementation in the engine is setting time components to 0. I've added these failing tests to the skip list, but the ToDateTime behavior should be corrected.