Standard Health Record FHIR Implementation Guide

SHR Quantity Profile

 

The official URL for this profile is:

http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Quantity

A quantity with units, whose value may be bounded from above or below, as defined in FHIR

This profile builds on Quantity.

This profile was published on Tue Feb 27 00:00:00 EST 2018 as a draft by The MITRE Corporation: Standard Health Record Collaborative.

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

Summary

Mandatory: 0 element (1 nested mandatory element)

SHR Mapping Source

This structure represents the following SHR mapping definition:

shr.core.Quantity maps to Quantity:
  decimal maps to value
  Units.Coding.code maps to code
  Units.Coding.CodeSystem maps to system
  Units.Coding.DisplayText maps to unit
  Comparator maps to comparator

NameFlagsCard.TypeDescription & Constraintsdoco
.. Quantity I0..*SHR Quantity Profile
qty-3: If a code for the unit is present, the system SHALL also be present
... id 0..1stringxml:id (or equivalent in JSON)
... value Σ1..1decimalNumerical value (with implicit precision)
... comparator ?!Σ0..1code< | <= | >= | > - how to understand the value
Binding: QuantityComparator (required)
... unit Σ0..1stringUnit representation
... system ΣI0..1uriSystem that defines coded unit form
... code Σ0..1codeCoded form of the unit

doco Documentation for this format

Summary

Mandatory: 0 element (1 nested mandatory element)

SHR Mapping Source

This structure represents the following SHR mapping definition:

shr.core.Quantity maps to Quantity:
  decimal maps to value
  Units.Coding.code maps to code
  Units.Coding.CodeSystem maps to system
  Units.Coding.DisplayText maps to unit
  Comparator maps to comparator

Differential View

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Quantity I0..*SHR Quantity Profile
qty-3: If a code for the unit is present, the system SHALL also be present
... id 0..1stringxml:id (or equivalent in JSON)
... value Σ1..1decimalNumerical value (with implicit precision)
... comparator ?!Σ0..1code< | <= | >= | > - how to understand the value
Binding: QuantityComparator (required)
... unit Σ0..1stringUnit representation
... system ΣI0..1uriSystem that defines coded unit form
... code Σ0..1codeCoded form of the unit

doco Documentation for this format

Downloads: StructureDefinition: (XML, JSON, TTL), Schema: XML Schematron

 

Terminology Bindings

PathNameConformanceValueSet
Quantity.comparatorQuantityComparatorrequiredQuantityComparator

 

Constraints

IdPathDetailsRequirements
ele-1QuantityAll FHIR elements must have a @value or children
: hasValue() | (children().count() > id.count())
qty-3QuantityIf a code for the unit is present, the system SHALL also be present
: code.empty() or system.exists()