CH Core (R4)
5.0.0-ci-build - ci-build Switzerland flag

CH Core (R4), published by HL7 Switzerland. This guide is not an authorized publication; it is the continuous build for version 5.0.0-ci-build built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/hl7ch/ch-core/ and changes regularly. See the Directory of published versions

Extension: If an encounter is caused by an accident

Official URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-accident Version: 5.0.0-ci-build
Active as of 2024-04-16 Computable Name: Accident

Copyright/Legal: CC0-1.0

Extension to define an encounter that is caused by an accident and at which time the accident happened

Context of Use

This extension may be used on the following element(s):

  • Element ID Encounter.hospitalization

Usage info

Usage:

Formal Views of Extension Content

Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.

This structure is derived from Extension

Summary

Complex Extension: Extension to define an encounter that is caused by an accident and at which time the accident happened

  • tag: boolean: An Extension
  • dateTime: dateTime: An Extension

This structure is derived from Extension

NameFlagsCard.TypeDescription & Constraintsdoco
.. Extension 0..* Extension Extension
... extension:tag 0..1 Extension Information if it was an accident
.... extension 0..0
.... url 1..1 uri "tag"
.... Slices for value[x] 1..1 boolean Value of extension
Slice: Unordered, Open by type:$this
..... value[x]:valueBoolean 1..1 boolean Flag to indicate that it was an accident
... extension:dateTime 0..1 Extension Timestamp of the authorship/data input
.... extension 0..0
.... url 1..1 uri "dateTime"
.... Slices for value[x] 1..1 dateTime Value of extension
Slice: Unordered, Open by type:$this
..... value[x]:valueDateTime 1..1 dateTime date and time of accident
... url 1..1 uri "http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-accident"

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. Extension 0..* Extension Extension
... id 0..1 string Unique id for inter-element referencing
... Slices for extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
... extension:tag 0..1 Extension Information if it was an accident
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..0
.... url 1..1 uri "tag"
.... Slices for value[x] 1..1 boolean Value of extension
Slice: Unordered, Closed by type:$this
..... value[x]:valueBoolean 1..1 boolean Flag to indicate that it was an accident
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..0
.... url 1..1 uri "dateTime"
.... Slices for value[x] 1..1 dateTime Value of extension
Slice: Unordered, Closed by type:$this
..... value[x]:valueDateTime 1..1 dateTime date and time of accident
... url 1..1 uri "http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-accident"

doco Documentation for this format

This structure is derived from Extension

Summary

Complex Extension: Extension to define an encounter that is caused by an accident and at which time the accident happened

  • tag: boolean: An Extension
  • dateTime: dateTime: An Extension

Differential View

This structure is derived from Extension

NameFlagsCard.TypeDescription & Constraintsdoco
.. Extension 0..* Extension Extension
... extension:tag 0..1 Extension Information if it was an accident
.... extension 0..0
.... url 1..1 uri "tag"
.... Slices for value[x] 1..1 boolean Value of extension
Slice: Unordered, Open by type:$this
..... value[x]:valueBoolean 1..1 boolean Flag to indicate that it was an accident
... extension:dateTime 0..1 Extension Timestamp of the authorship/data input
.... extension 0..0
.... url 1..1 uri "dateTime"
.... Slices for value[x] 1..1 dateTime Value of extension
Slice: Unordered, Open by type:$this
..... value[x]:valueDateTime 1..1 dateTime date and time of accident
... url 1..1 uri "http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-accident"

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Extension 0..* Extension Extension
... id 0..1 string Unique id for inter-element referencing
... Slices for extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
... extension:tag 0..1 Extension Information if it was an accident
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..0
.... url 1..1 uri "tag"
.... Slices for value[x] 1..1 boolean Value of extension
Slice: Unordered, Closed by type:$this
..... value[x]:valueBoolean 1..1 boolean Flag to indicate that it was an accident
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..0
.... url 1..1 uri "dateTime"
.... Slices for value[x] 1..1 dateTime Value of extension
Slice: Unordered, Closed by type:$this
..... value[x]:valueDateTime 1..1 dateTime date and time of accident
... url 1..1 uri "http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-accident"

doco Documentation for this format

 

Other representations of profile: CSV, Excel, Schematron

Constraints

IdGradePath(s)DetailsRequirements
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()