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. For a full list of available versions, see the Directory of published versions

Data Type Profile: Amount Quantity

Official URL: http://fhir.ch/ig/ch-emed-epr/StructureDefinition/ch-emed-epr-amount-quantity Version: 1.0.0
Draft as of 2024-01-26 Computable Name: CHEMEDEPRAmountQuantity

Copyright/Legal: CC0-1.0

A quantity with an amount unit (no time unit)

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 0..*CHEMEDQuantityWithEmedUnitsA fixed quantity (no comparator)
... id D0..1string✕ This element is not supported
... extension D0..*Extension✕ This element is not supported
... value C1..1decimalNumerical value (with implicit precision)
amount-quantity-int-or-simple-decimal: An amount quantity should be either an integer, or a decimal that ends with '.25', '.5', or '.75' for non-scientific units (like tablets, pillules, ampules, etc.)
... code 1..1codeCoded form of the unit
Binding: Amount Quantity Unit Codes (required)

doco Documentation for this format

Terminology Bindings (Differential)

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

Constraints

IdGradePath(s)DetailsRequirements
amount-quantity-int-or-simple-decimalwarningQuantity.valueAn amount quantity should be either an integer, or a decimal that ends with '.25', '.5', or '.75' for non-scientific units (like tablets, pillules, ampules, etc.)
: $this.toString().contains('.').not() or $this.toString().endsWith('.25') or $this.toString().endsWith('.5') or $this.toString().endsWith('.75')
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)
amount-quantity-int-or-simple-decimal: An amount quantity should be either an integer, or a decimal that ends with '.25', '.5', or '.75' for non-scientific units (like tablets, pillules, ampules, etc.)
... system ΣC1..1uriSystem of the code from Units of Presentation
... code Σ1..1codeCoded form of the unit
Binding: Amount Quantity Unit Codes (required)

doco Documentation for this format

Terminology Bindings

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

Constraints

IdGradePath(s)DetailsRequirements
amount-quantity-int-or-simple-decimalwarningQuantity.valueAn amount quantity should be either an integer, or a decimal that ends with '.25', '.5', or '.75' for non-scientific units (like tablets, pillules, ampules, etc.)
: $this.toString().contains('.').not() or $this.toString().endsWith('.25') or $this.toString().endsWith('.5') or $this.toString().endsWith('.75')
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()
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)
amount-quantity-int-or-simple-decimal: An amount quantity should be either an integer, or a decimal that ends with '.25', '.5', or '.75' for non-scientific units (like tablets, pillules, ampules, etc.)
... system ΣC1..1uriSystem of the code from Units of Presentation
... code Σ1..1codeCoded form of the unit
Binding: Amount Quantity Unit Codes (required)

doco Documentation for this format

Terminology Bindings

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

Constraints

IdGradePath(s)DetailsRequirements
amount-quantity-int-or-simple-decimalwarningQuantity.valueAn amount quantity should be either an integer, or a decimal that ends with '.25', '.5', or '.75' for non-scientific units (like tablets, pillules, ampules, etc.)
: $this.toString().contains('.').not() or $this.toString().endsWith('.25') or $this.toString().endsWith('.5') or $this.toString().endsWith('.75')
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()

This structure is derived from CHEMEDQuantityWithEmedUnits

Summary

Differential View

This structure is derived from CHEMEDQuantityWithEmedUnits

NameFlagsCard.TypeDescription & Constraintsdoco
.. Quantity 0..*CHEMEDQuantityWithEmedUnitsA fixed quantity (no comparator)
... id D0..1string✕ This element is not supported
... extension D0..*Extension✕ This element is not supported
... value C1..1decimalNumerical value (with implicit precision)
amount-quantity-int-or-simple-decimal: An amount quantity should be either an integer, or a decimal that ends with '.25', '.5', or '.75' for non-scientific units (like tablets, pillules, ampules, etc.)
... code 1..1codeCoded form of the unit
Binding: Amount Quantity Unit Codes (required)

doco Documentation for this format

Terminology Bindings (Differential)

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

Constraints

IdGradePath(s)DetailsRequirements
amount-quantity-int-or-simple-decimalwarningQuantity.valueAn amount quantity should be either an integer, or a decimal that ends with '.25', '.5', or '.75' for non-scientific units (like tablets, pillules, ampules, etc.)
: $this.toString().contains('.').not() or $this.toString().endsWith('.25') or $this.toString().endsWith('.5') or $this.toString().endsWith('.75')

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)
amount-quantity-int-or-simple-decimal: An amount quantity should be either an integer, or a decimal that ends with '.25', '.5', or '.75' for non-scientific units (like tablets, pillules, ampules, etc.)
... system ΣC1..1uriSystem of the code from Units of Presentation
... code Σ1..1codeCoded form of the unit
Binding: Amount Quantity Unit Codes (required)

doco Documentation for this format

Terminology Bindings

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

Constraints

IdGradePath(s)DetailsRequirements
amount-quantity-int-or-simple-decimalwarningQuantity.valueAn amount quantity should be either an integer, or a decimal that ends with '.25', '.5', or '.75' for non-scientific units (like tablets, pillules, ampules, etc.)
: $this.toString().contains('.').not() or $this.toString().endsWith('.25') or $this.toString().endsWith('.5') or $this.toString().endsWith('.75')
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()

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)
amount-quantity-int-or-simple-decimal: An amount quantity should be either an integer, or a decimal that ends with '.25', '.5', or '.75' for non-scientific units (like tablets, pillules, ampules, etc.)
... system ΣC1..1uriSystem of the code from Units of Presentation
... code Σ1..1codeCoded form of the unit
Binding: Amount Quantity Unit Codes (required)

doco Documentation for this format

Terminology Bindings

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

Constraints

IdGradePath(s)DetailsRequirements
amount-quantity-int-or-simple-decimalwarningQuantity.valueAn amount quantity should be either an integer, or a decimal that ends with '.25', '.5', or '.75' for non-scientific units (like tablets, pillules, ampules, etc.)
: $this.toString().contains('.').not() or $this.toString().endsWith('.25') or $this.toString().endsWith('.5') or $this.toString().endsWith('.75')
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()

This structure is derived from CHEMEDQuantityWithEmedUnits

Summary

 

Other representations of profile: CSV, Excel, Schematron