Uploaded image for project: 'FHIR Specification Feedback'
  1. FHIR Specification Feedback
  2. FHIR-41326

Provide a "default comparison precision"

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Medium Medium

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bryn.rhodes Bryn Rhodes
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: