UsageContext.xml
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <StructureDefinition xmlns="http://hl7.org/fhir">
  3   <id value="UsageContext" />
  4   <meta>
  5     <lastUpdated value="2023-03-26T06:21:02.749+02:00" />
  6   </meta>
  7   <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
  8     <valueCode value="trial-use" />
  9   </extension>
 10   <url value="http://hl7.org/fhir/StructureDefinition/UsageContext" />
 11   <version value="5.0.0" />
 12   <name value="UsageContext" />
 13   <status value="draft" />
 14   <experimental value="false" />
 15   <date value="2023-03-26T06:21:02.0000000+02:00" />
 16   <publisher value="HL7 FHIR Standard" />
 17   <contact>
 18     <telecom>
 19       <system value="url" />
 20       <value value="http://hl7.org/fhir" />
 21     </telecom>
 22   </contact>
 23   <description value="UsageContext Type: Specifies clinical/business/etc. metadata that can be used to retrieve, index and/or categorize an artifact. This metadata can either be specific to the applicable population (e.g., age category, DRG) or the specific context of care (e.g., venue, care setting, provider of care)." />
 24   <jurisdiction>
 25     <coding>
 26       <system value="http://unstats.un.org/unsd/methods/m49/m49.htm" />
 27       <code value="001" />
 28       <display value="World" />
 29     </coding>
 30   </jurisdiction>
 31   <purpose value="Consumers of the resource must be able to determine the intended applicability for the resource. Ideally, this information would be used programmatically to determine when and how it should be incorporated or exposed." />
 32   <fhirVersion value="5.0.0" />
 33   <mapping>
 34     <identity value="rim" />
 35     <uri value="http://hl7.org/v3" />
 36     <name value="RIM Mapping" />
 37   </mapping>
 38   <kind value="complex-type" />
 39   <abstract value="false" />
 40   <type value="UsageContext" />
 41   <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DataType" />
 42   <derivation value="specialization" />
 43   <snapshot>
 44     <element id="UsageContext">
 45       <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
 46         <valueCode value="trial-use" />
 47       </extension>
 48       <path value="UsageContext" />
 49       <short value="Describes the context of use for a conformance or knowledge resource" />
 50       <definition value="Specifies clinical/business/etc. metadata that can be used to retrieve, index and/or categorize an artifact. This metadata can either be specific to the applicable population (e.g., age category, DRG) or the specific context of care (e.g., venue, care setting, provider of care)." />
 51       <min value="0" />
 52       <max value="*" />
 53       <base>
 54         <path value="UsageContext" />
 55         <min value="0" />
 56         <max value="*" />
 57       </base>
 58       <constraint>
 59         <key value="ele-1" />
 60         <severity value="error" />
 61         <human value="All FHIR elements must have a @value or children" />
 62         <expression value="hasValue() or (children().count() > id.count())" />
 63         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 64       </constraint>
 65       <isModifier value="false" />
 66       <mapping>
 67         <identity value="rim" />
 68         <map value="n/a" />
 69       </mapping>
 70     </element>
 71     <element id="UsageContext.id">
 72       <path value="UsageContext.id" />
 73       <representation value="xmlAttr" />
 74       <short value="Unique id for inter-element referencing" />
 75       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
 76       <min value="0" />
 77       <max value="1" />
 78       <base>
 79         <path value="Element.id" />
 80         <min value="0" />
 81         <max value="1" />
 82       </base>
 83       <type>
 84         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
 85           <valueUrl value="id" />
 86         </extension>
 87         <code value="http://hl7.org/fhirpath/System.String" />
 88       </type>
 89       <condition value="ele-1" />
 90       <isModifier value="false" />
 91       <isSummary value="false" />
 92       <mapping>
 93         <identity value="rim" />
 94         <map value="n/a" />
 95       </mapping>
 96     </element>
 97     <element id="UsageContext.extension">
 98       <path value="UsageContext.extension" />
 99       <slicing>
