StructureDefinition-ch-ext-accident.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <StructureDefinition xmlns="http://hl7.org/fhir"> 3 <id value="ch-ext-accident" /> 4 <url value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-accident" /> 5 <version value="6.0.0-ballot-ci-build" /> 6 <name value="Accident" /> 7 <title value="If an encounter is caused by an accident" /> 8 <status value="active" /> 9 <date value="2025-01-29T14:29:51.0000000+01:00" /> 10 <publisher value="HL7 Switzerland" /> 11 <contact> 12 <name value="HL7 Switzerland" /> 13 <telecom> 14 <system value="url" /> 15 <value value="https://www.hl7.ch/" /> 16 </telecom> 17 </contact> 18 <contact> 19 <name value="HL7 Switzerland" /> 20 <telecom> 21 <system value="url" /> 22 <value value="https://www.hl7.ch/" /> 23 <use value="work" /> 24 </telecom> 25 </contact> 26 <description value="Extension to define an encounter that is caused by an accident and at which time the accident happened" /> 27 <jurisdiction> 28 <coding> 29 <system value="urn:iso:std:iso:3166" /> 30 <code value="CH" /> 31 </coding> 32 </jurisdiction> 33 <copyright value="CC0-1.0" /> 34 <fhirVersion value="4.0.1" /> 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="Encounter.hospitalization" /> 45 </context> 46 <type value="Extension" /> 47 <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" /> 48 <derivation value="constraint" /> 49 <snapshot> 50 <element id="Extension"> 51 <path value="Extension" /> 52 <short value="Extension" /> 53 <definition value="Extension to define an encounter is caused by an accident and at which time the accident happened" /> 54 <min value="0" /> 55 <max value="*" /> 56 <base> 57 <path value="Extension" /> 58 <min value="0" /> 59 <max value="*" /> 60 </base> 61 <condition value="ele-1" /> 62 <constraint> 63 <key value="ele-1" /> 64 <severity value="error" /> 65 <human value="All FHIR elements must have a @value or children" /> 66 <expression value="hasValue() or (children().count() > id.count())" /> 67 <xpath value="@value|f:*|h:div" /> 68 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 69 </constraint> 70 <constraint> 71 <key value="ext-1" /> 72 <severity value="error" /> 73 <human value="Must have either extensions or value[x], not both" /> 74 <expression value="extension.exists() != value.exists()" /> 75 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" /> 76 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 77 </constraint> 78 <isModifier value="false" /> 79 </element> 80 <element id="Extension.id"> 81 <path value="Extension.id" /> 82 <representation value="xmlAttr" /> 83 <short value="Unique id for inter-element referencing" /> 84 <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." /> 85 <min value="0" /> 86 <max value="1" /> 87 <base> 88 <path value="Element.id" /> 89 <min value="0" /> 90 <max value="1" /> 91 </base> 92 <type> 93 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 94 <valueUrl value="string" /> 95 </extension> 96 <code value="http://hl7.org/fhirpath/System.String" /> 97 </type> 98 <isModifier value="false" /> 99 <isSummary value="false" /> 100 <mapping> 101 <identity value="rim" /> 102 <map value="n/a" /> 103 </mapping> 104 </element> 105 <element id="Extension.extension"> 106 <path value="Extension.extension" /> 107 <slicing> 108 <discriminator> 109 <type value="value" /> 110 <path value="url" /> 111 </discriminator> 112 <description value="Extensions are always sliced by (at least) url" /> 113 <rules value="open" /> 114 </slicing> 115 <short value="Additional content defined by implementations" /> 116 <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> 117 <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> 118 <alias value="extensions" /> 119 <alias value="user content" /> 120 <min value="0" /> 121 <max value="*" /> 122 <base> 123 <path value="Element.extension" /> 124 <min value="0" /> 125 <max value="*" /> 126 </base> 127 <type> 128 <code value="Extension" /> 129 </type> 130 <constraint> 131 <key value="ele-1" /> 132 <severity value="error" /> 133 <human value="All FHIR elements must have a @value or children" /> 134 <expression value="hasValue() or (children().count() > id.count())" /> 135 <xpath value="@value|f:*|h:div" /> 136 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 137 </constraint> 138 <constraint> 139 <key value="ext-1" /> 140 <severity value="error" /> 141 <human value="Must have either extensions or value[x], not both" /> 142 <expression value="extension.exists() != value.exists()" /> 143 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 144 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 145 </constraint> 146 <isModifier value="false" /> 147 <isSummary value="false" /> 148 <mapping> 149 <identity value="rim" /> 150 <map value="n/a" /> 151 </mapping> 152 </element> 153 <element id="Extension.extension:tag"> 154 <path value="Extension.extension" /> 155 <sliceName value="tag" /> 156 <short value="Information if it was an accident" /> 157 <definition value="An Extension" /> 158 <min value="0" /> 159 <max value="1" /> 160 <base> 161 <path value="Element.extension" /> 162 <min value="0" /> 163 <max value="*" /> 164 </base> 165 <type> 166 <code value="Extension" /> 167 </type> 168 <constraint> 169 <key value="ele-1" /> 170 <severity value="error" /> 171 <human value="All FHIR elements must have a @value or children" /> 172 <expression value="hasValue() or (children().count() > id.count())" /> 173 <xpath value="@value|f:*|h:div" /> 174 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 175 </constraint> 176 <constraint> 177 <key value="ext-1" /> 178 <severity value="error" /> 179 <human value="Must have either extensions or value[x], not both" /> 180 <expression value="extension.exists() != value.exists()" /> 181 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 182 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 183 </constraint> 184 <isModifier value="false" /> 185 <isSummary value="false" /> 186 </element> 187 <element id="Extension.extension:tag.id"> 188 <path value="Extension.extension.id" /> 189 <representation value="xmlAttr" /> 190 <short value="Unique id for inter-element referencing" /> 191 <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." /> 192 <min value="0" /> 193 <max value="1" /> 194 <base> 195 <path value="Element.id" /> 196 <min value="0" /> 197 <max value="1" /> 198 </base> 199 <type> 200 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 201 <valueUrl value="string" /> 202 </extension> 203 <code value="http://hl7.org/fhirpath/System.String" /> 204 </type> 205 <isModifier value="false" /> 206 <isSummary value="false" /> 207 <mapping> 208 <identity value="rim" /> 209 <map value="n/a" /> 210 </mapping> 211 </element> 212 <element id="Extension.extension:tag.extension"> 213 <path value="Extension.extension.extension" /> 214 <slicing> 215 <discriminator> 216 <type value="value" /> 217 <path value="url" /> 218 </discriminator> 219 <description value="Extensions are always sliced by (at least) url" /> 220 <rules value="open" /> 221 </slicing> 222 <short value="Extension" /> 223 <definition value="An Extension" /> 224 <min value="0" /> 225 <max value="0" /> 226 <base> 227 <path value="Element.extension" /> 228 <min value="0" /> 229 <max value="*" /> 230 </base> 231 <type> 232 <code value="Extension" /> 233 </type> 234 <constraint> 235 <key value="ele-1" /> 236 <severity value="error" /> 237 <human value="All FHIR elements must have a @value or children" /> 238 <expression value="hasValue() or (children().count() > id.count())" /> 239 <xpath value="@value|f:*|h:div" /> 240 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 241 </constraint> 242 <constraint> 243 <key value="ext-1" /> 244 <severity value="error" /> 245 <human value="Must have either extensions or value[x], not both" /> 246 <expression value="extension.exists() != value.exists()" /> 247 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 248 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 249 </constraint> 250 <isModifier value="false" /> 251 <isSummary value="false" /> 252 </element> 253 <element id="Extension.extension:tag.url"> 254 <path value="Extension.extension.url" /> 255 <representation value="xmlAttr" /> 256 <short value="identifies the meaning of the extension" /> 257 <definition value="Source of the definition for the extension code - a logical name or a URL." /> 258 <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." /> 259 <min value="1" /> 260 <max value="1" /> 261 <base> 262 <path value="Extension.url" /> 263 <min value="1" /> 264 <max value="1" /> 265 </base> 266 <type> 267 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 268 <valueUrl value="uri" /> 269 </extension> 270 <code value="http://hl7.org/fhirpath/System.String" /> 271 </type> 272 <fixedUri value="tag" /> 273 <isModifier value="false" /> 274 <isSummary value="false" /> 275 <mapping> 276 <identity value="rim" /> 277 <map value="N/A" /> 278 </mapping> 279 </element> 280 <element id="Extension.extension:tag.value[x]"> 281 <path value="Extension.extension.value[x]" /> 282 <slicing> 283 <discriminator> 284 <type value="type" /> 285 <path value="$this" /> 286 </discriminator> 287 <ordered value="false" /> 288 <rules value="closed" /> 289 </slicing> 290 <short value="Value of extension" /> 291 <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)." /> 292 <min value="1" /> 293 <max value="1" /> 294 <base> 295 <path value="Extension.value[x]" /> 296 <min value="0" /> 297 <max value="1" /> 298 </base> 299 <type> 300 <code value="boolean" /> 301 </type> 302 <constraint> 303 <key value="ele-1" /> 304 <severity value="error" /> 305 <human value="All FHIR elements must have a @value or children" /> 306 <expression value="hasValue() or (children().count() > id.count())" /> 307 <xpath value="@value|f:*|h:div" /> 308 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 309 </constraint> 310 <isModifier value="false" /> 311 <isSummary value="false" /> 312 <mapping> 313 <identity value="rim" /> 314 <map value="N/A" /> 315 </mapping> 316 </element> 317 <element id="Extension.extension:tag.value[x]:valueBoolean"> 318 <path value="Extension.extension.value[x]" /> 319 <sliceName value="valueBoolean" /> 320 <short value="Flag to indicate that it was an accident" /> 321 <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)." /> 322 <min value="1" /> 323 <max value="1" /> 324 <base> 325 <path value="Extension.value[x]" /> 326 <min value="0" /> 327 <max value="1" /> 328 </base> 329 <type> 330 <code value="boolean" /> 331 </type> 332 <constraint> 333 <key value="ele-1" /> 334 <severity value="error" /> 335 <human value="All FHIR elements must have a @value or children" /> 336 <expression value="hasValue() or (children().count() > id.count())" /> 337 <xpath value="@value|f:*|h:div" /> 338 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 339 </constraint> 340 <isModifier value="false" /> 341 <isSummary value="false" /> 342 <mapping> 343 <identity value="rim" /> 344 <map value="N/A" /> 345 </mapping> 346 </element> 347 <element id="Extension.extension:dateTime"> 348 <path value="Extension.extension" /> 349 <sliceName value="dateTime" /> 350 <short value="Timestamp of the authorship/data input" /> 351 <definition value="An Extension" /> 352 <min value="0" /> 353 <max value="1" /> 354 <base> 355 <path value="Element.extension" /> 356 <min value="0" /> 357 <max value="*" /> 358 </base> 359 <type> 360 <code value="Extension" /> 361 </type> 362 <constraint> 363 <key value="ele-1" /> 364 <severity value="error" /> 365 <human value="All FHIR elements must have a @value or children" /> 366 <expression value="hasValue() or (children().count() > id.count())" /> 367 <xpath value="@value|f:*|h:div" /> 368 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 369 </constraint> 370 <constraint> 371 <key value="ext-1" /> 372 <severity value="error" /> 373 <human value="Must have either extensions or value[x], not both" /> 374 <expression value="extension.exists() != value.exists()" /> 375 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 376 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 377 </constraint> 378 <isModifier value="false" /> 379 <isSummary value="false" /> 380 </element> 381 <element id="Extension.extension:dateTime.id"> 382 <path value="Extension.extension.id" /> 383 <representation value="xmlAttr" /> 384 <short value="Unique id for inter-element referencing" /> 385 <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." /> 386 <min value="0" /> 387 <max value="1" /> 388 <base> 389 <path value="Element.id" /> 390 <min value="0" /> 391 <max value="1" /> 392 </base> 393 <type> 394 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 395 <valueUrl value="string" /> 396 </extension> 397 <code value="http://hl7.org/fhirpath/System.String" /> 398 </type> 399 <isModifier value="false" /> 400 <isSummary value="false" /> 401 <mapping> 402 <identity value="rim" /> 403 <map value="n/a" /> 404 </mapping> 405 </element> 406 <element id="Extension.extension:dateTime.extension"> 407 <path value="Extension.extension.extension" /> 408 <slicing> 409 <discriminator> 410 <type value="value" /> 411 <path value="url" /> 412 </discriminator> 413 <description value="Extensions are always sliced by (at least) url" /> 414 <rules value="open" /> 415 </slicing> 416 <short value="Extension" /> 417 <definition value="An Extension" /> 418 <min value="0" /> 419 <max value="0" /> 420 <base> 421 <path value="Element.extension" /> 422 <min value="0" /> 423 <max value="*" /> 424 </base> 425 <type> 426 <code value="Extension" /> 427 </type> 428 <constraint> 429 <key value="ele-1" /> 430 <severity value="error" /> 431 <human value="All FHIR elements must have a @value or children" /> 432 <expression value="hasValue() or (children().count() > id.count())" /> 433 <xpath value="@value|f:*|h:div" /> 434 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 435 </constraint> 436 <constraint> 437 <key value="ext-1" /> 438 <severity value="error" /> 439 <human value="Must have either extensions or value[x], not both" /> 440 <expression value="extension.exists() != value.exists()" /> 441 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 442 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 443 </constraint> 444 <isModifier value="false" /> 445 <isSummary value="false" /> 446 </element> 447 <element id="Extension.extension:dateTime.url"> 448 <path value="Extension.extension.url" /> 449 <representation value="xmlAttr" /> 450 <short value="identifies the meaning of the extension" /> 451 <definition value="Source of the definition for the extension code - a logical name or a URL." /> 452 <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." /> 453 <min value="1" /> 454 <max value="1" /> 455 <base> 456 <path value="Extension.url" /> 457 <min value="1" /> 458 <max value="1" /> 459 </base> 460 <type> 461 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 462 <valueUrl value="uri" /> 463 </extension> 464 <code value="http://hl7.org/fhirpath/System.String" /> 465 </type> 466 <fixedUri value="dateTime" /> 467 <isModifier value="false" /> 468 <isSummary value="false" /> 469 <mapping> 470 <identity value="rim" /> 471 <map value="N/A" /> 472 </mapping> 473 </element> 474 <element id="Extension.extension:dateTime.value[x]"> 475 <path value="Extension.extension.value[x]" /> 476 <slicing> 477 <discriminator> 478 <type value="type" /> 479 <path value="$this" /> 480 </discriminator> 481 <ordered value="false" /> 482 <rules value="closed" /> 483 </slicing> 484 <short value="Value of extension" /> 485 <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)." /> 486 <min value="1" /> 487 <max value="1" /> 488 <base> 489 <path value="Extension.value[x]" /> 490 <min value="0" /> 491 <max value="1" /> 492 </base> 493 <type> 494 <code value="dateTime" /> 495 </type> 496 <constraint> 497 <key value="ele-1" /> 498 <severity value="error" /> 499 <human value="All FHIR elements must have a @value or children" /> 500 <expression value="hasValue() or (children().count() > id.count())" /> 501 <xpath value="@value|f:*|h:div" /> 502 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 503 </constraint> 504 <isModifier value="false" /> 505 <isSummary value="false" /> 506 <mapping> 507 <identity value="rim" /> 508 <map value="N/A" /> 509 </mapping> 510 </element> 511 <element id="Extension.extension:dateTime.value[x]:valueDateTime"> 512 <path value="Extension.extension.value[x]" /> 513 <sliceName value="valueDateTime" /> 514 <short value="date and time of accident" /> 515 <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)." /> 516 <min value="1" /> 517 <max value="1" /> 518 <base> 519 <path value="Extension.value[x]" /> 520 <min value="0" /> 521 <max value="1" /> 522 </base> 523 <type> 524 <code value="dateTime" /> 525 </type> 526 <constraint> 527 <key value="ele-1" /> 528 <severity value="error" /> 529 <human value="All FHIR elements must have a @value or children" /> 530 <expression value="hasValue() or (children().count() > id.count())" /> 531 <xpath value="@value|f:*|h:div" /> 532 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 533 </constraint> 534 <isModifier value="false" /> 535 <isSummary value="false" /> 536 <mapping> 537 <identity value="rim" /> 538 <map value="N/A" /> 539 </mapping> 540 </element> 541 <element id="Extension.url"> 542 <path value="Extension.url" /> 543 <representation value="xmlAttr" /> 544 <short value="identifies the meaning of the extension" /> 545 <definition value="Source of the definition for the extension code - a logical name or a URL." /> 546 <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." /> 547 <min value="1" /> 548 <max value="1" /> 549 <base> 550 <path value="Extension.url" /> 551 <min value="1" /> 552 <max value="1" /> 553 </base> 554 <type> 555 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 556 <valueUrl value="uri" /> 557 </extension> 558 <code value="http://hl7.org/fhirpath/System.String" /> 559 </type> 560 <fixedUri value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-accident" /> 561 <isModifier value="false" /> 562 <isSummary value="false" /> 563 <mapping> 564 <identity value="rim" /> 565 <map value="N/A" /> 566 </mapping> 567 </element> 568 <element id="Extension.value[x]"> 569 <path value="Extension.value[x]" /> 570 <short value="Value of extension" /> 571 <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)." /> 572 <min value="0" /> 573 <max value="0" /> 574 <base> 575 <path value="Extension.value[x]" /> 576 <min value="0" /> 577 <max value="1" /> 578 </base> 579 <type> 580 <code value="base64Binary" /> 581 </type> 582 <type> 583 <code value="boolean" /> 584 </type> 585 <type> 586 <code value="canonical" /> 587 </type> 588 <type> 589 <code value="code" /> 590 </type> 591 <type> 592 <code value="date" /> 593 </type> 594 <type> 595 <code value="dateTime" /> 596 </type> 597 <type> 598 <code value="decimal" /> 599 </type> 600 <type> 601 <code value="id" /> 602 </type> 603 <type> 604 <code value="instant" /> 605 </type> 606 <type> 607 <code value="integer" /> 608 </type> 609 <type> 610 <code value="markdown" /> 611 </type> 612 <type> 613 <code value="oid" /> 614 </type> 615 <type> 616 <code value="positiveInt" /> 617 </type> 618 <type> 619 <code value="string" /> 620 </type> 621 <type> 622 <code value="time" /> 623 </type> 624 <type> 625 <code value="unsignedInt" /> 626 </type> 627 <type> 628 <code value="uri" /> 629 </type> 630 <type> 631 <code value="url" /> 632 </type> 633 <type> 634 <code value="uuid" /> 635 </type> 636 <type> 637 <code value="Address" /> 638 </type> 639 <type> 640 <code value="Age" /> 641 </type> 642 <type> 643 <code value="Annotation" /> 644 </type> 645 <type> 646 <code value="Attachment" /> 647 </type> 648 <type> 649 <code value="CodeableConcept" /> 650 </type> 651 <type> 652 <code value="Coding" /> 653 </type> 654 <type> 655 <code value="ContactPoint" /> 656 </type> 657 <type> 658 <code value="Count" /> 659 </type> 660 <type> 661 <code value="Distance" /> 662 </type> 663 <type> 664 <code value="Duration" /> 665 </type> 666 <type> 667 <code value="HumanName" /> 668 </type> 669 <type> 670 <code value="Identifier" /> 671 </type> 672 <type> 673 <code value="Money" /> 674 </type> 675 <type> 676 <code value="Period" /> 677 </type> 678 <type> 679 <code value="Quantity" /> 680 </type> 681 <type> 682 <code value="Range" /> 683 </type> 684 <type> 685 <code value="Ratio" /> 686 </type> 687 <type> 688 <code value="Reference" /> 689 </type> 690 <type> 691 <code value="SampledData" /> 692 </type> 693 <type> 694 <code value="Signature" /> 695 </type> 696 <type> 697 <code value="Timing" /> 698 </type> 699 <type> 700 <code value="ContactDetail" /> 701 </type> 702 <type> 703 <code value="Contributor" /> 704 </type> 705 <type> 706 <code value="DataRequirement" /> 707 </type> 708 <type> 709 <code value="Expression" /> 710 </type> 711 <type> 712 <code value="ParameterDefinition" /> 713 </type> 714 <type> 715 <code value="RelatedArtifact" /> 716 </type> 717 <type> 718 <code value="TriggerDefinition" /> 719 </type> 720 <type> 721 <code value="UsageContext" /> 722 </type> 723 <type> 724 <code value="Dosage" /> 725 </type> 726 <type> 727 <code value="Meta" /> 728 </type> 729 <constraint> 730 <key value="ele-1" /> 731 <severity value="error" /> 732 <human value="All FHIR elements must have a @value or children" /> 733 <expression value="hasValue() or (children().count() > id.count())" /> 734 <xpath value="@value|f:*|h:div" /> 735 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 736 </constraint> 737 <isModifier value="false" /> 738 <isSummary value="false" /> 739 <mapping> 740 <identity value="rim" /> 741 <map value="N/A" /> 742 </mapping> 743 </element> 744 </snapshot> 745 <differential> 746 <element id="Extension"> 747 <path value="Extension" /> 748 <definition value="Extension to define an encounter is caused by an accident and at which time the accident happened" /> 749 </element> 750 <element id="Extension.extension:tag"> 751 <path value="Extension.extension" /> 752 <sliceName value="tag" /> 753 <short value="Information if it was an accident" /> 754 <min value="0" /> 755 <max value="1" /> 756 </element> 757 <element id="Extension.extension:tag.extension"> 758 <path value="Extension.extension.extension" /> 759 <max value="0" /> 760 </element> 761 <element id="Extension.extension:tag.url"> 762 <path value="Extension.extension.url" /> 763 <fixedUri value="tag" /> 764 </element> 765 <element id="Extension.extension:tag.value[x]"> 766 <path value="Extension.extension.value[x]" /> 767 <slicing> 768 <discriminator> 769 <type value="type" /> 770 <path value="$this" /> 771 </discriminator> 772 <ordered value="false" /> 773 <rules value="open" /> 774 </slicing> 775 <min value="1" /> 776 </element> 777 <element id="Extension.extension:tag.value[x]:valueBoolean"> 778 <path value="Extension.extension.value[x]" /> 779 <sliceName value="valueBoolean" /> 780 <short value="Flag to indicate that it was an accident" /> 781 <min value="1" /> 782 <max value="1" /> 783 <type> 784 <code value="boolean" /> 785 </type> 786 </element> 787 <element id="Extension.extension:dateTime"> 788 <path value="Extension.extension" /> 789 <sliceName value="dateTime" /> 790 <short value="Timestamp of the authorship/data input" /> 791 <min value="0" /> 792 <max value="1" /> 793 </element> 794 <element id="Extension.extension:dateTime.extension"> 795 <path value="Extension.extension.extension" /> 796 <max value="0" /> 797 </element> 798 <element id="Extension.extension:dateTime.url"> 799 <path value="Extension.extension.url" /> 800 <fixedUri value="dateTime" /> 801 </element> 802 <element id="Extension.extension:dateTime.value[x]"> 803 <path value="Extension.extension.value[x]" /> 804 <slicing> 805 <discriminator> 806 <type value="type" /> 807 <path value="$this" /> 808 </discriminator> 809 <ordered value="false" /> 810 <rules value="open" /> 811 </slicing> 812 <min value="1" /> 813 </element> 814 <element id="Extension.extension:dateTime.value[x]:valueDateTime"> 815 <path value="Extension.extension.value[x]" /> 816 <sliceName value="valueDateTime" /> 817 <short value="date and time of accident" /> 818 <min value="1" /> 819 <max value="1" /> 820 <type> 821 <code value="dateTime" /> 822 </type> 823 </element> 824 <element id="Extension.url"> 825 <path value="Extension.url" /> 826 <fixedUri value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-accident" /> 827 </element> 828 <element id="Extension.value[x]"> 829 <path value="Extension.value[x]" /> 830 <max value="0" /> 831 </element> 832 </differential> 833 </StructureDefinition>