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 Ratio with Units

Official URL: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ratio Version: 4.0.1
Active as of 2021-04-07 Computable Name: CHEMEDRatioWithEmedUnits

Copyright/Legal: CC0-1.0

A ratio with defined units

Usage:

Formal Views of Profile Content

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

NameFlagsCard.TypeDescription & Constraintsdoco
.. Ratio C0..*RatioA ratio of two Quantity values - a numerator and a denominator
... numerator C1..1CHEMEDQuantityWithEmedUnitsA fixed quantity (no comparator)
... denominator C1..1CHEMEDQuantityWithEmedUnitsA fixed quantity (no comparator)

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())
qty-3errorRatio.numerator, Ratio.denominatorIf a code for the unit is present, the system SHALL also be present
: code.empty() or system.exists()
rat-1errorRatioNumerator and denominator SHALL both be present, or both are absent. If both are absent, there SHALL be some extension present
: (numerator.empty() xor denominator.exists()) and (numerator.exists() or extension.exists())
sqty-1errorRatio.numerator, Ratio.denominatorThe comparator is not used on a SimpleQuantity
: comparator.empty()
NameFlagsCard.TypeDescription & Constraintsdoco
.. Ratio C0..*RatioA ratio of two Quantity values - a numerator and a denominator
... id 0..1stringUnique id for inter-element referencing
... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
... numerator C1..1CHEMEDQuantityWithEmedUnitsA fixed quantity (no comparator)

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-3errorRatio.numerator, Ratio.denominatorIf a code for the unit is present, the system SHALL also be present
: code.empty() or system.exists()
rat-1errorRatioNumerator and denominator SHALL both be present, or both are absent. If both are absent, there SHALL be some extension present
: (numerator.empty() xor denominator.exists()) and (numerator.exists() or extension.exists())
sqty-1errorRatio.numerator, Ratio.denominatorThe comparator is not used on a SimpleQuantity
: comparator.empty()

This structure is derived from Ratio

Summary

Mandatory: 2 elements

Structures

This structure refers to these other structures:

Differential View

This structure is derived from Ratio

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Ratio C0..*RatioA ratio of two Quantity values - a numerator and a denominator
... numerator C1..1CHEMEDQuantityWithEmedUnitsA fixed quantity (no comparator)
... denominator C1..1CHEMEDQuantityWithEmedUnitsA fixed quantity (no comparator)

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())
qty-3errorRatio.numerator, Ratio.denominatorIf a code for the unit is present, the system SHALL also be present
: code.empty() or system.exists()
rat-1errorRatioNumerator and denominator SHALL both be present, or both are absent. If both are absent, there SHALL be some extension present
: (numerator.empty() xor denominator.exists()) and (numerator.exists() or extension.exists())
sqty-1errorRatio.numerator, Ratio.denominatorThe comparator is not used on a SimpleQuantity
: comparator.empty()

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Ratio C0..*RatioA ratio of two Quantity values - a numerator and a denominator
... id 0..1stringUnique id for inter-element referencing
... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
... numerator C1..1CHEMEDQuantityWithEmedUnitsA fixed quantity (no comparator)

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-3errorRatio.numerator, Ratio.denominatorIf a code for the unit is present, the system SHALL also be present
: code.empty() or system.exists()
rat-1errorRatioNumerator and denominator SHALL both be present, or both are absent. If both are absent, there SHALL be some extension present
: (numerator.empty() xor denominator.exists()) and (numerator.exists() or extension.exists())
sqty-1errorRatio.numerator, Ratio.denominatorThe comparator is not used on a SimpleQuantity
: comparator.empty()

This structure is derived from Ratio

Summary

Mandatory: 2 elements

Structures

This structure refers to these other structures:

 

Other representations of profile: CSV, Excel, Schematron