StructureDefinition-sdc-questionnaire-extractAllocateId.xml
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <StructureDefinition xmlns="http://hl7.org/fhir">
  3   <id value="sdc-questionnaire-extractAllocateId" />
  4   <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
  5     <valueCode value="draft" />
  6   </extension>
  7   <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
  8     <valueInteger value="0" />
  9   </extension>
 10   <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
 11     <valueCode value="fhir" />
 12   </extension>
 13   <url value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-extractAllocateId" />
 14   <identifier>
 15     <system value="urn:ietf:rfc:3986" />
 16     <value value="urn:oid:2.16.840.1.113883.4.642.40.17.42.84" />
 17   </identifier>
 18   <version value="4.0.0-ballot" />
 19   <name value="ExtractAllocateIdExtension" />
 20   <title value="Extract - Allocate new uuid" />
 21   <status value="draft" />
 22   <date value="2024-12-22T04:48:38.0000000+01:00" />
 23   <publisher value="HL7 International / FHIR Infrastructure" />
 24   <contact>
 25     <name value="HL7 International / FHIR Infrastructure" />
 26     <telecom>
 27       <system value="url" />
 28       <value value="http://www.hl7.org/Special/committees/fiwg" />
 29     </telecom>
 30   </contact>
 31   <contact>
 32     <telecom>
 33       <system value="url" />
 34       <value value="http://www.hl7.org/Special/committees/fiwg" />
 35     </telecom>
 36   </contact>
 37   <description value="Allocate a new uuid in a named variable for use in extraction. This is usually used to set the `fullUrl` for a resource in the output extraction bundle, and then referenced in other resources within that transaction bundle (via fhirpath expressions)." />
 38   <jurisdiction>
 39     <coding>
 40       <system value="http://unstats.un.org/unsd/methods/m49/m49.htm" />
 41       <code value="001" />
 42       <display value="World" />
 43     </coding>
 44   </jurisdiction>
 45   <fhirVersion value="4.0.1" />
 46   <mapping>
 47     <identity value="rim" />
 48     <uri value="http://hl7.org/v3" />
 49     <name value="RIM Mapping" />
 50   </mapping>
 51   <kind value="complex-type" />
 52   <abstract value="false" />
 53   <context>
 54     <type value="element" />
 55     <expression value="Questionnaire" />
 56   </context>
 57   <context>
 58     <type value="element" />
 59     <expression value="Questionnaire.item" />
 60   </context>
 61   <context>
 62     <type value="element" />
 63     <expression value="ElementDefinition" />
 64   </context>
 65   <type value="Extension" />
 66   <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
 67   <derivation value="constraint" />
 68   <snapshot>
 69     <element id="Extension">
 70       <path value="Extension" />
 71       <short value="Variable name for the new uuid." />
 72       <definition value="Allocate a new uuid in a named variable for use in extraction. This is usually used to set the `fullUrl` for a resource in the output extraction bundle, and then referenced in other resources in that bundle (via fhirpath expressions). The format of the uuid will be `urn:uuid:(uuid)`. e.g. urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031" />
 73       <min value="0" />
 74       <max value="*" />
 75       <base>
 76         <path value="Extension" />
 77         <min value="0" />
 78         <max value="*" />
 79       </base>
 80       <condition value="ele-1" />
 81       <constraint>
 82         <key value="ele-1" />
 83         <severity value="error" />
 84         <human value="All FHIR elements must have a @value or children" />
 85         <expression value="hasValue() or (children().count() > id.count())" />
 86         <xpath value="@value|f:*|h:div" />
 87         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 88       </constraint>
 89       <constraint>
 90         <key value="ext-1" />
 91         <severity value="error" />
 92         <human value="Must have either extensions or value[x], not both" />
 93         <expression value="extension.exists() != value.exists()" />
 94         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
 95         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 96       </constraint>
 97       <isModifier value="false" />
 98     </element>
 99     <element id="Extension.id">
