condition-occurredFollowing.xml
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <StructureDefinition xmlns="http://hl7.org/fhir">
  3   <id value="condition-occurredFollowing" />
  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/condition-occurredFollowing" />
 11   <version value="4.0.1" />
 12   <name value="occurredFollowing" />
 13   <title value="occurredFollowing" />
 14   <status value="draft" />
 15   <date value="2015-02-21" />
 16   <publisher value="Health Level Seven, Inc. - FHIR WG" />
 17   <contact>
 18     <telecom>
 19       <system value="url" />
 20       <value value="HL7" />
 21     </telecom>
 22   </contact>
 23   <description value="Further conditions, problems, diagnoses, procedures or events or the substance that preceded this Condition." />
 24   <fhirVersion value="4.0.1" />
 25   <mapping>
 26     <identity value="rim" />
 27     <uri value="http://hl7.org/v3" />
 28     <name value="RIM Mapping" />
 29   </mapping>
 30   <kind value="complex-type" />
 31   <abstract value="false" />
 32   <context>
 33     <type value="element" />
 34     <expression value="Condition" />
 35   </context>
 36   <type value="Extension" />
 37   <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
 38   <derivation value="constraint" />
 39   <snapshot>
 40     <element id="Extension">
 41       <path value="Extension" />
 42       <short value="Precedent for this Condition" />
 43       <definition value="Further conditions, problems, diagnoses, procedures or events or the substance that preceded this Condition." />
 44       <min value="0" />
 45       <max value="*" />
 46       <base>
 47         <path value="Extension" />
 48         <min value="0" />
 49         <max value="*" />
 50       </base>
 51       <condition value="ele-1" />
 52       <constraint>
 53         <key value="ele-1" />
 54         <severity value="error" />
 55         <human value="All FHIR elements must have a @value or children" />
 56         <expression value="hasValue() or (children().count() > id.count())" />
 57         <xpath value="@value|f:*|h:div" />
 58         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 59       </constraint>
 60       <constraint>
 61         <key value="ext-1" />
 62         <severity value="error" />
 63         <human value="Must have either extensions or value[x], not both" />
 64         <expression value="extension.exists() != value.exists()" />
 65         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
 66         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 67       </constraint>
 68       <isModifier value="false" />
 69       <mapping>
 70         <identity value="rim" />
 71         <map value=".typeCode" />
 72       </mapping>
 73     </element>
 74     <element id="Extension.id">
 75       <path value="Extension.id" />
 76       <representation value="xmlAttr" />
 77       <short value="Unique id for inter-element referencing" />
 78       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
 79       <min value="0" />
 80       <max value="1" />
 81       <base>
 82         <path value="Element.id" />
 83         <min value="0" />
 84         <max value="1" />
 85       </base>
 86       <type>
 87         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
 88           <valueUrl value="string" />
 89         </extension>
 90         <code value="http://hl7.org/fhirpath/System.String" />
 91       </type>
 92       <isModifier value="false" />
 93       <isSummary value="false" />
 94       <mapping>
 95         <identity value="rim" />
 96         <map value="n/a" />
 97       </mapping>
 98     </element>
 99     <element id="Extension.extension">
