string.xml
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <StructureDefinition xmlns="http://hl7.org/fhir">
  3   <id value="string" />
  4   <meta>
  5     <lastUpdated value="2019-10-31T23:29:23.356+01:00" />
  6   </meta>
  7   <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
  8     <valueCode value="normative" />
  9   </extension>
 10   <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
 11     <valueCode value="4.0.0" />
 12   </extension>
 13   <url value="http://hl7.org/fhir/StructureDefinition/string" />
 14   <version value="4.0.1" />
 15   <name value="string" />
 16   <status value="active" />
 17   <date value="2019-10-31T23:29:23.0000000+01:00" />
 18   <publisher value="HL7 FHIR Standard" />
 19   <contact>
 20     <telecom>
 21       <system value="url" />
 22       <value value="http://hl7.org/fhir" />
 23     </telecom>
 24   </contact>
 25   <description value="Base StructureDefinition for string Type: A sequence of Unicode characters" />
 26   <fhirVersion value="4.0.1" />
 27   <kind value="primitive-type" />
 28   <abstract value="false" />
 29   <type value="string" />
 30   <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Element" />
 31   <derivation value="specialization" />
 32   <snapshot>
 33     <element id="string">
 34       <path value="string" />
 35       <short value="Primitive Type string" />
 36       <definition value="A sequence of Unicode characters" />
 37       <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
 38       <min value="0" />
 39       <max value="*" />
 40       <base>
 41         <path value="string" />
 42         <min value="0" />
 43         <max value="*" />
 44       </base>
 45       <constraint>
 46         <key value="ele-1" />
 47         <severity value="error" />
 48         <human value="All FHIR elements must have a @value or children" />
 49         <expression value="hasValue() or (children().count() > id.count())" />
 50         <xpath value="@value|f:*|h:div" />
 51         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 52       </constraint>
 53       <isModifier value="false" />
 54       <isSummary value="false" />
 55     </element>
 56     <element id="string.id">
 57       <path value="string.id" />
 58       <representation value="xmlAttr" />
 59       <short value="xml:id (or equivalent in JSON)" />
 60       <definition value="unique id for the element within a resource (for internal references)" />
 61       <min value="0" />
 62       <max value="1" />
 63       <base>
 64         <path value="Element.id" />
 65         <min value="0" />
 66         <max value="1" />
 67       </base>
 68       <type>
 69         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
 70           <valueUrl value="string" />
 71         </extension>
 72         <code value="http://hl7.org/fhirpath/System.String" />
 73       </type>
 74       <isModifier value="false" />
 75       <isSummary value="false" />
 76     </element>
 77     <element id="string.extension">
 78       <path value="string.extension" />
 79       <short value="Additional content defined by implementations" />
 80       <definition value="May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
 81       <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
 82       <alias value="extensions" />
 83       <alias value="user content" />
 84       <min value="0" />
 85       <max value="*" />
 86       <base>
 87         <path value="Element.extension" />
 88         <min value="0" />
 89         <max value="*" />
 90       </base>
 91       <type>
 92         <code value="Extension" />
 93       </type>
 94       <constraint>
 95         <key value="ele-1" />
 96         <severity value="error" />
 97         <human value="All FHIR elements must have a @value or children" />
 98         <expression value="hasValue() or (children().count() > id.count())" />
 99         <xpath value="@value|f:*|h:div" />
100         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
101       </constraint>
102       <constraint>
103         <key value="ext-1" />
104         <severity value="error" />
105         <human value="Must have either extensions or value[x], not both" />
106         <expression value="extension.exists() != value.exists()" />
107         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
108         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
109       </constraint>
110       <isModifier value="false" />
111       <isSummary value="false" />
112     </element>
113     <element id="string.value">
114       <path value="string.value" />
115       <representation value="xmlAttr" />
116       <short value="Primitive value for string" />
117       <definition value="The actual value" />
118       <min value="0" />
119       <max value="1" />
120       <base>
121         <path value="string.value" />
122         <min value="0" />
123         <max value="1" />
124       </base>
125       <type>
126         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
127           <valueUrl value="string" />
128         </extension>
129         <extension url="http://hl7.org/fhir/StructureDefinition/regex">
130           <valueString value="[ \r\n\t\S]+" />
131         </extension>
132         <code value="http://hl7.org/fhirpath/System.String" />
133       </type>
134       <maxLength value="1048576" />
135       <isModifier value="false" />
136       <isSummary value="false" />
137     </element>
138   </snapshot>
139   <differential>
140     <element id="string">
141       <path value="string" />
142       <short value="Primitive Type string" />
143       <definition value="A sequence of Unicode characters" />
144       <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
145       <min value="0" />
146       <max value="*" />
147     </element>
148     <element id="string.value">
149       <path value="string.value" />
150       <representation value="xmlAttr" />
151       <short value="Primitive value for string" />
152       <definition value="Primitive value for string" />
153       <min value="0" />
154       <max value="1" />
155       <type>
156         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
157           <valueUrl value="string" />
158         </extension>
159         <extension url="http://hl7.org/fhir/StructureDefinition/regex">
160           <valueString value="[ \r\n\t\S]+" />
161         </extension>
162         <code value="http://hl7.org/fhirpath/System.String" />
163       </type>
164       <maxLength value="1048576" />
165     </element>
166   </differential>
167 </StructureDefinition>