CH EMED EPR
2.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 (v2.0.0: STU2) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version. For a full list of available versions, see the Directory of published versions

Data Type Profile: Amount Range

Official URL: http://fhir.ch/ig/ch-emed-epr/StructureDefinition/ch-emed-epr-amount-range Version: 2.0.0
Draft as of 2025-01-21 Computable Name: CHEMEDEPRAmountRange

Copyright/Legal: CC0-1.0

A range of amount quantities

Usage:

Formal Views of Profile Content

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

NameFlagsCard.TypeDescription & Constraintsdoco
.. Range C 0..* CHCoreRangeWithEmedUnits Set of values bounded by low and high
ele-1: All FHIR elements must have a @value or children
rng-2: If present, low SHALL have a lower value than high
... 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
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... low C 1..1 CHEMEDEPRAmountQuantity A fixed quantity (no comparator)
ele-1: All FHIR elements must have a @value or children
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

doco Documentation for this format

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-3errorRange.low, Range.highIf a code for the unit is present, the system SHALL also be present
: code.empty() or system.exists()
rng-2errorRangeIf present, low SHALL have a lower value than high
: low.empty() or high.empty() or (low <= high)
sqty-1errorRange.low, Range.highThe comparator is not used on a SimpleQuantity
: comparator.empty()

This structure is derived from CHCoreRangeWithEmedUnits

NameFlagsCard.TypeDescription & Constraintsdoco
.. Range 0..* CHCoreRangeWithEmedUnits Set of values bounded by low and high
... id D 0..1 string ✕ This element is not supported
... extension D 0..* Extension ✕ This element is not supported
... low 1..1 CHEMEDEPRAmountQuantity A fixed quantity (no comparator)

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. Range C 0..* CHCoreRangeWithEmedUnits Set of values bounded by low and high
rng-2: If present, low SHALL have a lower value than high
... 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
... low C 1..1 CHEMEDEPRAmountQuantity 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

doco Documentation for this format

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-3errorRange.low, Range.highIf a code for the unit is present, the system SHALL also be present
: code.empty() or system.exists()
rng-2errorRangeIf present, low SHALL have a lower value than high
: low.empty() or high.empty() or (low <= high)
sqty-1errorRange.low, Range.highThe comparator is not used on a SimpleQuantity
: comparator.empty()

This structure is derived from CHCoreRangeWithEmedUnits

Summary

Mandatory: 2 elements

Structures

This structure refers to these other structures:

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Range C 0..* CHCoreRangeWithEmedUnits Set of values bounded by low and high
ele-1: All FHIR elements must have a @value or children
rng-2: If present, low SHALL have a lower value than high
... 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
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... low C 1..1 CHEMEDEPRAmountQuantity A fixed quantity (no comparator)
ele-1: All FHIR elements must have a @value or children
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

doco Documentation for this format

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-3errorRange.low, Range.highIf a code for the unit is present, the system SHALL also be present
: code.empty() or system.exists()
rng-2errorRangeIf present, low SHALL have a lower value than high
: low.empty() or high.empty() or (low <= high)
sqty-1errorRange.low, Range.highThe comparator is not used on a SimpleQuantity
: comparator.empty()

Differential View

This structure is derived from CHCoreRangeWithEmedUnits

NameFlagsCard.TypeDescription & Constraintsdoco
.. Range 0..* CHCoreRangeWithEmedUnits Set of values bounded by low and high
... id D 0..1 string ✕ This element is not supported
... extension D 0..* Extension ✕ This element is not supported
... low 1..1 CHEMEDEPRAmountQuantity A fixed quantity (no comparator)

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Range C 0..* CHCoreRangeWithEmedUnits Set of values bounded by low and high
rng-2: If present, low SHALL have a lower value than high
... 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
... low C 1..1 CHEMEDEPRAmountQuantity 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

doco Documentation for this format

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-3errorRange.low, Range.highIf a code for the unit is present, the system SHALL also be present
: code.empty() or system.exists()
rng-2errorRangeIf present, low SHALL have a lower value than high
: low.empty() or high.empty() or (low <= high)
sqty-1errorRange.low, Range.highThe comparator is not used on a SimpleQuantity
: comparator.empty()

This structure is derived from CHCoreRangeWithEmedUnits

Summary

Mandatory: 2 elements

Structures

This structure refers to these other structures:

 

Other representations of profile: CSV, Excel, Schematron