event-location.xml
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <StructureDefinition xmlns="http://hl7.org/fhir">
  3   <id value="event-location" />
  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/event-location" />
 11   <version value="4.0.1" />
 12   <name value="location" />
 13   <title value="Event Location" />
 14   <status value="draft" />
 15   <date value="2017-12-06" />
 16   <publisher value="Health Level Seven, Inc. - FHIR WG" />
 17   <contact>
 18     <telecom>
 19       <system value="url" />
 20       <value value="http://hl7.org/special/committees/fwg" />
 21     </telecom>
 22   </contact>
 23   <description value="The principal physical location where the {{title}} was performed." />
 24   <fhirVersion value="4.0.1" />
 25   <mapping>
 26     <identity value="workflow" />
 27     <uri value="http://hl7.org/fhir/workflow" />
 28     <name value="Workflow Pattern" />
 29   </mapping>
 30   <mapping>
 31     <identity value="v2" />
 32     <uri value="http://hl7.org/v2" />
 33     <name value="HL7 v2 Mapping" />
 34   </mapping>
 35   <mapping>
 36     <identity value="rim" />
 37     <uri value="http://hl7.org/v3" />
 38     <name value="RIM Mapping" />
 39   </mapping>
 40   <kind value="complex-type" />
 41   <abstract value="false" />
 42   <context>
 43     <type value="element" />
 44     <expression value="Observation" />
 45   </context>
 46   <context>
 47     <type value="element" />
 48     <expression value="DiagnosticReport" />
 49   </context>
 50   <context>
 51     <type value="element" />
 52     <expression value="Media" />
 53   </context>
 54   <context>
 55     <type value="element" />
 56     <expression value="SupplyDelivery" />
 57   </context>
 58   <type value="Extension" />
 59   <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
 60   <derivation value="constraint" />
 61   <snapshot>
 62     <element id="Extension">
 63       <path value="Extension" />
 64       <short value="Where event occurred" />
 65       <definition value="The principal physical location where the {{title}} was performed." />
 66       <comment value="May reference only *Provenance* resources deemed “relevant” or important. This element does not point to the Provenance associated with the current version of the resource - as it would be created after this version existed. The Provenance for the current version can be retrieved with a [` _revinclude`](search.html#revinclude)." />
 67       <min value="0" />
 68       <max value="1" />
 69       <base>
 70         <path value="Extension" />
 71         <min value="0" />
 72         <max value="*" />
 73       </base>
 74       <condition value="ele-1" />
 75       <constraint>
 76         <key value="ele-1" />
 77         <severity value="error" />
 78         <human value="All FHIR elements must have a @value or children" />
 79         <expression value="hasValue() or (children().count() > id.count())" />
 80         <xpath value="@value|f:*|h:div" />
 81         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 82       </constraint>
 83       <constraint>
 84         <key value="ext-1" />
 85         <severity value="error" />
 86         <human value="Must have either extensions or value[x], not both" />
 87         <expression value="extension.exists() != value.exists()" />
 88         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
 89         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 90       </constraint>
 91       <isModifier value="false" />
 92       <mapping>
 93         <identity value="workflow" />
 94         <map value="Event.location" />
 95       </mapping>
 96       <mapping>
 97         <identity value="v2" />
 98         <map value="EVN.7" />
 99       </mapping>
