Details
-
Change Request
-
Resolution: Unresolved
-
Medium
-
Clinical Quality Language (FHIR)
-
1.5 [deprecated]
-
Clinical Decision Support
-
Authors Guide
Description
Date and time comparison in CQL supports specifying the precision of the comparison. By default, comparisons will be performed to the millisecond precision. However, clinical logic often involves comparisons only to the minute, so it would be useful to provide a mechanism for specifying a default comparison precision, avoiding the need for authors to specify minute precision for all date/time comparisons.
The proposed approach would be to define a "directive" that would be able to be specified as part of a library and would only apply to the expressions and function definitions within that library.
Note that defining a parameter that would provide this capability should not be considered viable since it would change runtime behavior of the logic, and this should be an author-time consideration. It is part of the intent of the logic and should not be varied by run-time considerations.