100       <path value="Extension.id" />
101       <representation value="xmlAttr" />
102       <short value="Unique id for inter-element referencing" />
103       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
104       <min value="0" />
105       <max value="1" />
106       <base>
107         <path value="Element.id" />
108         <min value="0" />
109         <max value="1" />
110       </base>
111       <type>
112         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
113           <valueUrl value="string" />
114         </extension>
115         <code value="http://hl7.org/fhirpath/System.String" />
116       </type>
117       <isModifier value="false" />
118       <isSummary value="false" />
119       <mapping>
120         <identity value="rim" />
121         <map value="n/a" />
122       </mapping>
123     </element>
124     <element id="Extension.extension">
125       <path value="Extension.extension" />
126       <slicing>
127         <discriminator>
128           <type value="value" />
129           <path value="url" />
130         </discriminator>
131         <description value="Extensions are always sliced by (at least) url" />
132         <rules value="open" />
133       </slicing>
134       <short value="Extension" />
135       <definition value="An Extension" />
136       <min value="0" />
137       <max value="0" />
138       <base>
139         <path value="Element.extension" />
140         <min value="0" />
141         <max value="*" />
142       </base>
143       <type>
144         <code value="Extension" />
145       </type>
146       <constraint>
147         <key value="ele-1" />
148         <severity value="error" />
149         <human value="All FHIR elements must have a @value or children" />
150         <expression value="hasValue() or (children().count() > id.count())" />
151         <xpath value="@value|f:*|h:div" />
152         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
153       </constraint>
154       <constraint>
155         <key value="ext-1" />
156         <severity value="error" />
157         <human value="Must have either extensions or value[x], not both" />
158         <expression value="extension.exists() != value.exists()" />
159         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
160         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
161       </constraint>
162       <isModifier value="false" />
163       <isSummary value="false" />
164     </element>
165     <element id="Extension.url">
166       <path value="Extension.url" />
167       <representation value="xmlAttr" />
168       <short value="identifies the meaning of the extension" />
169       <definition value="Source of the definition for the extension code - a logical name or a URL." />
170       <comment value="The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension." />
171       <min value="1" />
172       <max value="1" />
173       <base>
174         <path value="Extension.url" />
175         <min value="1" />
176         <max value="1" />
177       </base>
178       <type>
179         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
180           <valueUrl value="uri" />
181         </extension>
182         <code value="http://hl7.org/fhirpath/System.String" />
183       </type>
184       <fixedUri value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-extractAllocateId" />
185       <isModifier value="false" />
186       <isSummary value="false" />
187       <mapping>
188         <identity value="rim" />
189         <map value="N/A" />
190       </mapping>
191     </element>
192     <element id="Extension.value[x]">
193       <path value="Extension.value[x]" />
194       <short value="Value of extension" />
195       <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list)." />
196       <min value="1" />
197       <max value="1" />
198       <base>
199         <path value="Extension.value[x]" />
200         <min value="0" />
201         <max value="1" />
202       </base>
203       <type>
204         <code value="string" />
205       </type>
206       <constraint>
207         <key value="ele-1" />
208         <severity value="error" />
209         <human value="All FHIR elements must have a @value or children" />
210         <expression value="hasValue() or (children().count() > id.count())" />
211         <xpath value="@value|f:*|h:div" />
212         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
213       </constraint>
214       <isModifier value="false" />
215       <isSummary value="false" />
216       <mapping>
217         <identity value="rim" />
218         <map value="N/A" />
219       </mapping>
220     </element>
221   </snapshot>
222   <differential>
223     <element id="Extension">
224       <path value="Extension" />
225       <short value="Variable name for the new uuid." />
226       <definition value="Allocate a new uuid in a named variable for use in extraction. This is usually used to set the `fullUrl` for a resource in the output extraction bundle, and then referenced in other resources in that bundle (via fhirpath expressions). The format of the uuid will be `urn:uuid:(uuid)`. e.g. urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031" />
227     </element>
228     <element id="Extension.extension">
229       <path value="Extension.extension" />
230       <max value="0" />
231     </element>
232     <element id="Extension.url">
233       <path value="Extension.url" />
234       <fixedUri value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-extractAllocateId" />
235     </element>
236     <element id="Extension.value[x]">
237       <path value="Extension.value[x]" />
238       <min value="1" />
239       <type>
240         <code value="string" />
241       </type>
242     </element>
243   </differential>
244 </StructureDefinition>