list-changeBase.xml
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <StructureDefinition xmlns="http://hl7.org/fhir">
  3   <id value="list-changeBase" />
  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/list-changeBase" />
 11   <version value="4.0.1" />
 12   <name value="changeBase" />
 13   <status value="draft" />
 14   <date value="2019-10-31T23:29:23.0000000+01:00" />
 15   <publisher value="HL7" />
 16   <description value="Reference to the List that a "change" list is asserting changes with respect to." />
 17   <fhirVersion value="4.0.1" />
 18   <mapping>
 19     <identity value="rim" />
 20     <uri value="http://hl7.org/v3" />
 21     <name value="RIM Mapping" />
 22   </mapping>
 23   <kind value="complex-type" />
 24   <abstract value="false" />
 25   <context>
 26     <type value="element" />
 27     <expression value="List" />
 28   </context>
 29   <contextInvariant value="mode = 'changes'" />
 30   <type value="Extension" />
 31   <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
 32   <derivation value="constraint" />
 33   <snapshot>
 34     <element id="Extension">
 35       <path value="Extension" />
 36       <short value="Base List for changes" />
 37       <definition value="Reference to the List that a "change" list is asserting changes with respect to." />
 38       <comment value="Only for mode = changes." />
 39       <min value="0" />
 40       <max value="1" />
 41       <base>
 42         <path value="Extension" />
 43         <min value="0" />
 44         <max value="*" />
 45       </base>
 46       <condition value="ele-1" />
 47       <constraint>
 48         <key value="ele-1" />
 49         <severity value="error" />
 50         <human value="All FHIR elements must have a @value or children" />
 51         <expression value="hasValue() or (children().count() > id.count())" />
 52         <xpath value="@value|f:*|h:div" />
 53         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 54       </constraint>
 55       <constraint>
 56         <key value="ext-1" />
 57         <severity value="error" />
 58         <human value="Must have either extensions or value[x], not both" />
 59         <expression value="extension.exists() != value.exists()" />
 60         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
 61         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 62       </constraint>
 63       <isModifier value="false" />
 64     </element>
 65     <element id="Extension.id">
 66       <path value="Extension.id" />
 67       <representation value="xmlAttr" />
 68       <short value="Unique id for inter-element referencing" />
 69       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
 70       <min value="0" />
 71       <max value="1" />
 72       <base>
 73         <path value="Element.id" />
 74         <min value="0" />
 75         <max value="1" />
 76       </base>
 77       <type>
 78         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
 79           <valueUrl value="string" />
 80         </extension>
 81         <code value="http://hl7.org/fhirpath/System.String" />
 82       </type>
 83       <isModifier value="false" />
 84       <isSummary value="false" />
 85       <mapping>
 86         <identity value="rim" />
 87         <map value="n/a" />
 88       </mapping>
 89     </element>
 90     <element id="Extension.extension">
 91       <path value="Extension.extension" />
 92       <slicing>
 93         <discriminator>
 94           <type value="value" />
 95           <path value="url" />
 96         </discriminator>
 97         <description value="Extensions are always sliced by (at least) url" />
 98         <rules value="open" />
 99       </slicing>
100       <short value="Extension" />
101       <definition value="An Extension" />
102       <min value="0" />
103       <max value="0" />
104       <base>
105         <path value="Element.extension" />
106         <min value="0" />
107         <max value="*" />
108       </base>
109       <type>
110         <code value="Extension" />
111       </type>
112       <constraint>
113         <key value="ele-1" />
114         <severity value="error" />
115         <human value="All FHIR elements must have a @value or children" />
116         <expression value="hasValue() or (children().count() > id.count())" />
117         <xpath value="@value|f:*|h:div" />
118         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
119       </constraint>
120       <constraint>
121         <key value="ext-1" />
122         <severity value="error" />
123         <human value="Must have either extensions or value[x], not both" />
124         <expression value="extension.exists() != value.exists()" />
125         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
126         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
127       </constraint>
128       <isModifier value="false" />
129       <isSummary value="false" />
130     </element>
131     <element id="Extension.url">
132       <path value="Extension.url" />
133       <representation value="xmlAttr" />
134       <short value="identifies the meaning of the extension" />
135       <definition value="Source of the definition for the extension code - a logical name or a URL." />
136       <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." />
137       <min value="1" />
138       <max value="1" />
139       <base>
140         <path value="Extension.url" />
141         <min value="1" />
142         <max value="1" />
143       </base>
144       <type>
145         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
146           <valueUrl value="uri" />
147         </extension>
148         <code value="http://hl7.org/fhirpath/System.String" />
149       </type>
150       <fixedUri value="http://hl7.org/fhir/StructureDefinition/list-changeBase" />
151       <isModifier value="false" />
152       <isSummary value="false" />
153       <mapping>
154         <identity value="rim" />
155         <map value="N/A" />
156       </mapping>
157     </element>
158     <element id="Extension.value[x]">
159       <path value="Extension.value[x]" />
160       <short value="Value of extension" />
161       <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)." />
162       <min value="1" />
163       <max value="1" />
164       <base>
165         <path value="Extension.value[x]" />
166         <min value="0" />
167         <max value="1" />
168       </base>
169       <type>
170         <code value="Reference" />
171         <targetProfile value="http://hl7.org/fhir/StructureDefinition/List" />
172       </type>
173       <constraint>
174         <key value="ele-1" />
175         <severity value="error" />
176         <human value="All FHIR elements must have a @value or children" />
177         <expression value="hasValue() or (children().count() > id.count())" />
178         <xpath value="@value|f:*|h:div" />
179         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
180       </constraint>
181       <isModifier value="false" />
182       <isSummary value="false" />
183       <mapping>
184         <identity value="rim" />
185         <map value="N/A" />
186       </mapping>
187     </element>
188   </snapshot>
189   <differential>
190     <element id="Extension">
191       <path value="Extension" />
192       <short value="Base List for changes" />
193       <definition value="Reference to the List that a "change" list is asserting changes with respect to." />
194       <comment value="Only for mode = changes." />
195       <min value="0" />
196       <max value="1" />
197     </element>
198     <element id="Extension.extension">
199       <path value="Extension.extension" />
200       <max value="0" />
201     </element>
202     <element id="Extension.url">
203       <path value="Extension.url" />
204       <fixedUri value="http://hl7.org/fhir/StructureDefinition/list-changeBase" />
205     </element>
206     <element id="Extension.value[x]">
207       <path value="Extension.value[x]" />
208       <min value="1" />
209       <type>
210         <code value="Reference" />
211         <targetProfile value="http://hl7.org/fhir/StructureDefinition/List" />
212       </type>
213     </element>
214   </differential>
215 </StructureDefinition>