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

Correction to v3 schema dateTime regex

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Persuasive
    • Icon: Medium Medium
    • FHIR Core (FHIR)
    • STU3
    • FHIR Infrastructure
    • Downloads
    • fhir-base.xsd
    • Hide

      Will fix the STU3 Schemas to match the regex from the spec per the Zulip discussion.

      Show
      Will fix the STU3 Schemas to match the regex from the spec per the Zulip discussion.
    • Ewout Kramer/Richard Ettema: 10-0-0
    • Enhancement
    • Compatible, substantive
    • R5

    Description

      As discussed on FHIR Chat (https://chat.fhir.org/#narrow/stream/179166-implementers/topic/Regex.20Patten.20for.20dateTime) there is an error in the schema fhir-base.xsd regex definition for date time. It should read -?[0-9]

      {4}((0[1-9]|1[0-2])((0[0-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5]0-9?(Z|(+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)? rather than -?[0-9]{4}

      ((0[1-9]|1[0-2])((0[0-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5]0-9?(Z|(+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?

      Attachments

        Activity

          People

            GrahameGrieve Grahame Grieve
            davebarnet Dave Barnet
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: