CH Core (R4)
2.0.0 - STU 2

CH Core (R4), published by HL7 Switzerland. This is not an authorized publication; it is the continuous build for version 2.0.0). 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

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

The official URL for this extension is:

http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-accident

Status: active
Extension maintained by: HL7 Switzerland

Context of Use

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

  • 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

Mandatory: 0 element (2 nested mandatory elements)
Fixed Value: 3 elements
Prohibited: 3 elements

This structure is derived from Extension

NameFlagsCard.TypeDescription & Constraintsdoco
.. Extension 0..1ExtensionExtension
... extension:tag 0..1ExtensionInformation if it was an accident
.... extension 0..0
.... url 1..1uri"tag"
.... valueBoolean 1..1booleanFlag to indicate that it was an accident
... extension:datetime 0..1ExtensionTimestamp of the authorship/data input
.... extension 0..0
.... url 1..1uri"dateTime"
.... valueDateTime 1..1dateTimedate and time of accident
... url 1..1uri"http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-accident"

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. Extension 0..1ExtensionExtension
... id 0..1stringUnique id for inter-element referencing
... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
... extension:tag 0..1ExtensionInformation if it was an accident
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..0
.... url 1..1uri"tag"
.... value[x] 1..1(Slice Definition)Value of extension
Slice: Unordered, Closed by type:$this
..... value[x]:valueBoolean 1..1booleanFlag to indicate that it was an accident
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..0
.... url 1..1uri"dateTime"
.... value[x] 1..1(Slice Definition)Value of extension
Slice: Unordered, Closed by type:$this
..... value[x]:valueDateTime 1..1dateTimedate and time of accident
... url 1..1uri"http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-accident"

doco Documentation for this format

This structure is derived from Extension

Summary

Mandatory: 0 element (2 nested mandatory elements)
Fixed Value: 3 elements
Prohibited: 3 elements

Differential View

This structure is derived from Extension

NameFlagsCard.TypeDescription & Constraintsdoco
.. Extension 0..1ExtensionExtension
... extension:tag 0..1ExtensionInformation if it was an accident
.... extension 0..0
.... url 1..1uri"tag"
.... valueBoolean 1..1booleanFlag to indicate that it was an accident
... extension:datetime 0..1ExtensionTimestamp of the authorship/data input
.... extension 0..0
.... url 1..1uri"dateTime"
.... valueDateTime 1..1dateTimedate and time of accident
... url 1..1uri"http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-accident"

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Extension 0..1ExtensionExtension
... id 0..1stringUnique id for inter-element referencing
... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
... extension:tag 0..1ExtensionInformation if it was an accident
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..0
.... url 1..1uri"tag"
.... value[x] 1..1(Slice Definition)Value of extension
Slice: Unordered, Closed by type:$this
..... value[x]:valueBoolean 1..1booleanFlag to indicate that it was an accident
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..0
.... url 1..1uri"dateTime"
.... value[x] 1..1(Slice Definition)Value of extension
Slice: Unordered, Closed by type:$this
..... value[x]:valueDateTime 1..1dateTimedate and time of accident
... url 1..1uri"http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-accident"

doco Documentation for this format

 

Other representations of extension: Schematron

Constraints

IdPathDetailsRequirements
ele-1ExtensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1ExtensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Extension.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Extension.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Extension.extension:tagAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Extension.extension:tagMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Extension.extension:tag.value[x]All FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Extension.extension:tag.value[x]:valueBooleanAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Extension.extension:datetimeAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Extension.extension:datetimeMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Extension.extension:datetime.value[x]All FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Extension.extension:datetime.value[x]:valueDateTimeAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())