2nd DSTU Draft For Comment

This page is part of the FHIR Specification (v0.4.0: DSTU 2 Draft). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R4B R4 R3 R2

Extension Regular expression pattern - Definition

URL for this extension:

http://hl7.org/fhir/ExtensionDefinition/regex

Status: draft

A regular expression that defines the syntax for the data element to be considered valid.

HL7 FHIR project

usage info: todo

Extension Content

Structure

NameFlagsCard.TypeDescription & Constraintsdoco
.. extensionExtensionURL = http://hl7.org/fhir/ExtensionDefinition/regex
Regular expression pattern: A regular expression that defines the syntax for the data element to be considered valid.
Use on element: DataElement, Questionnaire.group.question, Profile.structure.element.definition
..valueString 0..1stringRegular expression pattern
Use on element: DataElement, Questionnaire.group.question, Profile.structure.element.definition

XML Template

<!-- Regular expression pattern -->doco

<extension xmlns="http://hl7.org/fhir"
     url="http://hl7.org/fhir/ExtensionDefinition/regex" >
 <!-- from Element: extension -->
 <valueString value="[string]"/>
</extension>

JSON Template

// extension added to existing objectdoco

  "http://hl7.org/fhir/ExtensionDefinition/regex" : { // Regular expression pattern
    "valueString" : ["<string>"] //Regular expression pattern
  }

Structure

NameFlagsCard.TypeDescription & Constraintsdoco
.. extensionExtensionURL = http://hl7.org/fhir/ExtensionDefinition/regex
Regular expression pattern: A regular expression that defines the syntax for the data element to be considered valid.
Use on element: DataElement, Questionnaire.group.question, Profile.structure.element.definition
..valueString 0..1stringRegular expression pattern
Use on element: DataElement, Questionnaire.group.question, Profile.structure.element.definition

XML Template

<!-- Regular expression pattern -->doco

<extension xmlns="http://hl7.org/fhir"
     url="http://hl7.org/fhir/ExtensionDefinition/regex" >
 <!-- from Element: extension -->
 <valueString value="[string]"/>
</extension>

JSON Template

to do