CH EMED EPR
1.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 (v1.0.0: STU1) 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: 1.0.0
Draft as of 2024-01-26 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 CHEMEDQuantityWithEmedUnits

NameFlagsCard.TypeDescription & Constraintsdoco
.. Quantity CHEMEDQuantityWithEmedUnits
... id D0..1string✕ This element is not supported
... extension D0..*Extension✕ This element is not supported
... value C1..1decimalNumerical 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..1uriSystem of the code from Units of Presentation
Required Pattern: http://unitsofmeasure.org
... code 1..1codeCoded 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 C0..*CHEMEDQuantityWithEmedUnitsA fixed quantity (no comparator)
... id 0..1string✕ This element is not supported
... extension 0..*Extension✕ This element is not supported
Slice: Unordered, Open by value:url
... value ΣC1..1decimalNumerical 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 ΣC1..1uriSystem of the code from Units of Presentation
Required Pattern: http://unitsofmeasure.org
... code Σ1..1codeCoded 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 C0..*CHEMEDQuantityWithEmedUnitsA fixed quantity (no comparator)
... id 0..1string✕ This element is not supported
... extension 0..*Extension✕ This element is not supported
Slice: Unordered, Open by value:url
... value ΣC1..1decimalNumerical 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 ΣC1..1uriSystem of the code from Units of Presentation
Required Pattern: http://unitsofmeasure.org
... code Σ1..1codeCoded 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 CHEMEDQuantityWithEmedUnits

Summary

Differential View

This structure is derived from CHEMEDQuantityWithEmedUnits

NameFlagsCard.TypeDescription & Constraintsdoco
.. Quantity CHEMEDQuantityWithEmedUnits
... id D0..1string✕ This element is not supported
... extension D0..*Extension✕ This element is not supported
... value C1..1decimalNumerical 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..1uriSystem of the code from Units of Presentation
Required Pattern: http://unitsofmeasure.org
... code 1..1codeCoded 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 C0..*CHEMEDQuantityWithEmedUnitsA fixed quantity (no comparator)
... id 0..1string✕ This element is not supported
... extension 0..*Extension✕ This element is not supported
Slice: Unordered, Open by value:url
... value ΣC1..1decimalNumerical 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 ΣC1..1uriSystem of the code from Units of Presentation
Required Pattern: http://unitsofmeasure.org
... code Σ1..1codeCoded 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 C0..*CHEMEDQuantityWithEmedUnitsA fixed quantity (no comparator)
... id 0..1string✕ This element is not supported
... extension 0..*Extension✕ This element is not supported
Slice: Unordered, Open by value:url
... value ΣC1..1decimalNumerical 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 ΣC1..1uriSystem of the code from Units of Presentation
Required Pattern: http://unitsofmeasure.org
... code Σ1..1codeCoded 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 CHEMEDQuantityWithEmedUnits

Summary

 

Other representations of profile: CSV, Excel, Schematron