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

ToDate() does not specify how to strip offset from a datetime

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Persuasive
    • Icon: Medium Medium
    • FHIRPath (FHIR)
    • 1.0
    • Implementable Technology Specifications
    • fluentpath
    • Hide

      Agreed, clarify that ToDate should normalize the datetime value to the timezone of the request prior to extracting the Date component, consistent with the CQL specification:

      https://cql.hl7.org/09-b-cqlreference.html#datetime-component-from

       

      Show
      Agreed, clarify that ToDate should normalize the datetime value to the timezone of the request prior to extracting the Date component, consistent with the CQL specification: https://cql.hl7.org/09-b-cqlreference.html#datetime-component-from  
    • Bryn Rhodes/Brian Pech: 4-0-2
    • Correction
    • Compatible, substantive

    Description

      The `toDate()` function works on DateTimes, but I think we underspecified how this happens exactly. The corresponding CQL documentation refers to the `date from` operation, but also here, it is unclear whether we extract the date from the datetime in the current timezone of the DateTime, or whether we need to convert it to Zulu first - since the Date has no timezone offset, I think we need to be clear about this.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ewout Ewout Kramer
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: