condition-dueTo.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <StructureDefinition xmlns="http://hl7.org/fhir"> 3 <id value="condition-dueTo" /> 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-dueTo" /> 11 <version value="4.0.1" /> 12 <name value="dueTo" /> 13 <title value="dueTo" /> 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 caused/triggered 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="Causes for this Condition" /> 43 <definition value="Further conditions, problems, diagnoses, procedures or events or the substance that caused/triggered this Condition." /> 44 <comment value="Although a condition may be caused by a substance, this is not intended to be used to record allergies/adverse reactions to substances." /> 45 <min value="0" /> 46 <max value="*" /> 47 <base> 48 <path value="Extension" /> 49 <min value="0" /> 50 <max value="*" /> 51 </base> 52 <condition value="ele-1" /> 53 <constraint> 54 <key value="ele-1" /> 55 <severity value="error" /> 56 <human value="All FHIR elements must have a @value or children" /> 57 <expression value="hasValue() or (children().count() > id.count())" /> 58 <xpath value="@value|f:*|h:div" /> 59 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 60 </constraint> 61 <constraint> 62 <key value="ext-1" /> 63 <severity value="error" /> 64 <human value="Must have either extensions or value[x], not both" /> 65 <expression value="extension.exists() != value.exists()" /> 66 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" /> 67 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 68 </constraint> 69 <isModifier value="false" /> 70 <mapping> 71 <identity value="rim" /> 72 <map value=".typeCode" /> 73 </mapping> 74 </element> 75 <element id="Extension.id"> 76 <path value="Extension.id" /> 77 <representation value="xmlAttr" /> 78 <short value="Unique id for inter-element referencing" /> 79 <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." /> 80 <min value="0" /> 81 <max value="1" /> 82 <base> 83 <path value="Element.id" /> 84 <min value="0" /> 85 <max value="1" /> 86 </base> 87 <type> 88 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 89 <valueUrl value="string" /> 90 </extension> 91 <code value="http://hl7.org/fhirpath/System.String" /> 92 </type> 93 <isModifier value="false" /> 94 <isSummary value="false" /> 95 <mapping> 96 <identity value="rim" /> 97 <map value="n/a" /> 98 </mapping> 99 </element> 100 <element id="Extension.extension"> 101 <path value="Extension.extension" /> 102 <slicing> 103 <discriminator> 104 <type value="value" /> 105 <path value="url" /> 106 </discriminator> 107 <description value="Extensions are always sliced by (at least) url" /> 108 <rules value="open" /> 109 </slicing> 110 <short value="Extension" /> 111 <definition value="An Extension" /> 112 <min value="0" /> 113 <max value="0" /> 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 <xpath value="@value|f:*|h:div" /> 128 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 129 </constraint> 130 <constraint> 131 <key value="ext-1" /> 132 <severity value="error" /> 133 <human value="Must have either extensions or value[x], not both" /> 134 <expression value="extension.exists() != value.exists()" /> 135 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 136 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 137 </constraint> 138 <isModifier value="false" /> 139 <isSummary value="false" /> 140 </element> 141 <element id="Extension.url"> 142 <path value="Extension.url" /> 143 <representation value="xmlAttr" /> 144 <short value="identifies the meaning of the extension" /> 145 <definition value="Source of the definition for the extension code - a logical name or a URL." /> 146 <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." /> 147 <min value="1" /> 148 <max value="1" /> 149 <base> 150 <path value="Extension.url" /> 151 <min value="1" /> 152 <max value="1" /> 153 </base> 154 <type> 155 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 156 <valueUrl value="uri" /> 157 </extension> 158 <code value="http://hl7.org/fhirpath/System.String" /> 159 </type> 160 <fixedUri value="http://hl7.org/fhir/StructureDefinition/condition-dueTo" /> 161 <isModifier value="false" /> 162 <isSummary value="false" /> 163 <mapping> 164 <identity value="rim" /> 165 <map value="N/A" /> 166 </mapping> 167 </element> 168 <element id="Extension.value[x]"> 169 <path value="Extension.value[x]" /> 170 <short value="Value of extension" /> 171 <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)." /> 172 <min value="1" /> 173 <max value="1" /> 174 <base> 175 <path value="Extension.value[x]" /> 176 <min value="0" /> 177 <max value="1" /> 178 </base> 179 <type> 180 <code value="CodeableConcept" /> 181 </type> 182 <type> 183 <code value="Reference" /> 184 <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" /> 185 <targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure" /> 186 <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration" /> 187 <targetProfile value="http://hl7.org/fhir/StructureDefinition/Immunization" /> 188 <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationStatement" /> 189 </type> 190 <constraint> 191 <key value="ele-1" /> 192 <severity value="error" /> 193 <human value="All FHIR elements must have a @value or children" /> 194 <expression value="hasValue() or (children().count() > id.count())" /> 195 <xpath value="@value|f:*|h:div" /> 196 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 197 </constraint> 198 <isModifier value="false" /> 199 <isSummary value="false" /> 200 <binding> 201 <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> 202 <valueString value="ConditionCause" /> 203 </extension> 204 <strength value="example" /> 205 <description value="Codes that describe causes of patient conditions; e.g. Surgical mishap, escalation of a previous condition, etc." /> 206 <valueSet value="http://hl7.org/fhir/ValueSet/condition-cause" /> 207 </binding> 208 <mapping> 209 <identity value="rim" /> 210 <map value="N/A" /> 211 </mapping> 212 </element> 213 </snapshot> 214 <differential> 215 <element id="Extension"> 216 <path value="Extension" /> 217 <short value="Causes for this Condition" /> 218 <definition value="Further conditions, problems, diagnoses, procedures or events or the substance that caused/triggered this Condition." /> 219 <comment value="Although a condition may be caused by a substance, this is not intended to be used to record allergies/adverse reactions to substances." /> 220 <min value="0" /> 221 <max value="*" /> 222 <mapping> 223 <identity value="rim" /> 224 <map value=".typeCode" /> 225 </mapping> 226 </element> 227 <element id="Extension.extension"> 228 <path value="Extension.extension" /> 229 <max value="0" /> 230 </element> 231 <element id="Extension.url"> 232 <path value="Extension.url" /> 233 <fixedUri value="http://hl7.org/fhir/StructureDefinition/condition-dueTo" /> 234 </element> 235 <element id="Extension.value[x]"> 236 <path value="Extension.value[x]" /> 237 <min value="1" /> 238 <type> 239 <code value="CodeableConcept" /> 240 </type> 241 <type> 242 <code value="Reference" /> 243 <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" /> 244 <targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure" /> 245 <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration" /> 246 <targetProfile value="http://hl7.org/fhir/StructureDefinition/Immunization" /> 247 <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationStatement" /> 248 </type> 249 <binding> 250 <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> 251 <valueString value="ConditionCause" /> 252 </extension> 253 <strength value="example" /> 254 <description value="Codes that describe causes of patient conditions; e.g. Surgical mishap, escalation of a previous condition, etc." /> 255 <valueSet value="http://hl7.org/fhir/ValueSet/condition-cause" /> 256 </binding> 257 </element> 258 </differential> 259 </StructureDefinition>