openEHR-exposureDescription.xml
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <StructureDefinition xmlns="http://hl7.org/fhir">
  3   <id value="openEHR-exposureDescription" />
  4   <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
  5     <valueCode value="pc" />
  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/openEHR-exposureDescription" />
 11   <version value="4.0.1" />
 12   <name value="exposureDescription" />
 13   <status value="draft" />
 14   <date value="2014-10-09" />
 15   <publisher value="Health Level Seven, Inc / openEHR project" />
 16   <contact>
 17     <telecom>
 18       <system value="url" />
 19       <value value="http://hl7.org" />
 20     </telecom>
 21   </contact>
 22   <description value="Text description about exposure to the Substance." />
 23   <fhirVersion value="4.0.1" />
 24   <mapping>
 25     <identity value="rim" />
 26     <uri value="http://hl7.org/v3" />
 27     <name value="RIM Mapping" />
 28   </mapping>
 29   <kind value="complex-type" />
 30   <abstract value="false" />
 31   <context>
 32     <type value="element" />
 33     <expression value="AllergyIntolerance.reaction" />
 34   </context>
 35   <type value="Extension" />
 36   <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
 37   <derivation value="constraint" />
 38   <snapshot>
 39     <element id="Extension">
 40       <path value="Extension" />
 41       <short value="Text description about exposure to the Substance" />
 42       <definition value="Text description about exposure to the Substance." />
 43       <min value="0" />
 44       <max value="1" />
 45       <base>
 46         <path value="Extension" />
 47         <min value="0" />
 48         <max value="*" />
 49       </base>
 50       <condition value="ele-1" />
 51       <constraint>
 52         <key value="ele-1" />
 53         <severity value="error" />
 54         <human value="All FHIR elements must have a @value or children" />
 55         <expression value="hasValue() or (children().count() > id.count())" />
 56         <xpath value="@value|f:*|h:div" />
 57         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 58       </constraint>
 59       <constraint>
 60         <key value="ext-1" />
 61         <severity value="error" />
 62         <human value="Must have either extensions or value[x], not both" />
 63         <expression value="extension.exists() != value.exists()" />
 64         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
 65         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 66       </constraint>
 67       <isModifier value="false" />
 68     </element>
 69     <element id="Extension.id">
 70       <path value="Extension.id" />
 71       <representation value="xmlAttr" />
 72       <short value="Unique id for inter-element referencing" />
 73       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
 74       <min value="0" />
 75       <max value="1" />
 76       <base>
 77         <path value="Element.id" />
 78         <min value="0" />
 79         <max value="1" />
 80       </base>
 81       <type>
 82         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
 83           <valueUrl value="string" />
 84         </extension>
 85         <code value="http://hl7.org/fhirpath/System.String" />
 86       </type>
 87       <isModifier value="false" />
 88       <isSummary value="false" />
 89       <mapping>
 90         <identity value="rim" />
 91         <map value="n/a" />
 92       </mapping>
 93     </element>
 94     <element id="Extension.extension">
 95       <path value="Extension.extension" />
 96       <slicing>
 97         <discriminator>
 98           <type value="value" />
 99           <path value="url" />
100         </discriminator>
101         <description value="Extensions are always sliced by (at least) url" />
102         <rules value="open" />
103       </slicing>
104       <short value="Extension" />
105       <definition value="An Extension" />
106       <min value="0" />
107       <max value="0" />
108       <base>
109         <path value="Element.extension" />
110         <min value="0" />
111         <max value="*" />
112       </base>
113       <type>
114         <code value="Extension" />
115       </type>
116       <constraint>
117         <key value="ele-1" />
118         <severity value="error" />
119         <human value="All FHIR elements must have a @value or children" />
120         <expression value="hasValue() or (children().count() > id.count())" />
121         <xpath value="@value|f:*|h:div" />
122         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
123       </constraint>
124       <constraint>
125         <key value="ext-1" />
126         <severity value="error" />
127         <human value="Must have either extensions or value[x], not both" />
128         <expression value="extension.exists() != value.exists()" />
129         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
130         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
131       </constraint>
132       <isModifier value="false" />
133       <isSummary value="false" />
134     </element>
135     <element id="Extension.url">
136       <path value="Extension.url" />
137       <representation value="xmlAttr" />
138       <short value="identifies the meaning of the extension" />
139       <definition value="Source of the definition for the extension code - a logical name or a URL." />
140       <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." />
141       <min value="1" />
142       <max value="1" />
143       <base>
144         <path value="Extension.url" />
145         <min value="1" />
146         <max value="1" />
147       </base>
148       <type>
149         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
150           <valueUrl value="uri" />
151         </extension>
152         <code value="http://hl7.org/fhirpath/System.String" />
153       </type>
154       <fixedUri value="http://hl7.org/fhir/StructureDefinition/openEHR-exposureDescription" />
155       <isModifier value="false" />
156       <isSummary value="false" />
157       <mapping>
158         <identity value="rim" />
159         <map value="N/A" />
160       </mapping>
161     </element>
162     <element id="Extension.value[x]">
163       <path value="Extension.value[x]" />
164       <short value="Value of extension" />
165       <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)." />
166       <min value="1" />
167       <max value="1" />
168       <base>
169         <path value="Extension.value[x]" />
170         <min value="0" />
171         <max value="1" />
172       </base>
173       <type>
174         <code value="string" />
175       </type>
176       <constraint>
177         <key value="ele-1" />
178         <severity value="error" />
179         <human value="All FHIR elements must have a @value or children" />
180         <expression value="hasValue() or (children().count() > id.count())" />
181         <xpath value="@value|f:*|h:div" />
182         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
183       </constraint>
184       <isModifier value="false" />
185       <isSummary value="false" />
186       <mapping>
187         <identity value="rim" />
188         <map value="N/A" />
189       </mapping>
190     </element>
191   </snapshot>
192   <differential>
193     <element id="Extension">
194       <path value="Extension" />
195       <short value="Text description about exposure to the Substance" />
196       <definition value="Text description about exposure to the Substance." />
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/openEHR-exposureDescription" />
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>