100       <path value="Extension.extension" />
101       <slicing>
102         <discriminator>
103           <type value="value" />
104           <path value="url" />
105         </discriminator>
106         <description value="Extensions are always sliced by (at least) url" />
107         <rules value="open" />
108       </slicing>
109       <short value="Extension" />
110       <definition value="An Extension" />
111       <min value="0" />
112       <max value="0" />
113       <base>
114         <path value="Element.extension" />
115         <min value="0" />
116         <max value="*" />
117       </base>
118       <type>
119         <code value="Extension" />
120       </type>
121       <constraint>
122         <key value="ele-1" />
123         <severity value="error" />
124         <human value="All FHIR elements must have a @value or children" />
125         <expression value="hasValue() or (children().count() > id.count())" />
126         <xpath value="@value|f:*|h:div" />
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         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
135         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
136       </constraint>
137       <isModifier value="false" />
138       <isSummary value="false" />
139     </element>
140     <element id="Extension.url">
141       <path value="Extension.url" />
142       <representation value="xmlAttr" />
143       <short value="identifies the meaning of the extension" />
144       <definition value="Source of the definition for the extension code - a logical name or a URL." />
145       <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." />
146       <min value="1" />
147       <max value="1" />
148       <base>
149         <path value="Extension.url" />
150         <min value="1" />
151         <max value="1" />
152       </base>
153       <type>
154         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
155           <valueUrl value="uri" />
156         </extension>
157         <code value="http://hl7.org/fhirpath/System.String" />
158       </type>
159       <fixedUri value="http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing" />
160       <isModifier value="false" />
161       <isSummary value="false" />
162       <mapping>
163         <identity value="rim" />
164         <map value="N/A" />
165       </mapping>
166     </element>
167     <element id="Extension.value[x]">
168       <path value="Extension.value[x]" />
169       <short value="Value of extension" />
170       <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)." />
171       <min value="1" />
172       <max value="1" />
173       <base>
174         <path value="Extension.value[x]" />
175         <min value="0" />
176         <max value="1" />
177       </base>
178       <type>
179         <code value="CodeableConcept" />
180       </type>
181       <type>
182         <code value="Reference" />
183         <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
184         <targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure" />
185         <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration" />
186         <targetProfile value="http://hl7.org/fhir/StructureDefinition/Immunization" />
187         <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationStatement" />
188       </type>
189       <constraint>
190         <key value="ele-1" />
191         <severity value="error" />
192         <human value="All FHIR elements must have a @value or children" />
193         <expression value="hasValue() or (children().count() > id.count())" />
194         <xpath value="@value|f:*|h:div" />
195         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
196       </constraint>
197       <isModifier value="false" />
198       <isSummary value="false" />
199       <binding>
200         <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
201           <valueString value="ConditionPredecessor" />
202         </extension>
203         <strength value="example" />
204         <description value="Codes that describe activities or observations that occurred prior to the condition." />
205         <valueSet value="http://hl7.org/fhir/ValueSet/condition-predecessor" />
206       </binding>
207       <mapping>
208         <identity value="rim" />
209         <map value="N/A" />
210       </mapping>
211     </element>
212   </snapshot>
213   <differential>
214     <element id="Extension">
215       <path value="Extension" />
216       <short value="Precedent for this Condition" />
217       <definition value="Further conditions, problems, diagnoses, procedures or events or the substance that preceded this Condition." />
218       <min value="0" />
219       <max value="*" />
220       <mapping>
221         <identity value="rim" />
222         <map value=".typeCode" />
223       </mapping>
224     </element>
225     <element id="Extension.extension">
226       <path value="Extension.extension" />
227       <max value="0" />
228     </element>
229     <element id="Extension.url">
230       <path value="Extension.url" />
231       <fixedUri value="http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing" />
232     </element>
233     <element id="Extension.value[x]">
234       <path value="Extension.value[x]" />
235       <min value="1" />
236       <type>
237         <code value="CodeableConcept" />
238       </type>
239       <type>
240         <code value="Reference" />
241         <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
242         <targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure" />
243         <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration" />
244         <targetProfile value="http://hl7.org/fhir/StructureDefinition/Immunization" />
245         <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationStatement" />
246       </type>
247       <binding>
248         <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
249           <valueString value="ConditionPredecessor" />
250         </extension>
251         <strength value="example" />
252         <description value="Codes that describe activities or observations that occurred prior to the condition." />
253         <valueSet value="http://hl7.org/fhir/ValueSet/condition-predecessor" />
254       </binding>
255     </element>
256   </differential>
257 </StructureDefinition>