CH EMED EPR
3.0.0 - trial-use Switzerland flag

This page is part of the FHIR eMedication exchange formats for the implementation effort of CARA within its EPR community (v3.0.0: STU3) 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: Time Quantity

Official URL: http://fhir.ch/ig/ch-emed-epr/StructureDefinition/ch-emed-epr-time-quantity Version: 3.0.0
Draft as of 2026-02-11 Computable Name: CHEMEDEPRTimeQuantity

Copyright/Legal: CC0-1.0

A quantity with a time unit (a duration)

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..* CHCoreQuantityWithEmedUnits A fixed quantity (no comparator)
Constraints: qty-3, sqty-1
... id D 0..1 string ✕ This element is not supported
... extension D 0..* Extension ✕ This element is not supported
Slice: Unordered, Open by value:url
... value ΣC 1..1 decimal Numerical value (with implicit precision)
Constraints: time-quantity-strict-positive, time-quantity-only-integer
... system ΣC 1..1 uri System that defines coded unit form
Required Pattern: http://unitsofmeasure.org
... code Σ 1..1 code Coded form of the unit
Binding: Time Quantity Unit Codes (required)

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Quantity.code Base required Time Quantity Unit Codes 📦3.0.0 This IG

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()
time-quantity-only-integer error Quantity.value A time quantity shall only have an integer value $this.toString().convertsToInteger()
time-quantity-strict-positive error Quantity.value A time quantity shall have a strictly positive value $this > 0

This structure is derived from CHCoreQuantityWithEmedUnits

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Quantity CHCoreQuantityWithEmedUnits
... id D 0..1 string ✕ This element is not supported
... extension D 0..* Extension ✕ This element is not supported
... value C 1..1 decimal Numerical value (with implicit precision)
Constraints: time-quantity-strict-positive, time-quantity-only-integer
... system 1..1 uri System that defines coded unit form
Required Pattern: http://unitsofmeasure.org
... code 1..1 code Coded form of the unit
Binding: Time Quantity Unit Codes (required)

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
Quantity.code Base required Time Quantity Unit Codes 📦3.0.0 This IG

Constraints

Id Grade Path(s) Description Expression
time-quantity-only-integer error Quantity.value A time quantity shall only have an integer value $this.toString().convertsToInteger()
time-quantity-strict-positive error Quantity.value A time quantity shall have a strictly positive value $this > 0
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Quantity C 0..* CHCoreQuantityWithEmedUnits A fixed quantity (no comparator)
Constraints: qty-3, sqty-1
... id D 0..1 string ✕ This element is not supported
... extension D 0..* Extension ✕ This element is not supported
Slice: Unordered, Open by value:url
... value ΣC 1..1 decimal Numerical value (with implicit precision)
Constraints: time-quantity-strict-positive, time-quantity-only-integer
... system ΣC 1..1 uri System that defines coded unit form
Required Pattern: http://unitsofmeasure.org
... code Σ 1..1 code Coded form of the unit
Binding: Time Quantity Unit Codes (required)

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Quantity.code Base required Time Quantity Unit Codes 📦3.0.0 This IG

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()
time-quantity-only-integer error Quantity.value A time quantity shall only have an integer value $this.toString().convertsToInteger()
time-quantity-strict-positive error Quantity.value A time quantity shall have a strictly positive value $this > 0

This structure is derived from CHCoreQuantityWithEmedUnits

Summary

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Quantity C 0..* CHCoreQuantityWithEmedUnits A fixed quantity (no comparator)
Constraints: qty-3, sqty-1
... id D 0..1 string ✕ This element is not supported
... extension D 0..* Extension ✕ This element is not supported
Slice: Unordered, Open by value:url
... value ΣC 1..1 decimal Numerical value (with implicit precision)
Constraints: time-quantity-strict-positive, time-quantity-only-integer
... system ΣC 1..1 uri System that defines coded unit form
Required Pattern: http://unitsofmeasure.org
... code Σ 1..1 code Coded form of the unit
Binding: Time Quantity Unit Codes (required)

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Quantity.code Base required Time Quantity Unit Codes 📦3.0.0 This IG

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()
time-quantity-only-integer error Quantity.value A time quantity shall only have an integer value $this.toString().convertsToInteger()
time-quantity-strict-positive error Quantity.value A time quantity shall have a strictly positive value $this > 0

Differential View

This structure is derived from CHCoreQuantityWithEmedUnits

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Quantity CHCoreQuantityWithEmedUnits
... id D 0..1 string ✕ This element is not supported
... extension D 0..* Extension ✕ This element is not supported
... value C 1..1 decimal Numerical value (with implicit precision)
Constraints: time-quantity-strict-positive, time-quantity-only-integer
... system 1..1 uri System that defines coded unit form
Required Pattern: http://unitsofmeasure.org
... code 1..1 code Coded form of the unit
Binding: Time Quantity Unit Codes (required)

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
Quantity.code Base required Time Quantity Unit Codes 📦3.0.0 This IG

Constraints

Id Grade Path(s) Description Expression
time-quantity-only-integer error Quantity.value A time quantity shall only have an integer value $this.toString().convertsToInteger()
time-quantity-strict-positive error Quantity.value A time quantity shall have a strictly positive value $this > 0

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Quantity C 0..* CHCoreQuantityWithEmedUnits A fixed quantity (no comparator)
Constraints: qty-3, sqty-1
... id D 0..1 string ✕ This element is not supported
... extension D 0..* Extension ✕ This element is not supported
Slice: Unordered, Open by value:url
... value ΣC 1..1 decimal Numerical value (with implicit precision)
Constraints: time-quantity-strict-positive, time-quantity-only-integer
... system ΣC 1..1 uri System that defines coded unit form
Required Pattern: http://unitsofmeasure.org
... code Σ 1..1 code Coded form of the unit
Binding: Time Quantity Unit Codes (required)

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Quantity.code Base required Time Quantity Unit Codes 📦3.0.0 This IG

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()
time-quantity-only-integer error Quantity.value A time quantity shall only have an integer value $this.toString().convertsToInteger()
time-quantity-strict-positive error Quantity.value A time quantity shall have a strictly positive value $this > 0

This structure is derived from CHCoreQuantityWithEmedUnits

Summary

 

Other representations of profile: CSV, Excel, Schematron