100         <discriminator>
101           <type value="value" />
102           <path value="url" />
103         </discriminator>
104         <description value="Extensions are always sliced by (at least) url" />
105         <rules value="open" />
106       </slicing>
107       <short value="Additional content defined by implementations" />
108       <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
109       <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
110       <alias value="extensions" />
111       <alias value="user content" />
112       <min value="0" />
113       <max value="*" />
114       <base>
115         <path value="Element.extension" />
116         <min value="0" />
117         <max value="*" />
118       </base>
119       <type>
120         <code value="Extension" />
121       </type>
122       <constraint>
123         <key value="ele-1" />
124         <severity value="error" />
125         <human value="All FHIR elements must have a @value or children" />
126         <expression value="hasValue() or (children().count() > id.count())" />
127         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
128       </constraint>
129       <constraint>
130         <key value="ext-1" />
131         <severity value="error" />
132         <human value="Must have either extensions or value[x], not both" />
133         <expression value="extension.exists() != value.exists()" />
134         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
135       </constraint>
136       <isModifier value="false" />
137       <isSummary value="false" />
138       <mapping>
139         <identity value="rim" />
140         <map value="n/a" />
141       </mapping>
142     </element>
143     <element id="UsageContext.code">
144       <path value="UsageContext.code" />
145       <short value="Type of context being specified" />
146       <definition value="A code that identifies the type of context being specified by this usage context." />
147       <min value="1" />
148       <max value="1" />
149       <base>
150         <path value="UsageContext.code" />
151         <min value="1" />
152         <max value="1" />
153       </base>
154       <type>
155         <code value="Coding" />
156       </type>
157       <constraint>
158         <key value="ele-1" />
159         <severity value="error" />
160         <human value="All FHIR elements must have a @value or children" />
161         <expression value="hasValue() or (children().count() > id.count())" />
162         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
163       </constraint>
164       <isModifier value="false" />
165       <isSummary value="true" />
166       <binding>
167         <extension url="http://hl7.org/fhir/tools/StructureDefinition/binding-definition">
168           <valueString value="A code that specifies a type of context being specified by a usage context." />
169         </extension>
170         <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
171           <valueString value="UsageContextType" />
172         </extension>
173         <strength value="extensible" />
174         <description value="A code that specifies a type of context being specified by a usage context." />
175         <valueSet value="http://terminology.hl7.org/ValueSet/usage-context-type" />
176       </binding>
177     </element>
178     <element id="UsageContext.value[x]">
179       <path value="UsageContext.value[x]" />
180       <short value="Value that defines the context" />
181       <definition value="A value that defines the context specified in this context of use. The interpretation of the value is defined by the code." />
182       <min value="1" />
183       <max value="1" />
184       <base>
185         <path value="UsageContext.value[x]" />
186         <min value="1" />
187         <max value="1" />
188       </base>
189       <type>
190         <code value="CodeableConcept" />
191       </type>
192       <type>
193         <code value="Quantity" />
194       </type>
195       <type>
196         <code value="Range" />
197       </type>
198       <type>
199         <code value="Reference" />
200         <targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
201         <targetProfile value="http://hl7.org/fhir/StructureDefinition/ResearchStudy" />
202         <targetProfile value="http://hl7.org/fhir/StructureDefinition/InsurancePlan" />
203         <targetProfile value="http://hl7.org/fhir/StructureDefinition/HealthcareService" />
204         <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
205         <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
206         <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
207       </type>
208       <constraint>
209         <key value="ele-1" />
210         <severity value="error" />
211         <human value="All FHIR elements must have a @value or children" />
212         <expression value="hasValue() or (children().count() > id.count())" />
213         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
214       </constraint>
215       <isModifier value="false" />
216       <isSummary value="true" />
217       <binding>
218         <extension url="http://hl7.org/fhir/tools/StructureDefinition/binding-definition">
219           <valueString value="A code that defines the specific value for the context being specified." />
220         </extension>
221         <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
222           <valueString value="UsageContextValue" />
223         </extension>
224         <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
225           <valueBoolean value="true" />
226         </extension>
227         <strength value="example" />
228         <description value="A code that defines the specific value for the context being specified." />
229         <valueSet value="http://hl7.org/fhir/ValueSet/use-context" />
230       </binding>
231     </element>
232   </snapshot>
233   <differential>
234     <element id="UsageContext">
235       <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
236         <valueCode value="trial-use" />
237       </extension>
238       <path value="UsageContext" />
239       <short value="Describes the context of use for a conformance or knowledge resource" />
240       <definition value="Specifies clinical/business/etc. metadata that can be used to retrieve, index and/or categorize an artifact. This metadata can either be specific to the applicable population (e.g., age category, DRG) or the specific context of care (e.g., venue, care setting, provider of care)." />
241       <min value="0" />
242       <max value="*" />
243     </element>
244     <element id="UsageContext.code">
245       <path value="UsageContext.code" />
246       <short value="Type of context being specified" />
247       <definition value="A code that identifies the type of context being specified by this usage context." />
248       <min value="1" />
249       <max value="1" />
250       <type>
251         <code value="Coding" />
252       </type>
253       <isSummary value="true" />
254       <binding>
255         <extension url="http://hl7.org/fhir/tools/StructureDefinition/binding-definition">
256           <valueString value="A code that specifies a type of context being specified by a usage context." />
257         </extension>
258         <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
259           <valueString value="UsageContextType" />
260         </extension>
261         <strength value="extensible" />
262         <description value="A code that specifies a type of context being specified by a usage context." />
263         <valueSet value="http://terminology.hl7.org/ValueSet/usage-context-type" />
264       </binding>
265     </element>
266     <element id="UsageContext.value[x]">
267       <path value="UsageContext.value[x]" />
268       <short value="Value that defines the context" />
269       <definition value="A value that defines the context specified in this context of use. The interpretation of the value is defined by the code." />
270       <min value="1" />
271       <max value="1" />
272       <type>
273         <code value="CodeableConcept" />
274       </type>
275       <type>
276         <code value="Quantity" />
277       </type>
278       <type>
279         <code value="Range" />
280       </type>
281       <type>
282         <code value="Reference" />
283         <targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
284         <targetProfile value="http://hl7.org/fhir/StructureDefinition/ResearchStudy" />
285         <targetProfile value="http://hl7.org/fhir/StructureDefinition/InsurancePlan" />
286         <targetProfile value="http://hl7.org/fhir/StructureDefinition/HealthcareService" />
287         <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
288         <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
289         <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
290       </type>
291       <isSummary value="true" />
292       <binding>
293         <extension url="http://hl7.org/fhir/tools/StructureDefinition/binding-definition">
294           <valueString value="A code that defines the specific value for the context being specified." />
295         </extension>
296         <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
297           <valueString value="UsageContextValue" />
298         </extension>
299         <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
300           <valueBoolean value="true" />
301         </extension>
302         <strength value="example" />
303         <description value="A code that defines the specific value for the context being specified." />
304         <valueSet value="http://hl7.org/fhir/ValueSet/use-context" />
305       </binding>
306     </element>
307   </differential>
308 </StructureDefinition>