StructureDefinition-sdc-questionnaire-itemMedia.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <StructureDefinition xmlns="http://hl7.org/fhir"> 3 <id value="sdc-questionnaire-itemMedia" /> 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-itemMedia" /> 22 <identifier> 23 <system value="urn:ietf:rfc:3986" /> 24 <value value="urn:oid:2.16.840.1.113883.4.642.40.17.42.32" /> 25 </identifier> 26 <version value="4.0.0-ballot" /> 27 <name value="ItemMedia" /> 28 <title value="Item Media" /> 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="Media to render/make available as an accompaniment to the question being asked, for example - an image, video or audio clip. This does not replace the need for item.text. The attachment.text SHOULD be present as the alternative/accessibility text for systems unable to expose the media and users unable to consume it. Media.contentType SHALL be present. When included in a QuestionnaireResponse it SHALL be the same as the media for the same item in the Questionnaire." /> 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 <purpose value="Need to be able to provide a visual representation of the question being asked." /> 54 <fhirVersion value="4.0.1" /> 55 <mapping> 56 <identity value="rim" /> 57 <uri value="http://hl7.org/v3" /> 58 <name value="RIM Mapping" /> 59 </mapping> 60 <kind value="complex-type" /> 61 <abstract value="false" /> 62 <context> 63 <type value="element" /> 64 <expression value="Questionnaire.item" /> 65 </context> 66 <context> 67 <type value="element" /> 68 <expression value="QuestionnaireResponse.item" /> 69 </context> 70 <context> 71 <type value="element" /> 72 <expression value="ElementDefinition" /> 73 </context> 74 <type value="Extension" /> 75 <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" /> 76 <derivation value="constraint" /> 77 <snapshot> 78 <element id="Extension"> 79 <path value="Extension" /> 80 <short value="Media to display" /> 81 <definition value="Media to render/make available as an accompaniment to the question being asked" /> 82 <min value="0" /> 83 <max value="1" /> 84 <base> 85 <path value="Extension" /> 86 <min value="0" /> 87 <max value="*" /> 88 </base> 89 <condition value="ele-1" /> 90 <constraint> 91 <key value="ele-1" /> 92 <severity value="error" /> 93 <human value="All FHIR elements must have a @value or children" /> 94 <expression value="hasValue() or (children().count() > id.count())" /> 95 <xpath value="@value|f:*|h:div" /> 96 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 97 </constraint> 98 <constraint> 99 <key value="ext-1" /> 100 <severity value="error" /> 101 <human value="Must have either extensions or value[x], not both" /> 102 <expression value="extension.exists() != value.exists()" /> 103 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" /> 104 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 105 </constraint> 106 <isModifier value="false" /> 107 </element> 108 <element id="Extension.id"> 109 <path value="Extension.id" /> 110 <representation value="xmlAttr" /> 111 <short value="Unique id for inter-element referencing" /> 112 <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." /> 113 <min value="0" /> 114 <max value="1" /> 115 <base> 116 <path value="Element.id" /> 117 <min value="0" /> 118 <max value="1" /> 119 </base> 120 <type> 121 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 122 <valueUrl value="string" /> 123 </extension> 124 <code value="http://hl7.org/fhirpath/System.String" /> 125 </type> 126 <isModifier value="false" /> 127 <isSummary value="false" /> 128 <mapping> 129 <identity value="rim" /> 130 <map value="n/a" /> 131 </mapping> 132 </element> 133 <element id="Extension.extension"> 134 <path value="Extension.extension" /> 135 <slicing> 136 <discriminator> 137 <type value="value" /> 138 <path value="url" /> 139 </discriminator> 140 <description value="Extensions are always sliced by (at least) url" /> 141 <rules value="open" /> 142 </slicing> 143 <short value="Extension" /> 144 <definition value="An Extension" /> 145 <min value="0" /> 146 <max value="0" /> 147 <base> 148 <path value="Element.extension" /> 149 <min value="0" /> 150 <max value="*" /> 151 </base> 152 <type> 153 <code value="Extension" /> 154 </type> 155 <constraint> 156 <key value="ele-1" /> 157 <severity value="error" /> 158 <human value="All FHIR elements must have a @value or children" /> 159 <expression value="hasValue() or (children().count() > id.count())" /> 160 <xpath value="@value|f:*|h:div" /> 161 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 162 </constraint> 163 <constraint> 164 <key value="ext-1" /> 165 <severity value="error" /> 166 <human value="Must have either extensions or value[x], not both" /> 167 <expression value="extension.exists() != value.exists()" /> 168 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 169 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 170 </constraint> 171 <isModifier value="false" /> 172 <isSummary value="false" /> 173 </element> 174 <element id="Extension.url"> 175 <path value="Extension.url" /> 176 <representation value="xmlAttr" /> 177 <short value="identifies the meaning of the extension" /> 178 <definition value="Source of the definition for the extension code - a logical name or a URL." /> 179 <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." /> 180 <min value="1" /> 181 <max value="1" /> 182 <base> 183 <path value="Extension.url" /> 184 <min value="1" /> 185 <max value="1" /> 186 </base> 187 <type> 188 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 189 <valueUrl value="uri" /> 190 </extension> 191 <code value="http://hl7.org/fhirpath/System.String" /> 192 </type> 193 <fixedUri value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemMedia" /> 194 <isModifier value="false" /> 195 <isSummary value="false" /> 196 <mapping> 197 <identity value="rim" /> 198 <map value="N/A" /> 199 </mapping> 200 </element> 201 <element id="Extension.value[x]"> 202 <path value="Extension.value[x]" /> 203 <short value="Value of extension" /> 204 <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)." /> 205 <min value="0" /> 206 <max value="1" /> 207 <base> 208 <path value="Extension.value[x]" /> 209 <min value="0" /> 210 <max value="1" /> 211 </base> 212 <type> 213 <code value="Attachment" /> 214 </type> 215 <constraint> 216 <key value="ele-1" /> 217 <severity value="error" /> 218 <human value="All FHIR elements must have a @value or children" /> 219 <expression value="hasValue() or (children().count() > id.count())" /> 220 <xpath value="@value|f:*|h:div" /> 221 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 222 </constraint> 223 <isModifier value="false" /> 224 <isSummary value="false" /> 225 <mapping> 226 <identity value="rim" /> 227 <map value="N/A" /> 228 </mapping> 229 </element> 230 </snapshot> 231 <differential> 232 <element id="Extension"> 233 <path value="Extension" /> 234 <short value="Media to display" /> 235 <definition value="Media to render/make available as an accompaniment to the question being asked" /> 236 <max value="1" /> 237 </element> 238 <element id="Extension.extension"> 239 <path value="Extension.extension" /> 240 <max value="0" /> 241 </element> 242 <element id="Extension.url"> 243 <path value="Extension.url" /> 244 <fixedUri value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemMedia" /> 245 </element> 246 <element id="Extension.value[x]"> 247 <path value="Extension.value[x]" /> 248 <type> 249 <code value="Attachment" /> 250 </type> 251 </element> 252 </differential> 253 </StructureDefinition>