StructureDefinition-ch-ext-epr-informationrecipient.xml
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <StructureDefinition xmlns="http://hl7.org/fhir">
  3   <id value="ch-ext-epr-informationrecipient" />
  4   <url value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-informationrecipient" />
  5   <version value="6.0.0-ballot-ci-build" />
  6   <name value="EPRInformationRecipient" />
  7   <title value="EPR Information Recipient" />
  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 for a recipient of this document (corresponds to the addressee of a letter - person or organization)" />
 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="Composition" />
 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="Extension" />
 53       <definition value="Extension to define the information about the recipient" />
 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     </element>
 80     <element id="Extension.id">
 81       <path value="Extension.id" />
 82       <representation value="xmlAttr" />
 83       <short value="Unique id for inter-element referencing" />
 84       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
 85       <min value="0" />
 86       <max value="1" />
 87       <base>
 88         <path value="Element.id" />
 89         <min value="0" />
 90         <max value="1" />
 91       </base>
 92       <type>
 93         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
 94           <valueUrl value="string" />
 95         </extension>
 96         <code value="http://hl7.org/fhirpath/System.String" />
 97       </type>
 98       <isModifier value="false" />
 99       <isSummary value="false" />
100       <mapping>
101         <identity value="rim" />
102         <map value="n/a" />
103       </mapping>
104     </element>
105     <element id="Extension.extension">
106       <path value="Extension.extension" />
107       <slicing>
108         <discriminator>
109           <type value="value" />
110           <path value="url" />
111         </discriminator>
112         <description value="Extensions are always sliced by (at least) url" />
113         <rules value="open" />
114       </slicing>
115       <short value="Extension" />
116       <definition value="An Extension" />
117       <min value="0" />
118       <max value="0" />
119       <base>
120         <path value="Element.extension" />
121         <min value="0" />
122         <max value="*" />
123       </base>
124       <type>
125         <code value="Extension" />
126       </type>
127       <constraint>
128         <key value="ele-1" />
129         <severity value="error" />
130         <human value="All FHIR elements must have a @value or children" />
131         <expression value="hasValue() or (children().count() > id.count())" />
132         <xpath value="@value|f:*|h:div" />
133         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
134       </constraint>
135       <constraint>
136         <key value="ext-1" />
137         <severity value="error" />
138         <human value="Must have either extensions or value[x], not both" />
139         <expression value="extension.exists() != value.exists()" />
140         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
141         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
142       </constraint>
143       <isModifier value="false" />
144       <isSummary value="false" />
145     </element>
146     <element id="Extension.url">
147       <path value="Extension.url" />
148       <representation value="xmlAttr" />
149       <short value="identifies the meaning of the extension" />
150       <definition value="Source of the definition for the extension code - a logical name or a URL." />
151       <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." />
152       <min value="1" />
153       <max value="1" />
154       <base>
155         <path value="Extension.url" />
156         <min value="1" />
157         <max value="1" />
158       </base>
159       <type>
160         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
161           <valueUrl value="uri" />
162         </extension>
163         <code value="http://hl7.org/fhirpath/System.String" />
164       </type>
165       <fixedUri value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-informationrecipient" />
166       <isModifier value="false" />
167       <isSummary value="false" />
168       <mapping>
169         <identity value="rim" />
170         <map value="N/A" />
171       </mapping>
172     </element>
173     <element id="Extension.value[x]">
174       <path value="Extension.value[x]" />
175       <slicing>
176         <discriminator>
177           <type value="type" />
178           <path value="$this" />
179         </discriminator>
180         <ordered value="false" />
181         <rules value="closed" />
182       </slicing>
183       <short value="Value of extension" />
184       <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)." />
185       <min value="1" />
186       <max value="1" />
187       <base>
188         <path value="Extension.value[x]" />
189         <min value="0" />
190         <max value="1" />
191       </base>
192       <type>
193         <code value="Reference" />
194       </type>
195       <constraint>
196         <key value="ele-1" />
197         <severity value="error" />
198         <human value="All FHIR elements must have a @value or children" />
199         <expression value="hasValue() or (children().count() > id.count())" />
200         <xpath value="@value|f:*|h:div" />
201         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
202       </constraint>
203       <isModifier value="false" />
204       <isSummary value="false" />
205       <mapping>
206         <identity value="rim" />
207         <map value="N/A" />
208       </mapping>
209     </element>
210     <element id="Extension.value[x]:valueReference">
211       <path value="Extension.value[x]" />
212       <sliceName value="valueReference" />
213       <short value="Value of extension" />
214       <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)." />
215       <min value="1" />
216       <max value="1" />
217       <base>
218         <path value="Extension.value[x]" />
219         <min value="0" />
220         <max value="1" />
221       </base>
222       <type>
223         <code value="Reference" />
224         <targetProfile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-practitioner" />
225         <targetProfile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient" />
226         <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
227         <targetProfile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-organization" />
228       </type>
229       <constraint>
230         <key value="ele-1" />
231         <severity value="error" />
232         <human value="All FHIR elements must have a @value or children" />
233         <expression value="hasValue() or (children().count() > id.count())" />
234         <xpath value="@value|f:*|h:div" />
235         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
236       </constraint>
237       <isModifier value="false" />
238       <isSummary value="false" />
239       <mapping>
240         <identity value="rim" />
241         <map value="N/A" />
242       </mapping>
243     </element>
244   </snapshot>
245   <differential>
246     <element id="Extension">
247       <path value="Extension" />
248       <short value="Extension" />
249       <definition value="Extension to define the information about the recipient" />
250     </element>
251     <element id="Extension.extension">
252       <path value="Extension.extension" />
253       <max value="0" />
254     </element>
255     <element id="Extension.url">
256       <path value="Extension.url" />
257       <fixedUri value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-informationrecipient" />
258     </element>
259     <element id="Extension.value[x]">
260       <path value="Extension.value[x]" />
261       <slicing>
262         <discriminator>
263           <type value="type" />
264           <path value="$this" />
265         </discriminator>
266         <ordered value="false" />
267         <rules value="open" />
268       </slicing>
269       <min value="1" />
270     </element>
271     <element id="Extension.value[x]:valueReference">
272       <path value="Extension.value[x]" />
273       <sliceName value="valueReference" />
274       <min value="1" />
275       <max value="1" />
276       <type>
277         <code value="Reference" />
278         <targetProfile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-practitioner" />
279         <targetProfile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient" />
280         <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
281         <targetProfile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-organization" />
282       </type>
283     </element>
284   </differential>
285 </StructureDefinition>