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