StructureDefinition-sdc-questionnaire-observationExtract.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <StructureDefinition xmlns="http://hl7.org/fhir"> 3 <id value="sdc-questionnaire-observationExtract" /> 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="4"> 9 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom"> 10 <valueCanonical value="http://hl7.org/fhir/uv/sdc/ImplementationGuide/hl7.fhir.uv.sdc" /> 11 </extension> 12 </valueInteger> 13 </extension> 14 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"> 15 <valueCode value="trial-use"> 16 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom"> 17 <valueCanonical value="http://hl7.org/fhir/uv/sdc/ImplementationGuide/hl7.fhir.uv.sdc" /> 18 </extension> 19 </valueCode> 20 </extension> 21 <url value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-observationExtract" /> 22 <identifier> 23 <system value="urn:ietf:rfc:3986" /> 24 <value value="urn:oid:2.16.840.1.113883.4.642.40.17.42.40" /> 25 </identifier> 26 <version value="4.0.0-ballot" /> 27 <name value="ObservationExtractExtension" /> 28 <title value="Extract Observation" /> 29 <status value="active" /> 30 <date value="2024-12-22T04:48:38.0000000+01:00" /> 31 <publisher value="HL7 International / FHIR Infrastructure" /> 32 <contact> 33 <name value="HL7 International / FHIR Infrastructure" /> 34 <telecom> 35 <system value="url" /> 36 <value value="http://www.hl7.org/Special/committees/fiwg" /> 37 </telecom> 38 </contact> 39 <contact> 40 <telecom> 41 <system value="url" /> 42 <value value="http://www.hl7.org/Special/committees/fiwg" /> 43 </telecom> 44 </contact> 45 <description value="Indicates how the observation-based extraction approach should be applied to an item or all items in a questionnaire. When set to `true`, the item is extracted as an independent Observation with no relationship to a parent Observation (If true, indicates that the observation-based approach should be used to extract either the particular item (if extension is defined on an individual question or group based on the code present) or all items in the questionnaire (if defined at the questionnaire root and if they have a code present)). When set to a `code` value (e.g., `member` or `component`), the extracted Observation is related to a parent Observation according to the specified relationship. Mixing `boolean` and `code` values within the same item is invalid and will result in an error." /> 46 <jurisdiction> 47 <coding> 48 <system value="http://unstats.un.org/unsd/methods/m49/m49.htm" /> 49 <code value="001" /> 50 <display value="World" /> 51 </coding> 52 </jurisdiction> 53 <fhirVersion value="4.0.1" /> 54 <mapping> 55 <identity value="rim" /> 56 <uri value="http://hl7.org/v3" /> 57 <name value="RIM Mapping" /> 58 </mapping> 59 <kind value="complex-type" /> 60 <abstract value="false" /> 61 <context> 62 <type value="element" /> 63 <expression value="Questionnaire" /> 64 </context> 65 <context> 66 <type value="element" /> 67 <expression value="Questionnaire.item" /> 68 </context> 69 <context> 70 <type value="element" /> 71 <expression value="Questionnaire.item.code" /> 72 </context> 73 <context> 74 <type value="element" /> 75 <expression value="ElementDefinition" /> 76 </context> 77 <type value="Extension" /> 78 <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" /> 79 <derivation value="constraint" /> 80 <snapshot> 81 <element id="Extension"> 82 <path value="Extension" /> 83 <short value="Marks an item (or all items in a questionnaire) to be extracted using the observation-based approach" /> 84 <definition value="Indicates how the observation-based extraction approach should be applied to an item or all items in a questionnaire. When set to `true`, the item is extracted as an independent Observation with no relationship to a parent Observation (If true, indicates that the observation-based approach should be used to extract either the particular item (if extension is defined on an individual question or group based on the code present) or all items in the questionnaire (if defined at the questionnaire root and if they have a code present)). When set to a `code` value (e.g., `member` or `component`), the extracted Observation is related to a parent Observation according to the specified relationship. Mixing `boolean` and `code` values within the same item is invalid and will result in an error." /> 85 <comment value="This extension canot be specified on "display" items." /> 86 <min value="0" /> 87 <max value="1" /> 88 <base> 89 <path value="Extension" /> 90 <min value="0" /> 91 <max value="*" /> 92 </base> 93 <condition value="ele-1" /> 94 <constraint> 95 <key value="ele-1" /> 96 <severity value="error" /> 97 <human value="All FHIR elements must have a @value or children" /> 98 <expression value="hasValue() or (children().count() > id.count())" /> 99 <xpath value="@value|f:*|h:div" /> 100 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 101 </constraint> 102 <constraint> 103 <key value="ext-1" /> 104 <severity value="error" /> 105 <human value="Must have either extensions or value[x], not both" /> 106 <expression value="extension.exists() != value.exists()" /> 107 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" /> 108 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 109 </constraint> 110 <isModifier value="false" /> 111 </element> 112 <element id="Extension.id"> 113 <path value="Extension.id" /> 114 <representation value="xmlAttr" /> 115 <short value="Unique id for inter-element referencing" /> 116 <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." /> 117 <min value="0" /> 118 <max value="1" /> 119 <base> 120 <path value="Element.id" /> 121 <min value="0" /> 122 <max value="1" /> 123 </base> 124 <type> 125 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 126 <valueUrl value="string" /> 127 </extension> 128 <code value="http://hl7.org/fhirpath/System.String" /> 129 </type> 130 <isModifier value="false" /> 131 <isSummary value="false" /> 132 <mapping> 133 <identity value="rim" /> 134 <map value="n/a" /> 135 </mapping> 136 </element> 137 <element id="Extension.extension"> 138 <path value="Extension.extension" /> 139 <slicing> 140 <discriminator> 141 <type value="value" /> 142 <path value="url" /> 143 </discriminator> 144 <description value="Extensions are always sliced by (at least) url" /> 145 <rules value="open" /> 146 </slicing> 147 <short value="Extension" /> 148 <definition value="An Extension" /> 149 <min value="0" /> 150 <max value="0" /> 151 <base> 152 <path value="Element.extension" /> 153 <min value="0" /> 154 <max value="*" /> 155 </base> 156 <type> 157 <code value="Extension" /> 158 </type> 159 <constraint> 160 <key value="ele-1" /> 161 <severity value="error" /> 162 <human value="All FHIR elements must have a @value or children" /> 163 <expression value="hasValue() or (children().count() > id.count())" /> 164 <xpath value="@value|f:*|h:div" /> 165 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 166 </constraint> 167 <constraint> 168 <key value="ext-1" /> 169 <severity value="error" /> 170 <human value="Must have either extensions or value[x], not both" /> 171 <expression value="extension.exists() != value.exists()" /> 172 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 173 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 174 </constraint> 175 <isModifier value="false" /> 176 <isSummary value="false" /> 177 </element> 178 <element id="Extension.url"> 179 <path value="Extension.url" /> 180 <representation value="xmlAttr" /> 181 <short value="identifies the meaning of the extension" /> 182 <definition value="Source of the definition for the extension code - a logical name or a URL." /> 183 <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." /> 184 <min value="1" /> 185 <max value="1" /> 186 <base> 187 <path value="Extension.url" /> 188 <min value="1" /> 189 <max value="1" /> 190 </base> 191 <type> 192 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 193 <valueUrl value="uri" /> 194 </extension> 195 <code value="http://hl7.org/fhirpath/System.String" /> 196 </type> 197 <fixedUri value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-observationExtract" /> 198 <isModifier value="false" /> 199 <isSummary value="false" /> 200 <mapping> 201 <identity value="rim" /> 202 <map value="N/A" /> 203 </mapping> 204 </element> 205 <element id="Extension.value[x]"> 206 <path value="Extension.value[x]" /> 207 <short value="Value of extension" /> 208 <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list)." /> 209 <min value="0" /> 210 <max value="1" /> 211 <base> 212 <path value="Extension.value[x]" /> 213 <min value="0" /> 214 <max value="1" /> 215 </base> 216 <type> 217 <code value="boolean" /> 218 </type> 219 <type> 220 <code value="code" /> 221 </type> 222 <constraint> 223 <key value="ele-1" /> 224 <severity value="error" /> 225 <human value="All FHIR elements must have a @value or children" /> 226 <expression value="hasValue() or (children().count() > id.count())" /> 227 <xpath value="@value|f:*|h:div" /> 228 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 229 </constraint> 230 <isModifier value="false" /> 231 <isSummary value="false" /> 232 <binding> 233 <strength value="required" /> 234 <valueSet value="http://hl7.org/fhir/uv/sdc/ValueSet/observation-extract-relationship" /> 235 </binding> 236 <mapping> 237 <identity value="rim" /> 238 <map value="N/A" /> 239 </mapping> 240 </element> 241 </snapshot> 242 <differential> 243 <element id="Extension"> 244 <path value="Extension" /> 245 <short value="Marks an item (or all items in a questionnaire) to be extracted using the observation-based approach" /> 246 <definition value="Indicates how the observation-based extraction approach should be applied to an item or all items in a questionnaire. When set to `true`, the item is extracted as an independent Observation with no relationship to a parent Observation (If true, indicates that the observation-based approach should be used to extract either the particular item (if extension is defined on an individual question or group based on the code present) or all items in the questionnaire (if defined at the questionnaire root and if they have a code present)). When set to a `code` value (e.g., `member` or `component`), the extracted Observation is related to a parent Observation according to the specified relationship. Mixing `boolean` and `code` values within the same item is invalid and will result in an error." /> 247 <comment value="This extension canot be specified on "display" items." /> 248 <max value="1" /> 249 </element> 250 <element id="Extension.extension"> 251 <path value="Extension.extension" /> 252 <max value="0" /> 253 </element> 254 <element id="Extension.url"> 255 <path value="Extension.url" /> 256 <fixedUri value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-observationExtract" /> 257 </element> 258 <element id="Extension.value[x]"> 259 <path value="Extension.value[x]" /> 260 <type> 261 <code value="boolean" /> 262 </type> 263 <type> 264 <code value="code" /> 265 </type> 266 <binding> 267 <strength value="required" /> 268 <valueSet value="http://hl7.org/fhir/uv/sdc/ValueSet/observation-extract-relationship" /> 269 </binding> 270 </element> 271 </differential> 272 </StructureDefinition>