100       <mapping>
101         <identity value="rim" />
102         <map value=".participation[typeCode=LOC].role" />
103       </mapping>
104     </element>
105     <element id="Extension.id">
106       <path value="Extension.id" />
107       <representation value="xmlAttr" />
108       <short value="Unique id for inter-element referencing" />
109       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
110       <min value="0" />
111       <max value="1" />
112       <base>
113         <path value="Element.id" />
114         <min value="0" />
115         <max value="1" />
116       </base>
117       <type>
118         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
119           <valueUrl value="string" />
120         </extension>
121         <code value="http://hl7.org/fhirpath/System.String" />
122       </type>
123       <isModifier value="false" />
124       <isSummary value="false" />
125       <mapping>
126         <identity value="rim" />
127         <map value="n/a" />
128       </mapping>
129     </element>
130     <element id="Extension.extension">
131       <path value="Extension.extension" />
132       <slicing>
133         <discriminator>
134           <type value="value" />
135           <path value="url" />
136         </discriminator>
137         <description value="Extensions are always sliced by (at least) url" />
138         <rules value="open" />
139       </slicing>
140       <short value="Extension" />
141       <definition value="An Extension" />
142       <min value="0" />
143       <max value="0" />
144       <base>
145         <path value="Element.extension" />
146         <min value="0" />
147         <max value="*" />
148       </base>
149       <type>
150         <code value="Extension" />
151       </type>
152       <constraint>
153         <key value="ele-1" />
154         <severity value="error" />
155         <human value="All FHIR elements must have a @value or children" />
156         <expression value="hasValue() or (children().count() > id.count())" />
157         <xpath value="@value|f:*|h:div" />
158         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
159       </constraint>
160       <constraint>
161         <key value="ext-1" />
162         <severity value="error" />
163         <human value="Must have either extensions or value[x], not both" />
164         <expression value="extension.exists() != value.exists()" />
165         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
166         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
167       </constraint>
168       <isModifier value="false" />
169       <isSummary value="false" />
170     </element>
171     <element id="Extension.url">
172       <path value="Extension.url" />
173       <representation value="xmlAttr" />
174       <short value="identifies the meaning of the extension" />
175       <definition value="Source of the definition for the extension code - a logical name or a URL." />
176       <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." />
177       <min value="1" />
178       <max value="1" />
179       <base>
180         <path value="Extension.url" />
181         <min value="1" />
182         <max value="1" />
183       </base>
184       <type>
185         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
186           <valueUrl value="uri" />
187         </extension>
188         <code value="http://hl7.org/fhirpath/System.String" />
189       </type>
190       <fixedUri value="http://hl7.org/fhir/StructureDefinition/event-location" />
191       <isModifier value="false" />
192       <isSummary value="false" />
193       <mapping>
194         <identity value="rim" />
195         <map value="N/A" />
196       </mapping>
197     </element>
198     <element id="Extension.value[x]">
199       <path value="Extension.value[x]" />
200       <short value="Value of extension" />
201       <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)." />
202       <min value="1" />
203       <max value="1" />
204       <base>
205         <path value="Extension.value[x]" />
206         <min value="0" />
207         <max value="1" />
208       </base>
209       <type>
210         <code value="Reference" />
211         <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
212       </type>
213       <constraint>
214         <key value="ele-1" />
215         <severity value="error" />
216         <human value="All FHIR elements must have a @value or children" />
217         <expression value="hasValue() or (children().count() > id.count())" />
218         <xpath value="@value|f:*|h:div" />
219         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
220       </constraint>
221       <isModifier value="false" />
222       <isSummary value="false" />
223       <mapping>
224         <identity value="rim" />
225         <map value="N/A" />
226       </mapping>
227     </element>
228   </snapshot>
229   <differential>
230     <element id="Extension">
231       <path value="Extension" />
232       <short value="Where event occurred" />
233       <definition value="The principal physical location where the {{title}} was performed." />
234       <comment value="May reference only *Provenance* resources deemed “relevant” or important. This element does not point to the Provenance associated with the current version of the resource - as it would be created after this version existed. The Provenance for the current version can be retrieved with a [` _revinclude`](search.html#revinclude)." />
235       <min value="0" />
236       <max value="1" />
237       <mapping>
238         <identity value="workflow" />
239         <map value="Event.location" />
240       </mapping>
241       <mapping>
242         <identity value="v2" />
243         <map value="EVN.7" />
244       </mapping>
245       <mapping>
246         <identity value="rim" />
247         <map value=".participation[typeCode=LOC].role" />
248       </mapping>
249     </element>
250     <element id="Extension.extension">
251       <path value="Extension.extension" />
252       <max value="0" />
253     </element>
254     <element id="Extension.url">
255       <path value="Extension.url" />
256       <fixedUri value="http://hl7.org/fhir/StructureDefinition/event-location" />
257     </element>
258     <element id="Extension.value[x]">
259       <path value="Extension.value[x]" />
260       <min value="1" />
261       <type>
262         <code value="Reference" />
263         <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
264       </type>
265     </element>
266   </differential>
267 </StructureDefinition>