CH EMED EPR
1.0.1-ci-build - ci-build Switzerland flag

CH EMED EPR, published by CARA. This guide is not an authorized publication; it is the continuous build for version 1.0.1-ci-build built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/CARA-ch/ch-emed-epr/ and changes regularly. 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: 1.0.1-ci-build
Draft as of 2024-04-05 Computable Name: CHEMEDEPRTimeQuantity

Copyright/Legal: CC0-1.0

A quantity with a time unit (a duration)

Usage:

Formal Views of Profile Content

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

This structure is derived from CHCoreQuantityWithEmedUnits

NameFlagsCard.TypeDescription & Constraintsdoco
.. 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)
time-quantity-strict-positive: A time quantity shall have a strictly positive value
time-quantity-only-integer: A time quantity shall only have an integer value
... 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)

PathConformanceValueSetURI
Quantity.coderequiredCHEMEDEPRTimeQuantityUnitCode
http://fhir.ch/ig/ch-emed-epr/ValueSet/ch-emed-epr-time-quantity-unit-code
from this IG

Constraints

IdGradePath(s)DetailsRequirements
time-quantity-only-integererrorQuantity.valueA time quantity shall only have an integer value
: $this.convertsToInteger()
time-quantity-strict-positiveerrorQuantity.valueA time quantity shall have a strictly positive value
: $this > 0
NameFlagsCard.TypeDescription & Constraintsdoco
.. Quantity C 0..* CHCoreQuantityWithEmedUnits A fixed quantity (no comparator)
qty-3: If a code for the unit is present, the system SHALL also be present
sqty-1: The comparator is not used on a SimpleQuantity
... id 0..1 string ✕ This element is not supported
... extension 0..* Extension ✕ This element is not supported
Slice: Unordered, Open by value:url
... value ΣC 1..1 decimal Numerical value (with implicit precision)
time-quantity-strict-positive: A time quantity shall have a strictly positive value
time-quantity-only-integer: A time quantity shall only have an integer value
... 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

PathConformanceValueSetURI
Quantity.coderequiredCHEMEDEPRTimeQuantityUnitCode
http://fhir.ch/ig/ch-emed-epr/ValueSet/ch-emed-epr-time-quantity-unit-code
from this IG

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()
qty-3errorQuantityIf a code for the unit is present, the system SHALL also be present
: code.empty() or system.exists()
sqty-1errorQuantityThe comparator is not used on a SimpleQuantity
: comparator.empty()
time-quantity-only-integererrorQuantity.valueA time quantity shall only have an integer value
: $this.convertsToInteger()
time-quantity-strict-positiveerrorQuantity.valueA time quantity shall have a strictly positive value
: $this > 0
NameFlagsCard.TypeDescription & Constraintsdoco
.. Quantity C 0..* CHCoreQuantityWithEmedUnits A fixed quantity (no comparator)
qty-3: If a code for the unit is present, the system SHALL also be present
sqty-1: The comparator is not used on a SimpleQuantity
... id 0..1 string ✕ This element is not supported
... extension 0..* Extension ✕ This element is not supported
Slice: Unordered, Open by value:url
... value ΣC 1..1 decimal Numerical value (with implicit precision)
time-quantity-strict-positive: A time quantity shall have a strictly positive value
time-quantity-only-integer: A time quantity shall only have an integer value
... 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

PathConformanceValueSetURI
Quantity.coderequiredCHEMEDEPRTimeQuantityUnitCode
http://fhir.ch/ig/ch-emed-epr/ValueSet/ch-emed-epr-time-quantity-unit-code
from this IG

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()
qty-3errorQuantityIf a code for the unit is present, the system SHALL also be present
: code.empty() or system.exists()
sqty-1errorQuantityThe comparator is not used on a SimpleQuantity
: comparator.empty()
time-quantity-only-integererrorQuantity.valueA time quantity shall only have an integer value
: $this.convertsToInteger()
time-quantity-strict-positiveerrorQuantity.valueA time quantity shall have a strictly positive value
: $this > 0

This structure is derived from CHCoreQuantityWithEmedUnits

Summary

Differential View

This structure is derived from CHCoreQuantityWithEmedUnits

NameFlagsCard.TypeDescription & Constraintsdoco
.. 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)
time-quantity-strict-positive: A time quantity shall have a strictly positive value
time-quantity-only-integer: A time quantity shall only have an integer value
... 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)

PathConformanceValueSetURI
Quantity.coderequiredCHEMEDEPRTimeQuantityUnitCode
http://fhir.ch/ig/ch-emed-epr/ValueSet/ch-emed-epr-time-quantity-unit-code
from this IG

Constraints

IdGradePath(s)DetailsRequirements
time-quantity-only-integererrorQuantity.valueA time quantity shall only have an integer value
: $this.convertsToInteger()
time-quantity-strict-positiveerrorQuantity.valueA time quantity shall have a strictly positive value
: $this > 0

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Quantity C 0..* CHCoreQuantityWithEmedUnits A fixed quantity (no comparator)
qty-3: If a code for the unit is present, the system SHALL also be present
sqty-1: The comparator is not used on a SimpleQuantity
... id 0..1 string ✕ This element is not supported
... extension 0..* Extension ✕ This element is not supported
Slice: Unordered, Open by value:url
... value ΣC 1..1 decimal Numerical value (with implicit precision)
time-quantity-strict-positive: A time quantity shall have a strictly positive value
time-quantity-only-integer: A time quantity shall only have an integer value
... 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

PathConformanceValueSetURI
Quantity.coderequiredCHEMEDEPRTimeQuantityUnitCode
http://fhir.ch/ig/ch-emed-epr/ValueSet/ch-emed-epr-time-quantity-unit-code
from this IG

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()
qty-3errorQuantityIf a code for the unit is present, the system SHALL also be present
: code.empty() or system.exists()
sqty-1errorQuantityThe comparator is not used on a SimpleQuantity
: comparator.empty()
time-quantity-only-integererrorQuantity.valueA time quantity shall only have an integer value
: $this.convertsToInteger()
time-quantity-strict-positiveerrorQuantity.valueA time quantity shall have a strictly positive value
: $this > 0

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Quantity C 0..* CHCoreQuantityWithEmedUnits A fixed quantity (no comparator)
qty-3: If a code for the unit is present, the system SHALL also be present
sqty-1: The comparator is not used on a SimpleQuantity
... id 0..1 string ✕ This element is not supported
... extension 0..* Extension ✕ This element is not supported
Slice: Unordered, Open by value:url
... value ΣC 1..1 decimal Numerical value (with implicit precision)
time-quantity-strict-positive: A time quantity shall have a strictly positive value
time-quantity-only-integer: A time quantity shall only have an integer value
... 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

PathConformanceValueSetURI
Quantity.coderequiredCHEMEDEPRTimeQuantityUnitCode
http://fhir.ch/ig/ch-emed-epr/ValueSet/ch-emed-epr-time-quantity-unit-code
from this IG

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()
qty-3errorQuantityIf a code for the unit is present, the system SHALL also be present
: code.empty() or system.exists()
sqty-1errorQuantityThe comparator is not used on a SimpleQuantity
: comparator.empty()
time-quantity-only-integererrorQuantity.valueA time quantity shall only have an integer value
: $this.convertsToInteger()
time-quantity-strict-positiveerrorQuantity.valueA time quantity shall have a strictly positive value
: $this > 0

This structure is derived from CHCoreQuantityWithEmedUnits

Summary

 

Other representations of profile: CSV, Excel, Schematron