valueset-concept-definition.xml
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <StructureDefinition xmlns="http://hl7.org/fhir">
  3   <id value="valueset-concept-definition" />
  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-concept-definition" />
 11   <version value="4.0.1" />
 12   <name value="concept-definition" />
 13   <title value="Definition" />
 14   <status value="draft" />
 15   <date value="2019-10-31T23:29:23.0000000+01:00" />
 16   <publisher value="HL7" />
 17   <description value="A definition that describes the meaning of this code when used as part of this value set." />
 18   <fhirVersion value="4.0.1" />
 19   <mapping>
 20     <identity value="rim" />
 21     <uri value="http://hl7.org/v3" />
 22     <name value="RIM Mapping" />
 23   </mapping>
 24   <kind value="complex-type" />
 25   <abstract value="false" />
 26   <context>
 27     <type value="element" />
 28     <expression value="ValueSet.compose.include.concept" />
 29   </context>
 30   <context>
 31     <type value="element" />
 32     <expression value="ValueSet.expansion.contains" />
 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="A definition for this code" />
 41       <definition value="A definition that describes the meaning of this code when used as part of this value set." />
 42       <comment value="This is provided for when the source code system doesn't actually provide a definition (there are many such). Providing an definition for a code SHOULD NOT be done where the underlying code system provides a definition." />
 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     </element>
 69     <element id="Extension.id">
 70       <path value="Extension.id" />
 71       <representation value="xmlAttr" />
 72       <short value="Unique id for inter-element referencing" />
 73       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
 74       <min value="0" />
 75       <max value="1" />
 76       <base>
 77         <path value="Element.id" />
 78         <min value="0" />
 79         <max value="1" />
 80       </base>
 81       <type>
 82         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
 83           <valueUrl value="string" />
 84         </extension>
 85         <code value="http://hl7.org/fhirpath/System.String" />
 86       </type>
 87       <isModifier value="false" />
 88       <isSummary value="false" />
 89       <mapping>
 90         <identity value="rim" />
 91         <map value="n/a" />
 92       </mapping>
 93     </element>
 94     <element id="Extension.extension">
 95       <path value="Extension.extension" />
 96       <slicing>
 97         <discriminator>
 98           <type value="value" />
 99           <path value="url" />
100         </discriminator>
101         <description value="Extensions are always sliced by (at least) url" />
102         <rules value="open" />
103       </slicing>
104       <short value="Extension" />
105       <definition value="An Extension" />
106       <min value="0" />
107       <max value="0" />
108       <base>
109         <path value="Element.extension" />
110         <min value="0" />
111         <max value="*" />
112       </base>
113       <type>
114         <code value="Extension" />
115       </type>
116       <constraint>
117         <key value="ele-1" />
118         <severity value="error" />
119         <human value="All FHIR elements must have a @value or children" />
120         <expression value="hasValue() or (children().count() > id.count())" />
121         <xpath value="@value|f:*|h:div" />
122         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
123       </constraint>
124       <constraint>
125         <key value="ext-1" />
126         <severity value="error" />
127         <human value="Must have either extensions or value[x], not both" />
128         <expression value="extension.exists() != value.exists()" />
129         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
130         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
131       </constraint>
132       <isModifier value="false" />
133       <isSummary value="false" />
134     </element>
135     <element id="Extension.url">
136       <path value="Extension.url" />
137       <representation value="xmlAttr" />
138       <short value="identifies the meaning of the extension" />
139       <definition value="Source of the definition for the extension code - a logical name or a URL." />
140       <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." />
141       <min value="1" />
142       <max value="1" />
143       <base>
144         <path value="Extension.url" />
145         <min value="1" />
146         <max value="1" />
147       </base>
148       <type>
149         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
150           <valueUrl value="uri" />
151         </extension>
152         <code value="http://hl7.org/fhirpath/System.String" />
153       </type>
154       <fixedUri value="http://hl7.org/fhir/StructureDefinition/valueset-concept-definition" />
155       <isModifier value="false" />
156       <isSummary value="false" />
157       <mapping>
158         <identity value="rim" />
159         <map value="N/A" />
160       </mapping>
161     </element>
162     <element id="Extension.value[x]">
163       <path value="Extension.value[x]" />
164       <short value="Value of extension" />
165       <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)." />
166       <min value="1" />
167       <max value="1" />
168       <base>
169         <path value="Extension.value[x]" />
170         <min value="0" />
171         <max value="1" />
172       </base>
173       <type>
174         <code value="string" />
175       </type>
176       <constraint>
177         <key value="ele-1" />
178         <severity value="error" />
179         <human value="All FHIR elements must have a @value or children" />
180         <expression value="hasValue() or (children().count() > id.count())" />
181         <xpath value="@value|f:*|h:div" />
182         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
183       </constraint>
184       <isModifier value="false" />
185       <isSummary value="false" />
186       <mapping>
187         <identity value="rim" />
188         <map value="N/A" />
189       </mapping>
190     </element>
191   </snapshot>
192   <differential>
193     <element id="Extension">
194       <path value="Extension" />
195       <short value="A definition for this code" />
196       <definition value="A definition that describes the meaning of this code when used as part of this value set." />
197       <comment value="This is provided for when the source code system doesn't actually provide a definition (there are many such). Providing an definition for a code SHOULD NOT be done where the underlying code system provides a definition." />
198       <min value="0" />
199       <max value="1" />
200       <isModifier value="false" />
201     </element>
202     <element id="Extension.extension">
203       <path value="Extension.extension" />
204       <max value="0" />
205     </element>
206     <element id="Extension.url">
207       <path value="Extension.url" />
208       <fixedUri value="http://hl7.org/fhir/StructureDefinition/valueset-concept-definition" />
209     </element>
210     <element id="Extension.value[x]">
211       <path value="Extension.value[x]" />
212       <min value="1" />
213       <type>
214         <code value="string" />
215       </type>
216     </element>
217   </differential>
218 </StructureDefinition>