Standard Health Record FHIR Implementation Guide

SHR Duration Profile

 

The official URL for this profile is:

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

The length of time that something continues.

This profile builds on Duration.

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.Duration maps to Duration:
  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
.. Duration I0..*SHR Duration Profile
drt-1: There SHALL be a code if there is a value and it SHALL be an expression of time. If system is present, it SHALL be UCUM.
... 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.Duration maps to Duration:
  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
.. Duration I0..*SHR Duration Profile
drt-1: There SHALL be a code if there is a value and it SHALL be an expression of time. If system is present, it SHALL be UCUM.
... 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
Duration.comparatorQuantityComparatorrequiredQuantityComparator

 

Constraints

IdPathDetailsRequirements
qty-3DurationIf a code for the unit is present, the system SHALL also be present
: code.empty() or system.exists()
drt-1DurationThere SHALL be a code if there is a value and it SHALL be an expression of time. If system is present, it SHALL be UCUM.
: code.exists() implies ((system = %ucum) and value.exists())