Standard Health Record FHIR Implementation Guide

SHR SimpleQuantity Profile

 

The official URL for this profile is:

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

A quantity where the comparator is not used, as defined in FHIR

This profile builds on SimpleQuantity.

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.SimpleQuantity maps to SimpleQuantity:
  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 SimpleQuantity Profile
sqty-1: The comparator is not used on a SimpleQuantity
... id 0..1stringxml:id (or equivalent in JSON)
... value Σ1..1decimalNumerical value (with implicit precision)
... 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.SimpleQuantity maps to SimpleQuantity:
  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 SimpleQuantity Profile
sqty-1: The comparator is not used on a SimpleQuantity
... id 0..1stringxml:id (or equivalent in JSON)
... value Σ1..1decimalNumerical value (with implicit precision)
... 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

 

 

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()
sqty-1QuantityThe comparator is not used on a SimpleQuantity
: comparator.empty()