valueset-concept-comments.xml
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <StructureDefinition xmlns="http://hl7.org/fhir">
  3   <id value="valueset-concept-comments" />
  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-comments" />
 11   <version value="4.0.1" />
 12   <name value="concept-comments" />
 13   <title value="Comment" />
 14   <status value="draft" />
 15   <date value="2019-10-31T23:29:23.0000000+01:00" />
 16   <publisher value="HL7" />
 17   <description value="A comment that explains how this code is used in this context (where the value set is expected to be used)." />
 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   <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="Comment about the use of this code in this context" />
 37       <definition value="A comment that explains how this code is used in this context (where the value set is expected to be used)." />
 38       <comment value="This is used in various FHIR value sets to make comments on how particular codes are used when the formal definition is a little abstract or vague, but it's not clear whether it belongs in the actual value set resource." />
 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/valueset-concept-comments" />
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="string" />
171       </type>
172       <constraint>
173         <key value="ele-1" />
174         <severity value="error" />
175         <human value="All FHIR elements must have a @value or children" />
176         <expression value="hasValue() or (children().count() > id.count())" />
177         <xpath value="@value|f:*|h:div" />
178         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
179       </constraint>
180       <isModifier value="false" />
181       <isSummary value="false" />
182       <mapping>
183         <identity value="rim" />
184         <map value="N/A" />
185       </mapping>
186     </element>
187   </snapshot>
188   <differential>
189     <element id="Extension">
190       <path value="Extension" />
191       <short value="Comment about the use of this code in this context" />
192       <definition value="A comment that explains how this code is used in this context (where the value set is expected to be used)." />
193       <comment value="This is used in various FHIR value sets to make comments on how particular codes are used when the formal definition is a little abstract or vague, but it's not clear whether it belongs in the actual value set resource." />
194       <min value="0" />
195       <max value="1" />
196       <isModifier value="false" />
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/valueset-concept-comments" />
205     </element>
206     <element id="Extension.value[x]">
207       <path value="Extension.value[x]" />
208       <min value="1" />
209       <type>
210         <code value="string" />
211       </type>
212     </element>
213   </differential>
214 </StructureDefinition>