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

regex validation extension has no ability to define the message to report when the rule is violated

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Not Persuasive with Modification
    • Icon: Medium Medium
    • FHIR Core (FHIR)
    • R4
    • FHIR Infrastructure
    • Questionnaire
    • Hide

      We will remove the regex extension.  We will add a change note to R5 indicating that systems that previously used regex should instead use the 'ElementDefinition.constraint' to assert the regex or the equivalent SDC extension on Questionnaire.item for this purpose.  This approach eliminates a duplicate way of accomplishing the same objective and has the bonus of providing an ability to convey the message and to distinguish between error and warning regexs.

      Show
      We will remove the regex extension.  We will add a change note to R5 indicating that systems that previously used regex should instead use the 'ElementDefinition.constraint' to assert the regex or the equivalent SDC extension on Questionnaire.item for this purpose.  This approach eliminates a duplicate way of accomplishing the same objective and has the bonus of providing an ability to convey the message and to distinguish between error and warning regexs.
    • Michael Donnelly/Rick Geimer: 12-0-1
    • Correction
    • Non-compatible
    • R5

    Description

      When validating a QuestionnaireResponse against a Questionnaire that has an Item that includes the regex extension http://hl7.org/fhir/StructureDefinition/regex there is nowhere to define what the error message to report to the user is.

      e.g. Including a phone number or email address regex to check that the string formatting is valid. No way to report a custom error message to the via the OperationOutcome - controlled by the form designer that put the regex in place.

      The implementation that I'm doing will just have to report that it had an invalid format.

      (and will include the placeholder text to specify the format - if this is expected, we should document that somewhere - SDC IG?)

      Attachments

        Activity

          People

            lloyd Lloyd McKenzie
            brian.postlethwaite Brian Postlethwaite
            Brian Postlethwaite
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: