StructureDefinition-ch-ext-ech-46-internetcategory.xml
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <StructureDefinition xmlns="http://hl7.org/fhir">
  3   <id value="ch-ext-ech-46-internetcategory" />
  4   <url value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-46-internetcategory" />
  5   <version value="6.0.0-ballot-ci-build" />
  6   <name value="ECH46InternetCategory" />
  7   <title value="eCH-0046 Internet Category" />
  8   <status value="active" />
  9   <date value="2025-01-29T14:29:51.0000000+01:00" />
 10   <publisher value="HL7 Switzerland" />
 11   <contact>
 12     <name value="HL7 Switzerland" />
 13     <telecom>
 14       <system value="url" />
 15       <value value="https://www.hl7.ch/" />
 16     </telecom>
 17   </contact>
 18   <contact>
 19     <name value="HL7 Switzerland" />
 20     <telecom>
 21       <system value="url" />
 22       <value value="https://www.hl7.ch/" />
 23       <use value="work" />
 24     </telecom>
 25   </contact>
 26   <description value="Extension to define the internet category according to eCH-0046" />
 27   <jurisdiction>
 28     <coding>
 29       <system value="urn:iso:std:iso:3166" />
 30       <code value="CH" />
 31     </coding>
 32   </jurisdiction>
 33   <copyright value="CC0-1.0" />
 34   <fhirVersion value="4.0.1" />
 35   <mapping>
 36     <identity value="rim" />
 37     <uri value="http://hl7.org/v3" />
 38     <name value="RIM Mapping" />
 39   </mapping>
 40   <kind value="complex-type" />
 41   <abstract value="false" />
 42   <context>
 43     <type value="element" />
 44     <expression value="ContactPoint.use" />
 45   </context>
 46   <type value="Extension" />
 47   <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
 48   <derivation value="constraint" />
 49   <snapshot>
 50     <element id="Extension">
 51       <path value="Extension" />
 52       <short value="Optional Extensions Element" />
 53       <definition value="Optional Extension Element - found in all resources." />
 54       <min value="0" />
 55       <max value="*" />
 56       <base>
 57         <path value="Extension" />
 58         <min value="0" />
 59         <max value="*" />
 60       </base>
 61       <condition value="ele-1" />
 62       <constraint>
 63         <key value="ele-1" />
 64         <severity value="error" />
 65         <human value="All FHIR elements must have a @value or children" />
 66         <expression value="hasValue() or (children().count() > id.count())" />
 67         <xpath value="@value|f:*|h:div" />
 68         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 69       </constraint>
 70       <constraint>
 71         <key value="ext-1" />
 72         <severity value="error" />
 73         <human value="Must have either extensions or value[x], not both" />
 74         <expression value="extension.exists() != value.exists()" />
 75         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
 76         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 77       </constraint>
 78       <isModifier value="false" />
 79       <mapping>
 80         <identity value="rim" />
 81         <map value="n/a" />
 82       </mapping>
 83       <mapping>
 84         <identity value="rim" />
 85         <map value="N/A" />
 86       </mapping>
 87     </element>
 88     <element id="Extension.id">
 89       <path value="Extension.id" />
 90       <representation value="xmlAttr" />
 91       <short value="Unique id for inter-element referencing" />
 92       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
 93       <min value="0" />
 94       <max value="1" />
 95       <base>
 96         <path value="Element.id" />
 97         <min value="0" />
 98         <max value="1" />
 99       </base>
100       <type>
101         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
102           <valueUrl value="string" />
103         </extension>
104         <code value="http://hl7.org/fhirpath/System.String" />
105       </type>
106       <isModifier value="false" />
107       <isSummary value="false" />
108       <mapping>
109         <identity value="rim" />
110         <map value="n/a" />
111       </mapping>
112     </element>
113     <element id="Extension.extension">
114       <path value="Extension.extension" />
115       <slicing>
116         <discriminator>
117           <type value="value" />
118           <path value="url" />
119         </discriminator>
120         <description value="Extensions are always sliced by (at least) url" />
121         <rules value="open" />
122       </slicing>
123       <short value="Extension" />
124       <definition value="An Extension" />
125       <min value="0" />
126       <max value="0" />
127       <base>
128         <path value="Element.extension" />
129         <min value="0" />
130         <max value="*" />
131       </base>
132       <type>
133         <code value="Extension" />
134       </type>
135       <constraint>
136         <key value="ele-1" />
137         <severity value="error" />
138         <human value="All FHIR elements must have a @value or children" />
139         <expression value="hasValue() or (children().count() > id.count())" />
140         <xpath value="@value|f:*|h:div" />
141         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
142       </constraint>
143       <constraint>
144         <key value="ext-1" />
145         <severity value="error" />
146         <human value="Must have either extensions or value[x], not both" />
147         <expression value="extension.exists() != value.exists()" />
148         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
149         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
150       </constraint>
151       <isModifier value="false" />
152       <isSummary value="false" />
153     </element>
154     <element id="Extension.url">
155       <path value="Extension.url" />
156       <representation value="xmlAttr" />
157       <short value="identifies the meaning of the extension" />
158       <definition value="Source of the definition for the extension code - a logical name or a URL." />
159       <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." />
160       <min value="1" />
161       <max value="1" />
162       <base>
163         <path value="Extension.url" />
164         <min value="1" />
165         <max value="1" />
166       </base>
167       <type>
168         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
169           <valueUrl value="uri" />
170         </extension>
171         <code value="http://hl7.org/fhirpath/System.String" />
172       </type>
173       <fixedUri value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-46-internetcategory" />
174       <isModifier value="false" />
175       <isSummary value="false" />
176       <mapping>
177         <identity value="rim" />
178         <map value="N/A" />
179       </mapping>
180     </element>
181     <element id="Extension.value[x]">
182       <path value="Extension.value[x]" />
183       <slicing>
184         <discriminator>
185           <type value="type" />
186           <path value="$this" />
187         </discriminator>
188         <ordered value="false" />
189         <rules value="closed" />
190       </slicing>
191       <short value="Value of extension" />
192       <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list)." />
193       <min value="1" />
194       <max value="1" />
195       <base>
196         <path value="Extension.value[x]" />
197         <min value="0" />
198         <max value="1" />
199       </base>
200       <type>
201         <code value="CodeableConcept" />
202       </type>
203       <constraint>
204         <key value="ele-1" />
205         <severity value="error" />
206         <human value="All FHIR elements must have a @value or children" />
207         <expression value="hasValue() or (children().count() > id.count())" />
208         <xpath value="@value|f:*|h:div" />
209         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
210       </constraint>
211       <isModifier value="false" />
212       <isSummary value="false" />
213       <mapping>
214         <identity value="rim" />
215         <map value="N/A" />
216       </mapping>
217     </element>
218     <element id="Extension.value[x]:valueCodeableConcept">
219       <path value="Extension.value[x]" />
220       <sliceName value="valueCodeableConcept" />
221       <short value="Value of extension" />
222       <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list)." />
223       <min value="1" />
224       <max value="1" />
225       <base>
226         <path value="Extension.value[x]" />
227         <min value="0" />
228         <max value="1" />
229       </base>
230       <type>
231         <code value="CodeableConcept" />
232       </type>
233       <constraint>
234         <key value="ele-1" />
235         <severity value="error" />
236         <human value="All FHIR elements must have a @value or children" />
237         <expression value="hasValue() or (children().count() > id.count())" />
238         <xpath value="@value|f:*|h:div" />
239         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
240       </constraint>
241       <isModifier value="false" />
242       <isSummary value="false" />
243       <binding>
244         <strength value="extensible" />
245         <valueSet value="http://fhir.ch/ig/ch-core/ValueSet/ech-46-internetcategory" />
246       </binding>
247       <mapping>
248         <identity value="rim" />
249         <map value="N/A" />
250       </mapping>
251     </element>
252     <element id="Extension.value[x]:valueCodeableConcept.id">
253       <path value="Extension.value[x].id" />
254       <representation value="xmlAttr" />
255       <short value="Unique id for inter-element referencing" />
256       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
257       <min value="0" />
258       <max value="1" />
259       <base>
260         <path value="Element.id" />
261         <min value="0" />
262         <max value="1" />
263       </base>
264       <type>
265         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
266           <valueUrl value="string" />
267         </extension>
268         <code value="http://hl7.org/fhirpath/System.String" />
269       </type>
270       <isModifier value="false" />
271       <isSummary value="false" />
272       <mapping>
273         <identity value="rim" />
274         <map value="n/a" />
275       </mapping>
276     </element>
277     <element id="Extension.value[x]:valueCodeableConcept.extension">
278       <path value="Extension.value[x].extension" />
279       <slicing>
280         <discriminator>
281           <type value="value" />
282           <path value="url" />
283         </discriminator>
284         <description value="Extensions are always sliced by (at least) url" />
285         <rules value="open" />
286       </slicing>
287       <short value="Additional content defined by implementations" />
288       <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 manageable, 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." />
289       <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." />
290       <alias value="extensions" />
291       <alias value="user content" />
292       <min value="0" />
293       <max value="*" />
294       <base>
295         <path value="Element.extension" />
296         <min value="0" />
297         <max value="*" />
298       </base>
299       <type>
300         <code value="Extension" />
301       </type>
302       <constraint>
303         <key value="ele-1" />
304         <severity value="error" />
305         <human value="All FHIR elements must have a @value or children" />
306         <expression value="hasValue() or (children().count() > id.count())" />
307         <xpath value="@value|f:*|h:div" />
308         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
309       </constraint>
310       <constraint>
311         <key value="ext-1" />
312         <severity value="error" />
313         <human value="Must have either extensions or value[x], not both" />
314         <expression value="extension.exists() != value.exists()" />
315         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
316         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
317       </constraint>
318       <isModifier value="false" />
319       <isSummary value="false" />
320       <mapping>
321         <identity value="rim" />
322         <map value="n/a" />
323       </mapping>
324     </element>
325     <element id="Extension.value[x]:valueCodeableConcept.coding">
326       <path value="Extension.value[x].coding" />
327       <short value="Predefined category" />
328       <definition value="A reference to a code defined by a terminology system." />
329       <comment value="Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true." />
330       <requirements value="Allows for alternative encodings within a code system, and translations to other code systems." />
331       <min value="0" />
332       <max value="*" />
333       <base>
334         <path value="CodeableConcept.coding" />
335         <min value="0" />
336         <max value="*" />
337       </base>
338       <type>
339         <code value="Coding" />
340       </type>
341       <constraint>
342         <key value="ele-1" />
343         <severity value="error" />
344         <human value="All FHIR elements must have a @value or children" />
345         <expression value="hasValue() or (children().count() > id.count())" />
346         <xpath value="@value|f:*|h:div" />
347         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
348       </constraint>
349       <isModifier value="false" />
350       <isSummary value="true" />
351       <mapping>
352         <identity value="v2" />
353         <map value="C*E.1-8, C*E.10-22" />
354       </mapping>
355       <mapping>
356         <identity value="rim" />
357         <map value="union(., ./translation)" />
358       </mapping>
359       <mapping>
360         <identity value="orim" />
361         <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding" />
362       </mapping>
363     </element>
364     <element id="Extension.value[x]:valueCodeableConcept.text">
365       <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
366         <valueBoolean value="true" />
367       </extension>
368       <path value="Extension.value[x].text" />
369       <short value="Category as free text should only be used if none of the predefined categories apply" />
370       <definition value="A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user." />
371       <comment value="Very often the text is the same as a displayName of one of the codings." />
372       <requirements value="The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source." />
373       <min value="0" />
374       <max value="1" />
375       <base>
376         <path value="CodeableConcept.text" />
377         <min value="0" />
378         <max value="1" />
379       </base>
380       <type>
381         <code value="string" />
382       </type>
383       <constraint>
384         <key value="ele-1" />
385         <severity value="error" />
386         <human value="All FHIR elements must have a @value or children" />
387         <expression value="hasValue() or (children().count() > id.count())" />
388         <xpath value="@value|f:*|h:div" />
389         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
390       </constraint>
391       <isModifier value="false" />
392       <isSummary value="true" />
393       <mapping>
394         <identity value="v2" />
395         <map value="C*E.9. But note many systems use C*E.2 for this" />
396       </mapping>
397       <mapping>
398         <identity value="rim" />
399         <map value="./originalText[mediaType/code="text/plain"]/data" />
400       </mapping>
401       <mapping>
402         <identity value="orim" />
403         <map value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText" />
404       </mapping>
405     </element>
406   </snapshot>
407   <differential>
408     <element id="Extension.extension">
409       <path value="Extension.extension" />
410       <max value="0" />
411     </element>
412     <element id="Extension.url">
413       <path value="Extension.url" />
414       <fixedUri value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-46-internetcategory" />
415     </element>
416     <element id="Extension.value[x]">
417       <path value="Extension.value[x]" />
418       <slicing>
419         <discriminator>
420           <type value="type" />
421           <path value="$this" />
422         </discriminator>
423         <ordered value="false" />
424         <rules value="open" />
425       </slicing>
426       <min value="1" />
427     </element>
428     <element id="Extension.value[x]:valueCodeableConcept">
429       <path value="Extension.value[x]" />
430       <sliceName value="valueCodeableConcept" />
431       <min value="1" />
432       <max value="1" />
433       <type>
434         <code value="CodeableConcept" />
435       </type>
436       <binding>
437         <strength value="extensible" />
438         <valueSet value="http://fhir.ch/ig/ch-core/ValueSet/ech-46-internetcategory" />
439       </binding>
440     </element>
441     <element id="Extension.value[x]:valueCodeableConcept.coding">
442       <path value="Extension.value[x].coding" />
443       <short value="Predefined category" />
444     </element>
445     <element id="Extension.value[x]:valueCodeableConcept.text">
446       <path value="Extension.value[x].text" />
447       <short value="Category as free text should only be used if none of the predefined categories apply" />
448     </element>
449   </differential>
450 </StructureDefinition>