StructureDefinition-sdc-questionnaire-answerOptionsToggleExpression.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <StructureDefinition xmlns="http://hl7.org/fhir"> 3 <id value="sdc-questionnaire-answerOptionsToggleExpression" /> 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-answerOptionsToggleExpression" /> 22 <identifier> 23 <system value="urn:ietf:rfc:3986" /> 24 <value value="urn:oid:2.16.840.1.113883.4.642.40.17.42.12" /> 25 </identifier> 26 <version value="4.0.0-ballot" /> 27 <name value="AnswerOptionsToggleExpressionExtension" /> 28 <title value="Answer Options Toggle Expression" /> 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="A complex expression that provides a list of the allowed options that should be enabled or disabled based on the evaluation of a provided expression. It allows toggling of allowed answers based on context, including the answers provided to other expressions. Any options not listed by one of the answerOptionsToggleExpression occurrences are presumed to be 'enabled'" /> 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="This is used when the set of options are fixed, but there is a need to toggle some of them on or off (as opposed to having the entire set of options dynamic, as is supported by answerExpression)." /> 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="ElementDefinition" /> 69 </context> 70 <contextInvariant value="ofType(ElementDefinition).type.exists(code='Coding') or where(%resource.is(Questionnaire)).exists(type.first()='choice' or type.first()='open-choice')" /> 71 <type value="Extension" /> 72 <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" /> 73 <derivation value="constraint" /> 74 <snapshot> 75 <element id="Extension"> 76 <path value="Extension" /> 77 <short value="Expression constraining allowed answers" /> 78 <definition value="A complex expression that provides a list of the allowed options that should be enabled or disabled based on the evaluation of a provided expression. It allows toggling of allowed answers based on context, including the answers provided to other expressions." /> 79 <comment value="For example, this allows a list of conditions to be modified based on the gender of the patient" /> 80 <min value="0" /> 81 <max value="*" /> 82 <base> 83 <path value="Extension" /> 84 <min value="0" /> 85 <max value="*" /> 86 </base> 87 <condition value="ele-1" /> 88 <constraint> 89 <key value="ele-1" /> 90 <severity value="error" /> 91 <human value="All FHIR elements must have a @value or children" /> 92 <expression value="hasValue() or (children().count() > id.count())" /> 93 <xpath value="@value|f:*|h:div" /> 94 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 95 </constraint> 96 <constraint> 97 <key value="ext-1" /> 98 <severity value="error" /> 99 <human value="Must have either extensions or value[x], not both" /> 100 <expression value="extension.exists() != value.exists()" /> 101 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" /> 102 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 103 </constraint> 104 <isModifier value="false" /> 105 </element> 106 <element id="Extension.id"> 107 <path value="Extension.id" /> 108 <representation value="xmlAttr" /> 109 <short value="Unique id for inter-element referencing" /> 110 <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." /> 111 <min value="0" /> 112 <max value="1" /> 113 <base> 114 <path value="Element.id" /> 115 <min value="0" /> 116 <max value="1" /> 117 </base> 118 <type> 119 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 120 <valueUrl value="string" /> 121 </extension> 122 <code value="http://hl7.org/fhirpath/System.String" /> 123 </type> 124 <isModifier value="false" /> 125 <isSummary value="false" /> 126 <mapping> 127 <identity value="rim" /> 128 <map value="n/a" /> 129 </mapping> 130 </element> 131 <element id="Extension.extension"> 132 <path value="Extension.extension" /> 133 <slicing> 134 <discriminator> 135 <type value="value" /> 136 <path value="url" /> 137 </discriminator> 138 <description value="Extensions are always sliced by (at least) url" /> 139 <rules value="open" /> 140 </slicing> 141 <short value="Extension" /> 142 <definition value="An Extension" /> 143 <min value="2" /> 144 <max value="*" /> 145 <base> 146 <path value="Element.extension" /> 147 <min value="0" /> 148 <max value="*" /> 149 </base> 150 <type> 151 <code value="Extension" /> 152 </type> 153 <constraint> 154 <key value="ele-1" /> 155 <severity value="error" /> 156 <human value="All FHIR elements must have a @value or children" /> 157 <expression value="hasValue() or (children().count() > id.count())" /> 158 <xpath value="@value|f:*|h:div" /> 159 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 160 </constraint> 161 <constraint> 162 <key value="ext-1" /> 163 <severity value="error" /> 164 <human value="Must have either extensions or value[x], not both" /> 165 <expression value="extension.exists() != value.exists()" /> 166 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 167 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 168 </constraint> 169 <isModifier value="false" /> 170 <isSummary value="false" /> 171 </element> 172 <element id="Extension.extension:option"> 173 <path value="Extension.extension" /> 174 <sliceName value="option" /> 175 <short value="Option(s) to toggle" /> 176 <definition value="Each repetition is an option to toggle based on the expression" /> 177 <min value="1" /> 178 <max value="*" /> 179 <base> 180 <path value="Element.extension" /> 181 <min value="0" /> 182 <max value="*" /> 183 </base> 184 <type> 185 <code value="Extension" /> 186 </type> 187 <constraint> 188 <key value="ele-1" /> 189 <severity value="error" /> 190 <human value="All FHIR elements must have a @value or children" /> 191 <expression value="hasValue() or (children().count() > id.count())" /> 192 <xpath value="@value|f:*|h:div" /> 193 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 194 </constraint> 195 <constraint> 196 <key value="ext-1" /> 197 <severity value="error" /> 198 <human value="Must have either extensions or value[x], not both" /> 199 <expression value="extension.exists() != value.exists()" /> 200 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 201 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 202 </constraint> 203 <isModifier value="false" /> 204 <isSummary value="false" /> 205 </element> 206 <element id="Extension.extension:option.id"> 207 <path value="Extension.extension.id" /> 208 <representation value="xmlAttr" /> 209 <short value="Unique id for inter-element referencing" /> 210 <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." /> 211 <min value="0" /> 212 <max value="1" /> 213 <base> 214 <path value="Element.id" /> 215 <min value="0" /> 216 <max value="1" /> 217 </base> 218 <type> 219 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 220 <valueUrl value="string" /> 221 </extension> 222 <code value="http://hl7.org/fhirpath/System.String" /> 223 </type> 224 <isModifier value="false" /> 225 <isSummary value="false" /> 226 <mapping> 227 <identity value="rim" /> 228 <map value="n/a" /> 229 </mapping> 230 </element> 231 <element id="Extension.extension:option.extension"> 232 <path value="Extension.extension.extension" /> 233 <slicing> 234 <discriminator> 235 <type value="value" /> 236 <path value="url" /> 237 </discriminator> 238 <description value="Extensions are always sliced by (at least) url" /> 239 <rules value="open" /> 240 </slicing> 241 <short value="Extension" /> 242 <definition value="An Extension" /> 243 <min value="0" /> 244 <max value="0" /> 245 <base> 246 <path value="Element.extension" /> 247 <min value="0" /> 248 <max value="*" /> 249 </base> 250 <type> 251 <code value="Extension" /> 252 </type> 253 <constraint> 254 <key value="ele-1" /> 255 <severity value="error" /> 256 <human value="All FHIR elements must have a @value or children" /> 257 <expression value="hasValue() or (children().count() > id.count())" /> 258 <xpath value="@value|f:*|h:div" /> 259 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 260 </constraint> 261 <constraint> 262 <key value="ext-1" /> 263 <severity value="error" /> 264 <human value="Must have either extensions or value[x], not both" /> 265 <expression value="extension.exists() != value.exists()" /> 266 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 267 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 268 </constraint> 269 <isModifier value="false" /> 270 <isSummary value="false" /> 271 </element> 272 <element id="Extension.extension:option.url"> 273 <path value="Extension.extension.url" /> 274 <representation value="xmlAttr" /> 275 <short value="identifies the meaning of the extension" /> 276 <definition value="Source of the definition for the extension code - a logical name or a URL." /> 277 <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." /> 278 <min value="1" /> 279 <max value="1" /> 280 <base> 281 <path value="Extension.url" /> 282 <min value="1" /> 283 <max value="1" /> 284 </base> 285 <type> 286 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 287 <valueUrl value="uri" /> 288 </extension> 289 <code value="http://hl7.org/fhirpath/System.String" /> 290 </type> 291 <fixedUri value="option" /> 292 <isModifier value="false" /> 293 <isSummary value="false" /> 294 <mapping> 295 <identity value="rim" /> 296 <map value="N/A" /> 297 </mapping> 298 </element> 299 <element id="Extension.extension:option.value[x]"> 300 <path value="Extension.extension.value[x]" /> 301 <short value="The option value to control" /> 302 <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)." /> 303 <min value="1" /> 304 <max value="1" /> 305 <base> 306 <path value="Extension.value[x]" /> 307 <min value="0" /> 308 <max value="1" /> 309 </base> 310 <type> 311 <code value="base64Binary" /> 312 </type> 313 <type> 314 <code value="boolean" /> 315 </type> 316 <type> 317 <code value="canonical" /> 318 </type> 319 <type> 320 <code value="code" /> 321 </type> 322 <type> 323 <code value="date" /> 324 </type> 325 <type> 326 <code value="dateTime" /> 327 </type> 328 <type> 329 <code value="decimal" /> 330 </type> 331 <type> 332 <code value="id" /> 333 </type> 334 <type> 335 <code value="instant" /> 336 </type> 337 <type> 338 <code value="integer" /> 339 </type> 340 <type> 341 <code value="markdown" /> 342 </type> 343 <type> 344 <code value="oid" /> 345 </type> 346 <type> 347 <code value="positiveInt" /> 348 </type> 349 <type> 350 <code value="string" /> 351 </type> 352 <type> 353 <code value="time" /> 354 </type> 355 <type> 356 <code value="unsignedInt" /> 357 </type> 358 <type> 359 <code value="uri" /> 360 </type> 361 <type> 362 <code value="url" /> 363 </type> 364 <type> 365 <code value="uuid" /> 366 </type> 367 <type> 368 <code value="Address" /> 369 </type> 370 <type> 371 <code value="Age" /> 372 </type> 373 <type> 374 <code value="Annotation" /> 375 </type> 376 <type> 377 <code value="Attachment" /> 378 </type> 379 <type> 380 <code value="CodeableConcept" /> 381 </type> 382 <type> 383 <code value="Coding" /> 384 </type> 385 <type> 386 <code value="ContactPoint" /> 387 </type> 388 <type> 389 <code value="Count" /> 390 </type> 391 <type> 392 <code value="Distance" /> 393 </type> 394 <type> 395 <code value="Duration" /> 396 </type> 397 <type> 398 <code value="HumanName" /> 399 </type> 400 <type> 401 <code value="Identifier" /> 402 </type> 403 <type> 404 <code value="Money" /> 405 </type> 406 <type> 407 <code value="Period" /> 408 </type> 409 <type> 410 <code value="Quantity" /> 411 </type> 412 <type> 413 <code value="Range" /> 414 </type> 415 <type> 416 <code value="Ratio" /> 417 </type> 418 <type> 419 <code value="Reference" /> 420 </type> 421 <type> 422 <code value="SampledData" /> 423 </type> 424 <type> 425 <code value="Signature" /> 426 </type> 427 <type> 428 <code value="Timing" /> 429 </type> 430 <type> 431 <code value="ContactDetail" /> 432 </type> 433 <type> 434 <code value="Contributor" /> 435 </type> 436 <type> 437 <code value="DataRequirement" /> 438 </type> 439 <type> 440 <code value="Expression" /> 441 </type> 442 <type> 443 <code value="ParameterDefinition" /> 444 </type> 445 <type> 446 <code value="RelatedArtifact" /> 447 </type> 448 <type> 449 <code value="TriggerDefinition" /> 450 </type> 451 <type> 452 <code value="UsageContext" /> 453 </type> 454 <type> 455 <code value="Dosage" /> 456 </type> 457 <type> 458 <code value="Meta" /> 459 </type> 460 <constraint> 461 <key value="ele-1" /> 462 <severity value="error" /> 463 <human value="All FHIR elements must have a @value or children" /> 464 <expression value="hasValue() or (children().count() > id.count())" /> 465 <xpath value="@value|f:*|h:div" /> 466 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 467 </constraint> 468 <isModifier value="false" /> 469 <isSummary value="false" /> 470 <mapping> 471 <identity value="rim" /> 472 <map value="N/A" /> 473 </mapping> 474 </element> 475 <element id="Extension.extension:expression"> 476 <path value="Extension.extension" /> 477 <sliceName value="expression" /> 478 <short value="The expression to toggle on" /> 479 <definition value="If this expression evaluate's to 'true', then the specified options should be enabled, otherwise they should be disabled." /> 480 <min value="1" /> 481 <max value="1" /> 482 <base> 483 <path value="Element.extension" /> 484 <min value="0" /> 485 <max value="*" /> 486 </base> 487 <type> 488 <code value="Extension" /> 489 </type> 490 <constraint> 491 <key value="ele-1" /> 492 <severity value="error" /> 493 <human value="All FHIR elements must have a @value or children" /> 494 <expression value="hasValue() or (children().count() > id.count())" /> 495 <xpath value="@value|f:*|h:div" /> 496 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 497 </constraint> 498 <constraint> 499 <key value="ext-1" /> 500 <severity value="error" /> 501 <human value="Must have either extensions or value[x], not both" /> 502 <expression value="extension.exists() != value.exists()" /> 503 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 504 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 505 </constraint> 506 <isModifier value="false" /> 507 <isSummary value="false" /> 508 </element> 509 <element id="Extension.extension:expression.id"> 510 <path value="Extension.extension.id" /> 511 <representation value="xmlAttr" /> 512 <short value="Unique id for inter-element referencing" /> 513 <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." /> 514 <min value="0" /> 515 <max value="1" /> 516 <base> 517 <path value="Element.id" /> 518 <min value="0" /> 519 <max value="1" /> 520 </base> 521 <type> 522 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 523 <valueUrl value="string" /> 524 </extension> 525 <code value="http://hl7.org/fhirpath/System.String" /> 526 </type> 527 <isModifier value="false" /> 528 <isSummary value="false" /> 529 <mapping> 530 <identity value="rim" /> 531 <map value="n/a" /> 532 </mapping> 533 </element> 534 <element id="Extension.extension:expression.extension"> 535 <path value="Extension.extension.extension" /> 536 <slicing> 537 <discriminator> 538 <type value="value" /> 539 <path value="url" /> 540 </discriminator> 541 <description value="Extensions are always sliced by (at least) url" /> 542 <rules value="open" /> 543 </slicing> 544 <short value="Extension" /> 545 <definition value="An Extension" /> 546 <min value="0" /> 547 <max value="0" /> 548 <base> 549 <path value="Element.extension" /> 550 <min value="0" /> 551 <max value="*" /> 552 </base> 553 <type> 554 <code value="Extension" /> 555 </type> 556 <constraint> 557 <key value="ele-1" /> 558 <severity value="error" /> 559 <human value="All FHIR elements must have a @value or children" /> 560 <expression value="hasValue() or (children().count() > id.count())" /> 561 <xpath value="@value|f:*|h:div" /> 562 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 563 </constraint> 564 <constraint> 565 <key value="ext-1" /> 566 <severity value="error" /> 567 <human value="Must have either extensions or value[x], not both" /> 568 <expression value="extension.exists() != value.exists()" /> 569 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 570 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 571 </constraint> 572 <isModifier value="false" /> 573 <isSummary value="false" /> 574 </element> 575 <element id="Extension.extension:expression.url"> 576 <path value="Extension.extension.url" /> 577 <representation value="xmlAttr" /> 578 <short value="identifies the meaning of the extension" /> 579 <definition value="Source of the definition for the extension code - a logical name or a URL." /> 580 <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." /> 581 <min value="1" /> 582 <max value="1" /> 583 <base> 584 <path value="Extension.url" /> 585 <min value="1" /> 586 <max value="1" /> 587 </base> 588 <type> 589 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 590 <valueUrl value="uri" /> 591 </extension> 592 <code value="http://hl7.org/fhirpath/System.String" /> 593 </type> 594 <fixedUri value="expression" /> 595 <isModifier value="false" /> 596 <isSummary value="false" /> 597 <mapping> 598 <identity value="rim" /> 599 <map value="N/A" /> 600 </mapping> 601 </element> 602 <element id="Extension.extension:expression.value[x]"> 603 <path value="Extension.extension.value[x]" /> 604 <short value="Expression value" /> 605 <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)." /> 606 <min value="1" /> 607 <max value="1" /> 608 <base> 609 <path value="Extension.value[x]" /> 610 <min value="0" /> 611 <max value="1" /> 612 </base> 613 <type> 614 <code value="Expression" /> 615 </type> 616 <constraint> 617 <key value="ele-1" /> 618 <severity value="error" /> 619 <human value="All FHIR elements must have a @value or children" /> 620 <expression value="hasValue() or (children().count() > id.count())" /> 621 <xpath value="@value|f:*|h:div" /> 622 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 623 </constraint> 624 <isModifier value="false" /> 625 <isSummary value="false" /> 626 <mapping> 627 <identity value="rim" /> 628 <map value="N/A" /> 629 </mapping> 630 </element> 631 <element id="Extension.url"> 632 <path value="Extension.url" /> 633 <representation value="xmlAttr" /> 634 <short value="identifies the meaning of the extension" /> 635 <definition value="Source of the definition for the extension code - a logical name or a URL." /> 636 <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." /> 637 <min value="1" /> 638 <max value="1" /> 639 <base> 640 <path value="Extension.url" /> 641 <min value="1" /> 642 <max value="1" /> 643 </base> 644 <type> 645 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 646 <valueUrl value="uri" /> 647 </extension> 648 <code value="http://hl7.org/fhirpath/System.String" /> 649 </type> 650 <fixedUri value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerOptionsToggleExpression" /> 651 <isModifier value="false" /> 652 <isSummary value="false" /> 653 <mapping> 654 <identity value="rim" /> 655 <map value="N/A" /> 656 </mapping> 657 </element> 658 <element id="Extension.value[x]"> 659 <path value="Extension.value[x]" /> 660 <short value="Value of extension" /> 661 <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)." /> 662 <min value="0" /> 663 <max value="0" /> 664 <base> 665 <path value="Extension.value[x]" /> 666 <min value="0" /> 667 <max value="1" /> 668 </base> 669 <type> 670 <code value="base64Binary" /> 671 </type> 672 <type> 673 <code value="boolean" /> 674 </type> 675 <type> 676 <code value="canonical" /> 677 </type> 678 <type> 679 <code value="code" /> 680 </type> 681 <type> 682 <code value="date" /> 683 </type> 684 <type> 685 <code value="dateTime" /> 686 </type> 687 <type> 688 <code value="decimal" /> 689 </type> 690 <type> 691 <code value="id" /> 692 </type> 693 <type> 694 <code value="instant" /> 695 </type> 696 <type> 697 <code value="integer" /> 698 </type> 699 <type> 700 <code value="markdown" /> 701 </type> 702 <type> 703 <code value="oid" /> 704 </type> 705 <type> 706 <code value="positiveInt" /> 707 </type> 708 <type> 709 <code value="string" /> 710 </type> 711 <type> 712 <code value="time" /> 713 </type> 714 <type> 715 <code value="unsignedInt" /> 716 </type> 717 <type> 718 <code value="uri" /> 719 </type> 720 <type> 721 <code value="url" /> 722 </type> 723 <type> 724 <code value="uuid" /> 725 </type> 726 <type> 727 <code value="Address" /> 728 </type> 729 <type> 730 <code value="Age" /> 731 </type> 732 <type> 733 <code value="Annotation" /> 734 </type> 735 <type> 736 <code value="Attachment" /> 737 </type> 738 <type> 739 <code value="CodeableConcept" /> 740 </type> 741 <type> 742 <code value="Coding" /> 743 </type> 744 <type> 745 <code value="ContactPoint" /> 746 </type> 747 <type> 748 <code value="Count" /> 749 </type> 750 <type> 751 <code value="Distance" /> 752 </type> 753 <type> 754 <code value="Duration" /> 755 </type> 756 <type> 757 <code value="HumanName" /> 758 </type> 759 <type> 760 <code value="Identifier" /> 761 </type> 762 <type> 763 <code value="Money" /> 764 </type> 765 <type> 766 <code value="Period" /> 767 </type> 768 <type> 769 <code value="Quantity" /> 770 </type> 771 <type> 772 <code value="Range" /> 773 </type> 774 <type> 775 <code value="Ratio" /> 776 </type> 777 <type> 778 <code value="Reference" /> 779 </type> 780 <type> 781 <code value="SampledData" /> 782 </type> 783 <type> 784 <code value="Signature" /> 785 </type> 786 <type> 787 <code value="Timing" /> 788 </type> 789 <type> 790 <code value="ContactDetail" /> 791 </type> 792 <type> 793 <code value="Contributor" /> 794 </type> 795 <type> 796 <code value="DataRequirement" /> 797 </type> 798 <type> 799 <code value="Expression" /> 800 </type> 801 <type> 802 <code value="ParameterDefinition" /> 803 </type> 804 <type> 805 <code value="RelatedArtifact" /> 806 </type> 807 <type> 808 <code value="TriggerDefinition" /> 809 </type> 810 <type> 811 <code value="UsageContext" /> 812 </type> 813 <type> 814 <code value="Dosage" /> 815 </type> 816 <type> 817 <code value="Meta" /> 818 </type> 819 <constraint> 820 <key value="ele-1" /> 821 <severity value="error" /> 822 <human value="All FHIR elements must have a @value or children" /> 823 <expression value="hasValue() or (children().count() > id.count())" /> 824 <xpath value="@value|f:*|h:div" /> 825 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 826 </constraint> 827 <isModifier value="false" /> 828 <isSummary value="false" /> 829 <mapping> 830 <identity value="rim" /> 831 <map value="N/A" /> 832 </mapping> 833 </element> 834 </snapshot> 835 <differential> 836 <element id="Extension"> 837 <path value="Extension" /> 838 <short value="Expression constraining allowed answers" /> 839 <definition value="A complex expression that provides a list of the allowed options that should be enabled or disabled based on the evaluation of a provided expression. It allows toggling of allowed answers based on context, including the answers provided to other expressions." /> 840 <comment value="For example, this allows a list of conditions to be modified based on the gender of the patient" /> 841 </element> 842 <element id="Extension.extension"> 843 <path value="Extension.extension" /> 844 <min value="2" /> 845 </element> 846 <element id="Extension.extension:option"> 847 <path value="Extension.extension" /> 848 <sliceName value="option" /> 849 <short value="Option(s) to toggle" /> 850 <definition value="Each repetition is an option to toggle based on the expression" /> 851 <min value="1" /> 852 <max value="*" /> 853 </element> 854 <element id="Extension.extension:option.extension"> 855 <path value="Extension.extension.extension" /> 856 <max value="0" /> 857 </element> 858 <element id="Extension.extension:option.url"> 859 <path value="Extension.extension.url" /> 860 <fixedUri value="option" /> 861 </element> 862 <element id="Extension.extension:option.value[x]"> 863 <path value="Extension.extension.value[x]" /> 864 <short value="The option value to control" /> 865 <min value="1" /> 866 </element> 867 <element id="Extension.extension:expression"> 868 <path value="Extension.extension" /> 869 <sliceName value="expression" /> 870 <short value="The expression to toggle on" /> 871 <definition value="If this expression evaluate's to 'true', then the specified options should be enabled, otherwise they should be disabled." /> 872 <min value="1" /> 873 <max value="1" /> 874 </element> 875 <element id="Extension.extension:expression.extension"> 876 <path value="Extension.extension.extension" /> 877 <max value="0" /> 878 </element> 879 <element id="Extension.extension:expression.url"> 880 <path value="Extension.extension.url" /> 881 <fixedUri value="expression" /> 882 </element> 883 <element id="Extension.extension:expression.value[x]"> 884 <path value="Extension.extension.value[x]" /> 885 <short value="Expression value" /> 886 <min value="1" /> 887 <type> 888 <code value="Expression" /> 889 </type> 890 </element> 891 <element id="Extension.url"> 892 <path value="Extension.url" /> 893 <fixedUri value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerOptionsToggleExpression" /> 894 </element> 895 <element id="Extension.value[x]"> 896 <path value="Extension.value[x]" /> 897 <max value="0" /> 898 </element> 899 </differential> 900 </StructureDefinition>