workflow-reasonReference.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <StructureDefinition xmlns="http://hl7.org/fhir"> 3 <id value="workflow-reasonReference" /> 4 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"> 5 <valueCode value="fhir" /> 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/workflow-reasonReference" /> 11 <version value="4.0.1" /> 12 <name value="reasonReference" /> 13 <title value="Reason Reference" /> 14 <status value="draft" /> 15 <date value="2017-12-06" /> 16 <publisher value="Health Level Seven, Inc. - FHIR WG" /> 17 <contact> 18 <telecom> 19 <system value="url" /> 20 <value value="http://hl7.org/special/committees/fwg" /> 21 </telecom> 22 </contact> 23 <description value="Indicates another resource whose existence justifies this event." /> 24 <fhirVersion value="4.0.1" /> 25 <mapping> 26 <identity value="workflow" /> 27 <uri value="http://hl7.org/fhir/workflow" /> 28 <name value="Workflow Pattern" /> 29 </mapping> 30 <mapping> 31 <identity value="v2" /> 32 <uri value="http://hl7.org/v2" /> 33 <name value="HL7 v2 Mapping" /> 34 </mapping> 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="Observation" /> 45 </context> 46 <context> 47 <type value="element" /> 48 <expression value="DiagnosticReport" /> 49 </context> 50 <context> 51 <type value="element" /> 52 <expression value="Media" /> 53 </context> 54 <context> 55 <type value="element" /> 56 <expression value="NutritionOrder" /> 57 </context> 58 <type value="Extension" /> 59 <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" /> 60 <derivation value="constraint" /> 61 <snapshot> 62 <element id="Extension"> 63 <path value="Extension" /> 64 <short value="Why was event performed?" /> 65 <definition value="Indicates another resource whose existence justifies this event." /> 66 <min value="0" /> 67 <max value="*" /> 68 <base> 69 <path value="Extension" /> 70 <min value="0" /> 71 <max value="*" /> 72 </base> 73 <condition value="ele-1" /> 74 <constraint> 75 <key value="ele-1" /> 76 <severity value="error" /> 77 <human value="All FHIR elements must have a @value or children" /> 78 <expression value="hasValue() or (children().count() > id.count())" /> 79 <xpath value="@value|f:*|h:div" /> 80 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 81 </constraint> 82 <constraint> 83 <key value="ext-1" /> 84 <severity value="error" /> 85 <human value="Must have either extensions or value[x], not both" /> 86 <expression value="extension.exists() != value.exists()" /> 87 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" /> 88 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 89 </constraint> 90 <isModifier value="false" /> 91 <mapping> 92 <identity value="workflow" /> 93 <map value="Event.reasonReference" /> 94 </mapping> 95 <mapping> 96 <identity value="v2" /> 97 <map value="EVN.4 or by domain" /> 98 </mapping> 99 <mapping> 100 <identity value="rim" /> 101 <map value=".outboundRelationship[typeCode=RSON].target" /> 102 </mapping> 103 </element> 104 <element id="Extension.id"> 105 <path value="Extension.id" /> 106 <representation value="xmlAttr" /> 107 <short value="Unique id for inter-element referencing" /> 108 <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." /> 109 <min value="0" /> 110 <max value="1" /> 111 <base> 112 <path value="Element.id" /> 113 <min value="0" /> 114 <max value="1" /> 115 </base> 116 <type> 117 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 118 <valueUrl value="string" /> 119 </extension> 120 <code value="http://hl7.org/fhirpath/System.String" /> 121 </type> 122 <isModifier value="false" /> 123 <isSummary value="false" /> 124 <mapping> 125 <identity value="rim" /> 126 <map value="n/a" /> 127 </mapping> 128 </element> 129 <element id="Extension.extension"> 130 <path value="Extension.extension" /> 131 <slicing> 132 <discriminator> 133 <type value="value" /> 134 <path value="url" /> 135 </discriminator> 136 <description value="Extensions are always sliced by (at least) url" /> 137 <rules value="open" /> 138 </slicing> 139 <short value="Extension" /> 140 <definition value="An Extension" /> 141 <min value="0" /> 142 <max value="0" /> 143 <base> 144 <path value="Element.extension" /> 145 <min value="0" /> 146 <max value="*" /> 147 </base> 148 <type> 149 <code value="Extension" /> 150 </type> 151 <constraint> 152 <key value="ele-1" /> 153 <severity value="error" /> 154 <human value="All FHIR elements must have a @value or children" /> 155 <expression value="hasValue() or (children().count() > id.count())" /> 156 <xpath value="@value|f:*|h:div" /> 157 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 158 </constraint> 159 <constraint> 160 <key value="ext-1" /> 161 <severity value="error" /> 162 <human value="Must have either extensions or value[x], not both" /> 163 <expression value="extension.exists() != value.exists()" /> 164 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 165 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 166 </constraint> 167 <isModifier value="false" /> 168 <isSummary value="false" /> 169 </element> 170 <element id="Extension.url"> 171 <path value="Extension.url" /> 172 <representation value="xmlAttr" /> 173 <short value="identifies the meaning of the extension" /> 174 <definition value="Source of the definition for the extension code - a logical name or a URL." /> 175 <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." /> 176 <min value="1" /> 177 <max value="1" /> 178 <base> 179 <path value="Extension.url" /> 180 <min value="1" /> 181 <max value="1" /> 182 </base> 183 <type> 184 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 185 <valueUrl value="uri" /> 186 </extension> 187 <code value="http://hl7.org/fhirpath/System.String" /> 188 </type> 189 <fixedUri value="http://hl7.org/fhir/StructureDefinition/workflow-reasonReference" /> 190 <isModifier value="false" /> 191 <isSummary value="false" /> 192 <mapping> 193 <identity value="rim" /> 194 <map value="N/A" /> 195 </mapping> 196 </element> 197 <element id="Extension.value[x]"> 198 <path value="Extension.value[x]" /> 199 <short value="Value of extension" /> 200 <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)." /> 201 <min value="1" /> 202 <max value="1" /> 203 <base> 204 <path value="Extension.value[x]" /> 205 <min value="0" /> 206 <max value="1" /> 207 </base> 208 <type> 209 <code value="Reference" /> 210 <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" /> 211 <targetProfile value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport" /> 212 <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference" /> 213 <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" /> 214 <targetProfile value="http://hl7.org/fhir/StructureDefinition/Media" /> 215 </type> 216 <constraint> 217 <key value="ele-1" /> 218 <severity value="error" /> 219 <human value="All FHIR elements must have a @value or children" /> 220 <expression value="hasValue() or (children().count() > id.count())" /> 221 <xpath value="@value|f:*|h:div" /> 222 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 223 </constraint> 224 <isModifier value="false" /> 225 <isSummary value="false" /> 226 <mapping> 227 <identity value="rim" /> 228 <map value="N/A" /> 229 </mapping> 230 </element> 231 </snapshot> 232 <differential> 233 <element id="Extension"> 234 <path value="Extension" /> 235 <short value="Why was event performed?" /> 236 <definition value="Indicates another resource whose existence justifies this event." /> 237 <min value="0" /> 238 <max value="*" /> 239 <mapping> 240 <identity value="workflow" /> 241 <map value="Event.reasonReference" /> 242 </mapping> 243 <mapping> 244 <identity value="v2" /> 245 <map value="EVN.4 or by domain" /> 246 </mapping> 247 <mapping> 248 <identity value="rim" /> 249 <map value=".outboundRelationship[typeCode=RSON].target" /> 250 </mapping> 251 </element> 252 <element id="Extension.extension"> 253 <path value="Extension.extension" /> 254 <max value="0" /> 255 </element> 256 <element id="Extension.url"> 257 <path value="Extension.url" /> 258 <fixedUri value="http://hl7.org/fhir/StructureDefinition/workflow-reasonReference" /> 259 </element> 260 <element id="Extension.value[x]"> 261 <path value="Extension.value[x]" /> 262 <min value="1" /> 263 <type> 264 <code value="Reference" /> 265 <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" /> 266 <targetProfile value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport" /> 267 <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference" /> 268 <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" /> 269 <targetProfile value="http://hl7.org/fhir/StructureDefinition/Media" /> 270 </type> 271 </element> 272 </differential> 273 </StructureDefinition>