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