StructureDefinition-sdc-questionnaire-collapsible.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <StructureDefinition xmlns="http://hl7.org/fhir"> 3 <id value="sdc-questionnaire-collapsible" /> 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-collapsible" /> 22 <identifier> 23 <system value="urn:ietf:rfc:3986" /> 24 <value value="urn:oid:2.16.840.1.113883.4.642.40.17.42.20" /> 25 </identifier> 26 <version value="4.0.0-ballot" /> 27 <name value="CollapsibleExtension" /> 28 <title value="Collapsible" /> 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 whether the child items of a group or question item is displayed in collapsible form." /> 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.item" /> 64 </context> 65 <context> 66 <type value="element" /> 67 <expression value="ElementDefinition" /> 68 </context> 69 <type value="Extension" /> 70 <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" /> 71 <derivation value="constraint" /> 72 <snapshot> 73 <element id="Extension"> 74 <path value="Extension" /> 75 <short value="Indicates whether the child items of a group or question item is displayed in collapsible form." /> 76 <definition value="Indicates whether the child items of a group or question item is displayed in collapsible form." /> 77 <min value="0" /> 78 <max value="1" /> 79 <base> 80 <path value="Extension" /> 81 <min value="0" /> 82 <max value="*" /> 83 </base> 84 <condition value="ele-1" /> 85 <constraint> 86 <key value="ele-1" /> 87 <severity value="error" /> 88 <human value="All FHIR elements must have a @value or children" /> 89 <expression value="hasValue() or (children().count() > id.count())" /> 90 <xpath value="@value|f:*|h:div" /> 91 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 92 </constraint> 93 <constraint> 94 <key value="ext-1" /> 95 <severity value="error" /> 96 <human value="Must have either extensions or value[x], not both" /> 97 <expression value="extension.exists() != value.exists()" /> 98 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" /> 99 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 100 </constraint> 101 <isModifier value="false" /> 102 </element> 103 <element id="Extension.id"> 104 <path value="Extension.id" /> 105 <representation value="xmlAttr" /> 106 <short value="Unique id for inter-element referencing" /> 107 <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." /> 108 <min value="0" /> 109 <max value="1" /> 110 <base> 111 <path value="Element.id" /> 112 <min value="0" /> 113 <max value="1" /> 114 </base> 115 <type> 116 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 117 <valueUrl value="string" /> 118 </extension> 119 <code value="http://hl7.org/fhirpath/System.String" /> 120 </type> 121 <isModifier value="false" /> 122 <isSummary value="false" /> 123 <mapping> 124 <identity value="rim" /> 125 <map value="n/a" /> 126 </mapping> 127 </element> 128 <element id="Extension.extension"> 129 <path value="Extension.extension" /> 130 <slicing> 131 <discriminator> 132 <type value="value" /> 133 <path value="url" /> 134 </discriminator> 135 <description value="Extensions are always sliced by (at least) url" /> 136 <rules value="open" /> 137 </slicing> 138 <short value="Extension" /> 139 <definition value="An Extension" /> 140 <min value="0" /> 141 <max value="0" /> 142 <base> 143 <path value="Element.extension" /> 144 <min value="0" /> 145 <max value="*" /> 146 </base> 147 <type> 148 <code value="Extension" /> 149 </type> 150 <constraint> 151 <key value="ele-1" /> 152 <severity value="error" /> 153 <human value="All FHIR elements must have a @value or children" /> 154 <expression value="hasValue() or (children().count() > id.count())" /> 155 <xpath value="@value|f:*|h:div" /> 156 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 157 </constraint> 158 <constraint> 159 <key value="ext-1" /> 160 <severity value="error" /> 161 <human value="Must have either extensions or value[x], not both" /> 162 <expression value="extension.exists() != value.exists()" /> 163 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 164 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 165 </constraint> 166 <isModifier value="false" /> 167 <isSummary value="false" /> 168 </element> 169 <element id="Extension.url"> 170 <path value="Extension.url" /> 171 <representation value="xmlAttr" /> 172 <short value="identifies the meaning of the extension" /> 173 <definition value="Source of the definition for the extension code - a logical name or a URL." /> 174 <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." /> 175 <min value="1" /> 176 <max value="1" /> 177 <base> 178 <path value="Extension.url" /> 179 <min value="1" /> 180 <max value="1" /> 181 </base> 182 <type> 183 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 184 <valueUrl value="uri" /> 185 </extension> 186 <code value="http://hl7.org/fhirpath/System.String" /> 187 </type> 188 <fixedUri value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-collapsible" /> 189 <isModifier value="false" /> 190 <isSummary value="false" /> 191 <mapping> 192 <identity value="rim" /> 193 <map value="N/A" /> 194 </mapping> 195 </element> 196 <element id="Extension.value[x]"> 197 <path value="Extension.value[x]" /> 198 <short value="Value of extension" /> 199 <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)." /> 200 <min value="0" /> 201 <max value="1" /> 202 <base> 203 <path value="Extension.value[x]" /> 204 <min value="0" /> 205 <max value="1" /> 206 </base> 207 <type> 208 <code value="code" /> 209 </type> 210 <constraint> 211 <key value="ele-1" /> 212 <severity value="error" /> 213 <human value="All FHIR elements must have a @value or children" /> 214 <expression value="hasValue() or (children().count() > id.count())" /> 215 <xpath value="@value|f:*|h:div" /> 216 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 217 </constraint> 218 <isModifier value="false" /> 219 <isSummary value="false" /> 220 <binding> 221 <strength value="required" /> 222 <description value="Defines mechanism of displaying child items." /> 223 <valueSet value="http://hl7.org/fhir/uv/sdc/ValueSet/collapsible" /> 224 </binding> 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="Indicates whether the child items of a group or question item is displayed in collapsible form." /> 235 <definition value="Indicates whether the child items of a group or question item is displayed in collapsible form." /> 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-collapsible" /> 245 </element> 246 <element id="Extension.value[x]"> 247 <path value="Extension.value[x]" /> 248 <type> 249 <code value="code" /> 250 </type> 251 <binding> 252 <strength value="required" /> 253 <description value="Defines mechanism of displaying child items." /> 254 <valueSet value="http://hl7.org/fhir/uv/sdc/ValueSet/collapsible" /> 255 </binding> 256 </element> 257 </differential> 258 </StructureDefinition>