CH Core (R4)
7.0.0-ballot - ballot Switzerland flag

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

Data Type Profile: CH Core Quantity with EMED Units

Official URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-quantity-with-emed-units Version: 7.0.0-ballot
Active as of 2026-10-21 Computable Name: CHCoreQuantityWithEmedUnits

Copyright/Legal: CC0-1.0

A quantity with defined units

Usages:

You can also check for usages in the FHIR IG Statistics

Formal Views of Profile Content

Description Differentials, Snapshots, and other representations.

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Quantity C 0..* SimpleQuantity A fixed quantity (no comparator)
Constraints: qty-3, sqty-1
Quantity.value This element is included in summaries. 1..1 decimal Numerical value (with implicit precision)
Quantity.unit This element is included in summaries. 1..1 string Unit representation
Quantity.system This element is included in summaries. C 1..1 uri System that defines coded unit form
Quantity.code This element is included in summaries. 1..1 code Coded form of the unit
Binding: UnitCode (preferred)

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Quantity.code Base preferred UnitCode 📦3.4.0 CH Term v3.4

Constraints

Id Grade Path(s) Description Expression
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
qty-3 error Quantity If a code for the unit is present, the system SHALL also be present code.empty() or system.exists()
sqty-1 error Quantity The comparator is not used on a SimpleQuantity comparator.empty()

This structure is derived from SimpleQuantity

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Quantity SimpleQuantity
Quantity.value 1..1 decimal Numerical value (with implicit precision)
Quantity.unit 1..1 string Unit representation
Quantity.system 1..1 uri System that defines coded unit form

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
Quantity.code Base preferred UnitCode 📦3.4.0 CH Term v3.4
NameFlagsCard.TypeDescription & Constraints    Filter: doco
Quantity C 0..* SimpleQuantity A fixed quantity (no comparator)
Constraints: qty-3, sqty-1
Quantity.id 0..1 string Unique id for inter-element referencing
Quantity.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Quantity.value This element is included in summaries. 1..1 decimal Numerical value (with implicit precision)
Quantity.unit This element is included in summaries. 1..1 string Unit representation
Quantity.system This element is included in summaries. C 1..1 uri System that defines coded unit form
Quantity.code This element is included in summaries. 1..1 code Coded form of the unit
Binding: UnitCode (preferred)

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Quantity.code Base preferred UnitCode 📦3.4.0 CH Term v3.4

Constraints

Id Grade Path(s) Description Expression
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()
qty-3 error Quantity If a code for the unit is present, the system SHALL also be present code.empty() or system.exists()
sqty-1 error Quantity The comparator is not used on a SimpleQuantity comparator.empty()

This structure is derived from SimpleQuantity

Summary

Mandatory: 4 elements

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Quantity C 0..* SimpleQuantity A fixed quantity (no comparator)
Constraints: qty-3, sqty-1
Quantity.value This element is included in summaries. 1..1 decimal Numerical value (with implicit precision)
Quantity.unit This element is included in summaries. 1..1 string Unit representation
Quantity.system This element is included in summaries. C 1..1 uri System that defines coded unit form
Quantity.code This element is included in summaries. 1..1 code Coded form of the unit
Binding: UnitCode (preferred)

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Quantity.code Base preferred UnitCode 📦3.4.0 CH Term v3.4

Constraints

Id Grade Path(s) Description Expression
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
qty-3 error Quantity If a code for the unit is present, the system SHALL also be present code.empty() or system.exists()
sqty-1 error Quantity The comparator is not used on a SimpleQuantity comparator.empty()

Differential View

This structure is derived from SimpleQuantity

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Quantity SimpleQuantity
Quantity.value 1..1 decimal Numerical value (with implicit precision)
Quantity.unit 1..1 string Unit representation
Quantity.system 1..1 uri System that defines coded unit form
Quantity.code 1..1 code Coded form of the unit
Binding: UnitCode (preferred)

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
Quantity.code Base preferred UnitCode 📦3.4.0 CH Term v3.4

Snapshot ViewView

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Quantity C 0..* SimpleQuantity A fixed quantity (no comparator)
Constraints: qty-3, sqty-1
Quantity.id 0..1 string Unique id for inter-element referencing
Quantity.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Quantity.value This element is included in summaries. 1..1 decimal Numerical value (with implicit precision)
Quantity.unit This element is included in summaries. 1..1 string Unit representation
Quantity.system This element is included in summaries. C 1..1 uri System that defines coded unit form
Quantity.code This element is included in summaries. 1..1 code Coded form of the unit
Binding: UnitCode (preferred)

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Quantity.code Base preferred UnitCode 📦3.4.0 CH Term v3.4

Constraints

Id Grade Path(s) Description Expression
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()
qty-3 error Quantity If a code for the unit is present, the system SHALL also be present code.empty() or system.exists()
sqty-1 error Quantity The comparator is not used on a SimpleQuantity comparator.empty()

This structure is derived from SimpleQuantity

Summary

Mandatory: 4 elements

 

Other representations of profile: CSV, Excel, Schematron