workflow-instantiatesCanonical.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <StructureDefinition xmlns="http://hl7.org/fhir"> 3 <id value="workflow-instantiatesCanonical" /> 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-instantiatesCanonical" /> 11 <version value="4.0.1" /> 12 <name value="instantiatesCanonical" /> 13 <title value="Definition" /> 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="The URL pointing to a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by the event or request resource." /> 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="Condition" /> 57 </context> 58 <context> 59 <type value="element" /> 60 <expression value="SupplyDelivery" /> 61 </context> 62 <context> 63 <type value="element" /> 64 <expression value="CommunicationRequest" /> 65 </context> 66 <context> 67 <type value="element" /> 68 <expression value="SupplyRequest" /> 69 </context> 70 <type value="Extension" /> 71 <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" /> 72 <derivation value="constraint" /> 73 <snapshot> 74 <element id="Extension"> 75 <path value="Extension" /> 76 <short value="FHIR protocol or definition" /> 77 <definition value="The URL pointing to a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by the event or request resource." /> 78 <min value="0" /> 79 <max value="*" /> 80 <base> 81 <path value="Extension" /> 82 <min value="0" /> 83 <max value="*" /> 84 </base> 85 <condition value="ele-1" /> 86 <constraint> 87 <key value="ele-1" /> 88 <severity value="error" /> 89 <human value="All FHIR elements must have a @value or children" /> 90 <expression value="hasValue() or (children().count() > id.count())" /> 91 <xpath value="@value|f:*|h:div" /> 92 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 93 </constraint> 94 <constraint> 95 <key value="ext-1" /> 96 <severity value="error" /> 97 <human value="Must have either extensions or value[x], not both" /> 98 <expression value="extension.exists() != value.exists()" /> 99 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" /> 100 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 101 </constraint> 102 <isModifier value="false" /> 103 <mapping> 104 <identity value="workflow" /> 105 <map value="Event.instantiates" /> 106 </mapping> 107 <mapping> 108 <identity value="v2" /> 109 <map value="Varies by domain" /> 110 </mapping> 111 <mapping> 112 <identity value="rim" /> 113 <map value=".outboundRelationship[typeCode=DEFN].target" /> 114 </mapping> 115 </element> 116 <element id="Extension.id"> 117 <path value="Extension.id" /> 118 <representation value="xmlAttr" /> 119 <short value="Unique id for inter-element referencing" /> 120 <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." /> 121 <min value="0" /> 122 <max value="1" /> 123 <base> 124 <path value="Element.id" /> 125 <min value="0" /> 126 <max value="1" /> 127 </base> 128 <type> 129 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 130 <valueUrl value="string" /> 131 </extension> 132 <code value="http://hl7.org/fhirpath/System.String" /> 133 </type> 134 <isModifier value="false" /> 135 <isSummary value="false" /> 136 <mapping> 137 <identity value="rim" /> 138 <map value="n/a" /> 139 </mapping> 140 </element> 141 <element id="Extension.extension"> 142 <path value="Extension.extension" /> 143 <slicing> 144 <discriminator> 145 <type value="value" /> 146 <path value="url" /> 147 </discriminator> 148 <description value="Extensions are always sliced by (at least) url" /> 149 <rules value="open" /> 150 </slicing> 151 <short value="Extension" /> 152 <definition value="An Extension" /> 153 <min value="0" /> 154 <max value="0" /> 155 <base> 156 <path value="Element.extension" /> 157 <min value="0" /> 158 <max value="*" /> 159 </base> 160 <type> 161 <code value="Extension" /> 162 </type> 163 <constraint> 164 <key value="ele-1" /> 165 <severity value="error" /> 166 <human value="All FHIR elements must have a @value or children" /> 167 <expression value="hasValue() or (children().count() > id.count())" /> 168 <xpath value="@value|f:*|h:div" /> 169 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 170 </constraint> 171 <constraint> 172 <key value="ext-1" /> 173 <severity value="error" /> 174 <human value="Must have either extensions or value[x], not both" /> 175 <expression value="extension.exists() != value.exists()" /> 176 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 177 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 178 </constraint> 179 <isModifier value="false" /> 180 <isSummary value="false" /> 181 </element> 182 <element id="Extension.url"> 183 <path value="Extension.url" /> 184 <representation value="xmlAttr" /> 185 <short value="identifies the meaning of the extension" /> 186 <definition value="Source of the definition for the extension code - a logical name or a URL." /> 187 <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." /> 188 <min value="1" /> 189 <max value="1" /> 190 <base> 191 <path value="Extension.url" /> 192 <min value="1" /> 193 <max value="1" /> 194 </base> 195 <type> 196 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 197 <valueUrl value="uri" /> 198 </extension> 199 <code value="http://hl7.org/fhirpath/System.String" /> 200 </type> 201 <fixedUri value="http://hl7.org/fhir/StructureDefinition/workflow-instantiatesCanonical" /> 202 <isModifier value="false" /> 203 <isSummary value="false" /> 204 <mapping> 205 <identity value="rim" /> 206 <map value="N/A" /> 207 </mapping> 208 </element> 209 <element id="Extension.value[x]"> 210 <path value="Extension.value[x]" /> 211 <short value="Value of extension" /> 212 <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)." /> 213 <min value="1" /> 214 <max value="1" /> 215 <base> 216 <path value="Extension.value[x]" /> 217 <min value="0" /> 218 <max value="1" /> 219 </base> 220 <type> 221 <code value="canonical" /> 222 <targetProfile value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" /> 223 <targetProfile value="http://hl7.org/fhir/StructureDefinition/Measure" /> 224 <targetProfile value="http://hl7.org/fhir/StructureDefinition/OperationDefinition" /> 225 <targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" /> 226 <targetProfile value="http://hl7.org/fhir/StructureDefinition/Questionnaire" /> 227 </type> 228 <constraint> 229 <key value="ele-1" /> 230 <severity value="error" /> 231 <human value="All FHIR elements must have a @value or children" /> 232 <expression value="hasValue() or (children().count() > id.count())" /> 233 <xpath value="@value|f:*|h:div" /> 234 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 235 </constraint> 236 <isModifier value="false" /> 237 <isSummary value="false" /> 238 <mapping> 239 <identity value="rim" /> 240 <map value="N/A" /> 241 </mapping> 242 </element> 243 </snapshot> 244 <differential> 245 <element id="Extension"> 246 <path value="Extension" /> 247 <short value="FHIR protocol or definition" /> 248 <definition value="The URL pointing to a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by the event or request resource." /> 249 <min value="0" /> 250 <max value="*" /> 251 <mapping> 252 <identity value="workflow" /> 253 <map value="Event.instantiates" /> 254 </mapping> 255 <mapping> 256 <identity value="v2" /> 257 <map value="Varies by domain" /> 258 </mapping> 259 <mapping> 260 <identity value="rim" /> 261 <map value=".outboundRelationship[typeCode=DEFN].target" /> 262 </mapping> 263 </element> 264 <element id="Extension.extension"> 265 <path value="Extension.extension" /> 266 <max value="0" /> 267 </element> 268 <element id="Extension.url"> 269 <path value="Extension.url" /> 270 <fixedUri value="http://hl7.org/fhir/StructureDefinition/workflow-instantiatesCanonical" /> 271 </element> 272 <element id="Extension.value[x]"> 273 <path value="Extension.value[x]" /> 274 <min value="1" /> 275 <type> 276 <code value="canonical" /> 277 <targetProfile value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" /> 278 <targetProfile value="http://hl7.org/fhir/StructureDefinition/Measure" /> 279 <targetProfile value="http://hl7.org/fhir/StructureDefinition/OperationDefinition" /> 280 <targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" /> 281 <targetProfile value="http://hl7.org/fhir/StructureDefinition/Questionnaire" /> 282 </type> 283 </element> 284 </differential> 285 </StructureDefinition>