CH EMED (R4)
4.0.1 - trial-use Switzerland flag

This page is part of the CH EMED (R4) (v4.0.1: STU 4) 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: CH EMED Quantity with Units

Official URL: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-quantity Version: 4.0.1
Active as of 2021-02-11 Computable Name: CHEMEDQuantityWithEmedUnits

Copyright/Legal: CC0-1.0

A quantity with defined units

Usage:

Formal Views of Profile Content

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

This structure is derived from SimpleQuantity

NameFlagsCard.TypeDescription & Constraintsdoco
.. Quantity SimpleQuantity
... value 1..1decimalNumerical value (with implicit precision)
... unit 1..1stringUnit representation
... system 1..1uriSystem of the code from Units of Presentation

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSet
Quantity.coderequiredUnitCode
NameFlagsCard.TypeDescription & Constraintsdoco
.. Quantity C0..*SimpleQuantityA fixed quantity (no comparator)
... value Σ1..1decimalNumerical value (with implicit precision)
... unit Σ1..1stringUnit representation
... system ΣC1..1uriSystem of the code from Units of Presentation

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Quantity.coderequiredUnitCode

Constraints

IdGradePath(s)DetailsRequirements
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
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..*SimpleQuantityA fixed quantity (no comparator)
... id 0..1stringUnique id for inter-element referencing
... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
... value Σ1..1decimalNumerical value (with implicit precision)
... system ΣC1..1uriSystem of the code from Units of Presentation
... code Σ1..1codeCoded form of the unit
Binding: UnitCode (required): The coded unit used describing the quantity.


doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Quantity.coderequiredUnitCode

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()

This structure is derived from SimpleQuantity

Summary

Mandatory: 4 elements

Differential View

This structure is derived from SimpleQuantity

NameFlagsCard.TypeDescription & Constraintsdoco
.. Quantity SimpleQuantity
... value 1..1decimalNumerical value (with implicit precision)
... unit 1..1stringUnit representation
... system 1..1uriSystem of the code from Units of Presentation

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSet
Quantity.coderequiredUnitCode

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Quantity C0..*SimpleQuantityA fixed quantity (no comparator)
... value Σ1..1decimalNumerical value (with implicit precision)
... unit Σ1..1stringUnit representation
... system ΣC1..1uriSystem of the code from Units of Presentation

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Quantity.coderequiredUnitCode

Constraints

IdGradePath(s)DetailsRequirements
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
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..*SimpleQuantityA fixed quantity (no comparator)
... id 0..1stringUnique id for inter-element referencing
... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
... value Σ1..1decimalNumerical value (with implicit precision)
... system ΣC1..1uriSystem of the code from Units of Presentation
... code Σ1..1codeCoded form of the unit
Binding: UnitCode (required): The coded unit used describing the quantity.


doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Quantity.coderequiredUnitCode

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()

This structure is derived from SimpleQuantity

Summary

Mandatory: 4 elements

 

Other representations of profile: CSV, Excel, Schematron