CH EMED (R4)
0.2.0 - STU 1 Informative Ballot

This page is part of the CH EMED (R4) (v0.2.0: STU 1) based on FHIR (HL7® FHIR® Standard) R4. The current version which supersedes this version is 6.0.0. For a full list of available versions, see the Directory of published versions

Data Type Profile: CH EMED Quantity with units

Defining URL:http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-quantity
Version:0.2.0
Name:CHEMEDQuantityWithEmedUnits
Title:CH EMED Quantity with units
Status:Active as of 2021-02-11
Definition:

A quantity with defined units

Publisher:eHealth Suisse
Copyright:

CC-BY-SA-4.0

Source Resource:XML / JSON / Turtle

The official URL for this profile is:

http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-quantity

Formal Views of Profile Content

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

This structure is derived from SimpleQuantity

Summary

This structure is derived from SimpleQuantity

NameFlagsCard.TypeDescription & Constraintsdoco
.. Quantity 0..*SimpleQuantityA fixed quantity (no comparator)
... code 0..1codeCoded form of the unit
Binding: UnitsOfPresentation (required): The unit used describing the quantity.


doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. Quantity I0..*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 Σ0..1decimalNumerical value (with implicit precision)
... system ΣI0..1uriSystem that defines coded unit form
... code Σ0..1codeCoded form of the unit
Binding: UnitsOfPresentation (required): The unit used describing the quantity.


doco Documentation for this format

This structure is derived from SimpleQuantity

Summary

Differential View

This structure is derived from SimpleQuantity

NameFlagsCard.TypeDescription & Constraintsdoco
.. Quantity 0..*SimpleQuantityA fixed quantity (no comparator)
... code 0..1codeCoded form of the unit
Binding: UnitsOfPresentation (required): The unit used describing the quantity.


doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Quantity I0..*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 Σ0..1decimalNumerical value (with implicit precision)
... system ΣI0..1uriSystem that defines coded unit form
... code Σ0..1codeCoded form of the unit
Binding: UnitsOfPresentation (required): The unit used describing the quantity.


doco Documentation for this format

 

Other representations of profile: Schematron

Terminology Bindings

PathConformanceValueSet
Quantity.coderequiredUnitsOfPresentation

Constraints

IdPathDetailsRequirements
ele-1QuantityAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
qty-3QuantityIf a code for the unit is present, the system SHALL also be present
: code.empty() or system.exists()
sqty-1QuantityThe comparator is not used on a SimpleQuantity
: comparator.empty()
ele-1Quantity.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Quantity.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Quantity.valueAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Quantity.unitAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Quantity.systemAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Quantity.codeAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())