http-response-header.xml
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <StructureDefinition xmlns="http://hl7.org/fhir">
  3   <id value="http-response-header" />
  4   <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
  5     <valueCode value="fhir" />
  6   </extension>
  7   <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
  8     <valueInteger value="1" />
  9   </extension>
 10   <url value="http://hl7.org/fhir/StructureDefinition/http-response-header" />
 11   <version value="4.0.1" />
 12   <name value="http-response-header" />
 13   <title value="HTTP Response header" />
 14   <status value="draft" />
 15   <date value="2015-03-11" />
 16   <publisher value="Health Level Seven, Inc. - FHIR Core WG" />
 17   <contact>
 18     <telecom>
 19       <system value="url" />
 20       <value value="http://hl7.org/special/committees/FHIR" />
 21     </telecom>
 22   </contact>
 23   <description value="In a transaction, every single interaction can have multiple HTTP response headers returned as a result of the interaction." />
 24   <fhirVersion value="4.0.1" />
 25   <mapping>
 26     <identity value="v2" />
 27     <uri value="http://hl7.org/v2" />
 28     <name value="HL7 v2 Mapping" />
 29   </mapping>
 30   <mapping>
 31     <identity value="rim" />
 32     <uri value="http://hl7.org/v3" />
 33     <name value="RIM Mapping" />
 34   </mapping>
 35   <kind value="complex-type" />
 36   <abstract value="false" />
 37   <context>
 38     <type value="element" />
 39     <expression value="Bundle.entry.response" />
 40   </context>
 41   <type value="Extension" />
 42   <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
 43   <derivation value="constraint" />
 44   <snapshot>
 45     <element id="Extension">
 46       <path value="Extension" />
 47       <short value="HTTP header returned by the interaction" />
 48       <definition value="In a transaction, every single interaction can have multiple HTTP response headers returned as a result of the interaction." />
 49       <min value="0" />
 50       <max value="*" />
 51       <base>
 52         <path value="Extension" />
 53         <min value="0" />
 54         <max value="*" />
 55       </base>
 56       <condition value="ele-1" />
 57       <constraint>
 58         <key value="ele-1" />
 59         <severity value="error" />
 60         <human value="All FHIR elements must have a @value or children" />
 61         <expression value="hasValue() or (children().count() > id.count())" />
 62         <xpath value="@value|f:*|h:div" />
 63         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 64       </constraint>
 65       <constraint>
 66         <key value="ext-1" />
 67         <severity value="error" />
 68         <human value="Must have either extensions or value[x], not both" />
 69         <expression value="extension.exists() != value.exists()" />
 70         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
 71         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 72       </constraint>
 73       <isModifier value="false" />
 74       <mapping>
 75         <identity value="v2" />
 76         <map value="N/A" />
 77       </mapping>
 78       <mapping>
 79         <identity value="rim" />
 80         <map value="N/A" />
 81       </mapping>
 82     </element>
 83     <element id="Extension.id">
 84       <path value="Extension.id" />
 85       <representation value="xmlAttr" />
 86       <short value="Unique id for inter-element referencing" />
 87       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
 88       <min value="0" />
 89       <max value="1" />
 90       <base>
 91         <path value="Element.id" />
 92         <min value="0" />
 93         <max value="1" />
 94       </base>
 95       <type>
 96         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
 97           <valueUrl value="string" />
 98         </extension>
 99         <code value="http://hl7.org/fhirpath/System.String" />
100       </type>
101       <isModifier value="false" />
102       <isSummary value="false" />
103       <mapping>
104         <identity value="rim" />
105         <map value="n/a" />
106       </mapping>
107     </element>
108     <element id="Extension.extension">
109       <path value="Extension.extension" />
110       <slicing>
111         <discriminator>
112           <type value="value" />
113           <path value="url" />
114         </discriminator>
115         <description value="Extensions are always sliced by (at least) url" />
116         <rules value="open" />
117       </slicing>
118       <short value="Extension" />
119       <definition value="An Extension" />
120       <min value="0" />
121       <max value="0" />
122       <base>
123         <path value="Element.extension" />
124         <min value="0" />
125         <max value="*" />
126       </base>
127       <type>
128         <code value="Extension" />
129       </type>
130       <constraint>
131         <key value="ele-1" />
132         <severity value="error" />
133         <human value="All FHIR elements must have a @value or children" />
134         <expression value="hasValue() or (children().count() > id.count())" />
135         <xpath value="@value|f:*|h:div" />
136         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
137       </constraint>
138       <constraint>
139         <key value="ext-1" />
140         <severity value="error" />
141         <human value="Must have either extensions or value[x], not both" />
142         <expression value="extension.exists() != value.exists()" />
143         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
144         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
145       </constraint>
146       <isModifier value="false" />
147       <isSummary value="false" />
148     </element>
149     <element id="Extension.url">
150       <path value="Extension.url" />
151       <representation value="xmlAttr" />
152       <short value="identifies the meaning of the extension" />
153       <definition value="Source of the definition for the extension code - a logical name or a URL." />
154       <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." />
155       <min value="1" />
156       <max value="1" />
157       <base>
158         <path value="Extension.url" />
159         <min value="1" />
160         <max value="1" />
161       </base>
162       <type>
163         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
164           <valueUrl value="uri" />
165         </extension>
166         <code value="http://hl7.org/fhirpath/System.String" />
167       </type>
168       <fixedUri value="http://hl7.org/fhir/StructureDefinition/http-response-header" />
169       <isModifier value="false" />
170       <isSummary value="false" />
171       <mapping>
172         <identity value="rim" />
173         <map value="N/A" />
174       </mapping>
175     </element>
176     <element id="Extension.value[x]">
177       <path value="Extension.value[x]" />
178       <short value="Value of extension" />
179       <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/extensibility.html) for a list)." />
180       <min value="1" />
181       <max value="1" />
182       <base>
183         <path value="Extension.value[x]" />
184         <min value="0" />
185         <max value="1" />
186       </base>
187       <type>
188         <code value="string" />
189       </type>
190       <constraint>
191         <key value="ele-1" />
192         <severity value="error" />
193         <human value="All FHIR elements must have a @value or children" />
194         <expression value="hasValue() or (children().count() > id.count())" />
195         <xpath value="@value|f:*|h:div" />
196         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
197       </constraint>
198       <isModifier value="false" />
199       <isSummary value="false" />
200       <mapping>
201         <identity value="rim" />
202         <map value="N/A" />
203       </mapping>
204     </element>
205   </snapshot>
206   <differential>
207     <element id="Extension">
208       <path value="Extension" />
209       <short value="HTTP header returned by the interaction" />
210       <definition value="In a transaction, every single interaction can have multiple HTTP response headers returned as a result of the interaction." />
211       <min value="0" />
212       <max value="*" />
213       <isModifier value="false" />
214       <mapping>
215         <identity value="v2" />
216         <map value="N/A" />
217       </mapping>
218       <mapping>
219         <identity value="rim" />
220         <map value="N/A" />
221       </mapping>
222     </element>
223     <element id="Extension.extension">
224       <path value="Extension.extension" />
225       <max value="0" />
226     </element>
227     <element id="Extension.url">
228       <path value="Extension.url" />
229       <fixedUri value="http://hl7.org/fhir/StructureDefinition/http-response-header" />
230     </element>
231     <element id="Extension.value[x]">
232       <path value="Extension.value[x]" />
233       <min value="1" />
234       <type>
235         <code value="string" />
236       </type>
237     </element>
238   </differential>
239 </StructureDefinition>