event-basedOn.xml
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <StructureDefinition xmlns="http://hl7.org/fhir">
  3   <id value="event-basedOn" />
  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-basedOn" />
 11   <version value="4.0.1" />
 12   <name value="basedOn" />
 13   <title value="Based On" />
 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="A plan, proposal or order that is fulfilled in whole or in part by this event." />
 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="Condition" />
 45   </context>
 46   <type value="Extension" />
 47   <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
 48   <derivation value="constraint" />
 49   <snapshot>
 50     <element id="Extension">
 51       <path value="Extension" />
 52       <short value="Fulfills plan, proposal or order" />
 53       <definition value="A plan, proposal or order that is fulfilled in whole or in part by this event." />
 54       <min value="0" />
 55       <max value="*" />
 56       <base>
 57         <path value="Extension" />
 58         <min value="0" />
 59         <max value="*" />
 60       </base>
 61       <condition value="ele-1" />
 62       <constraint>
 63         <key value="ele-1" />
 64         <severity value="error" />
 65         <human value="All FHIR elements must have a @value or children" />
 66         <expression value="hasValue() or (children().count() > id.count())" />
 67         <xpath value="@value|f:*|h:div" />
 68         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 69       </constraint>
 70       <constraint>
 71         <key value="ext-1" />
 72         <severity value="error" />
 73         <human value="Must have either extensions or value[x], not both" />
 74         <expression value="extension.exists() != value.exists()" />
 75         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
 76         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 77       </constraint>
 78       <isModifier value="false" />
 79       <mapping>
 80         <identity value="workflow" />
 81         <map value="Event.basedOn" />
 82       </mapping>
 83       <mapping>
 84         <identity value="v2" />
 85         <map value="ORC in proximity to EVN segment" />
 86       </mapping>
 87       <mapping>
 88         <identity value="rim" />
 89         <map value=".outboundRelationship[typeCode=FLFS].target" />
 90       </mapping>
 91     </element>
 92     <element id="Extension.id">
 93       <path value="Extension.id" />
 94       <representation value="xmlAttr" />
 95       <short value="Unique id for inter-element referencing" />
 96       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
 97       <min value="0" />
 98       <max value="1" />
 99       <base>
100         <path value="Element.id" />
101         <min value="0" />
102         <max value="1" />
103       </base>
104       <type>
105         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
106           <valueUrl value="string" />
107         </extension>
108         <code value="http://hl7.org/fhirpath/System.String" />
109       </type>
110       <isModifier value="false" />
111       <isSummary value="false" />
112       <mapping>
113         <identity value="rim" />
114         <map value="n/a" />
115       </mapping>
116     </element>
117     <element id="Extension.extension">
118       <path value="Extension.extension" />
119       <slicing>
120         <discriminator>
121           <type value="value" />
122           <path value="url" />
123         </discriminator>
124         <description value="Extensions are always sliced by (at least) url" />
125         <rules value="open" />
126       </slicing>
127       <short value="Extension" />
128       <definition value="An Extension" />
129       <min value="0" />
130       <max value="0" />
131       <base>
132         <path value="Element.extension" />
133         <min value="0" />
134         <max value="*" />
135       </base>
136       <type>
137         <code value="Extension" />
138       </type>
139       <constraint>
140         <key value="ele-1" />
141         <severity value="error" />
142         <human value="All FHIR elements must have a @value or children" />
143         <expression value="hasValue() or (children().count() > id.count())" />
144         <xpath value="@value|f:*|h:div" />
145         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
146       </constraint>
147       <constraint>
148         <key value="ext-1" />
149         <severity value="error" />
150         <human value="Must have either extensions or value[x], not both" />
151         <expression value="extension.exists() != value.exists()" />
152         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
153         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
154       </constraint>
155       <isModifier value="false" />
156       <isSummary value="false" />
157     </element>
158     <element id="Extension.url">
159       <path value="Extension.url" />
160       <representation value="xmlAttr" />
161       <short value="identifies the meaning of the extension" />
162       <definition value="Source of the definition for the extension code - a logical name or a URL." />
163       <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." />
164       <min value="1" />
165       <max value="1" />
166       <base>
167         <path value="Extension.url" />
168         <min value="1" />
169         <max value="1" />
170       </base>
171       <type>
172         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
173           <valueUrl value="uri" />
174         </extension>
175         <code value="http://hl7.org/fhirpath/System.String" />
176       </type>
177       <fixedUri value="http://hl7.org/fhir/StructureDefinition/event-basedOn" />
178       <isModifier value="false" />
179       <isSummary value="false" />
180       <mapping>
181         <identity value="rim" />
182         <map value="N/A" />
183       </mapping>
184     </element>
185     <element id="Extension.value[x]">
186       <path value="Extension.value[x]" />
187       <short value="Value of extension" />
188       <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)." />
189       <min value="1" />
190       <max value="1" />
191       <base>
192         <path value="Extension.value[x]" />
193         <min value="0" />
194         <max value="1" />
195       </base>
196       <type>
197         <code value="Reference" />
198         <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
199       </type>
200       <constraint>
201         <key value="ele-1" />
202         <severity value="error" />
203         <human value="All FHIR elements must have a @value or children" />
204         <expression value="hasValue() or (children().count() > id.count())" />
205         <xpath value="@value|f:*|h:div" />
206         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
207       </constraint>
208       <isModifier value="false" />
209       <isSummary value="false" />
210       <mapping>
211         <identity value="rim" />
212         <map value="N/A" />
213       </mapping>
214     </element>
215   </snapshot>
216   <differential>
217     <element id="Extension">
218       <path value="Extension" />
219       <short value="Fulfills plan, proposal or order" />
220       <definition value="A plan, proposal or order that is fulfilled in whole or in part by this event." />
221       <min value="0" />
222       <max value="*" />
223       <mapping>
224         <identity value="workflow" />
225         <map value="Event.basedOn" />
226       </mapping>
227       <mapping>
228         <identity value="v2" />
229         <map value="ORC in proximity to EVN segment" />
230       </mapping>
231       <mapping>
232         <identity value="rim" />
233         <map value=".outboundRelationship[typeCode=FLFS].target" />
234       </mapping>
235     </element>
236     <element id="Extension.extension">
237       <path value="Extension.extension" />
238       <max value="0" />
239     </element>
240     <element id="Extension.url">
241       <path value="Extension.url" />
242       <fixedUri value="http://hl7.org/fhir/StructureDefinition/event-basedOn" />
243     </element>
244     <element id="Extension.value[x]">
245       <path value="Extension.value[x]" />
246       <min value="1" />
247       <type>
248         <code value="Reference" />
249         <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
250       </type>
251     </element>
252   </differential>
253 </StructureDefinition>