CH Core (R4)
6.0.0 - trial-use Switzerland flag

This page is part of the CH Core (R4) (v6.0.0: STU 6) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, 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: 6.0.0
Active as of 2025-12-16 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 of Profiles, Differentials, Snapshots and how the different presentations work.

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Quantity C 0..* SimpleQuantity A fixed quantity (no comparator)
Constraints: qty-3, sqty-1
... value Σ 1..1 decimal Numerical value (with implicit precision)
... unit Σ 1..1 string Unit representation
... system ΣC 1..1 uri System that defines coded unit form

doco Documentation for this format

Terminology Bindings

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

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: Filtersdoco
.. Quantity SimpleQuantity
... value 1..1 decimal Numerical value (with implicit precision)
... unit 1..1 string Unit representation
... 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.3.0 CH Term v3.3
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Quantity C 0..* SimpleQuantity A fixed quantity (no comparator)
Constraints: qty-3, sqty-1
... id 0..1 string Unique id for inter-element referencing
... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
... value Σ 1..1 decimal Numerical value (with implicit precision)
... system ΣC 1..1 uri System that defines coded unit form
... code Σ 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.3.0 CH Term v3.3

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: Filtersdoco
.. Quantity C 0..* SimpleQuantity A fixed quantity (no comparator)
Constraints: qty-3, sqty-1
... value Σ 1..1 decimal Numerical value (with implicit precision)
... unit Σ 1..1 string Unit representation
... system ΣC 1..1 uri System that defines coded unit form

doco Documentation for this format

Terminology Bindings

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

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: Filtersdoco
.. Quantity SimpleQuantity
... value 1..1 decimal Numerical value (with implicit precision)
... unit 1..1 string Unit representation
... 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.3.0 CH Term v3.3

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Quantity C 0..* SimpleQuantity A fixed quantity (no comparator)
Constraints: qty-3, sqty-1
... id 0..1 string Unique id for inter-element referencing
... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
... value Σ 1..1 decimal Numerical value (with implicit precision)
... system ΣC 1..1 uri System that defines coded unit form
... code Σ 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.3.0 CH Term v3.3

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