ch-core-range-with-emed-units
type: StructureDefinition
node role: treeRoot
id:
  v: ch-core-range-with-emed-units
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition ch-core-range-with-emed-units Name Flags Card. Type Description & Constraints Range Range #xD; low 0..1 CHCoreQuantityWithEmedUnits Low limit #xD; high 0..1 CHCoreQuantityWithEmedUnits High limit #xD; Documentation for this format
url:
  v: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-range-with-emed-units
  l: ch-core-range-with-emed-units
version:
  v: 6.0.0
name:
  v: CHCoreRangeWithEmedUnits
title:
  v: CH Core Range with EMED Units
status:
  v: active
date:
  v: 2025-12-16T07:58:48+00:00
publisher:
  v: HL7 Switzerland
contact:
  name:
    v: HL7 Switzerland
  telecom:
    system:
      v: url
    value:
      v: https://www.hl7.ch/
contact:
  name:
    v: HL7 Switzerland
  telecom:
    system:
      v: url
    value:
      v: https://www.hl7.ch/
    use:
      v: work
description:
  v: A range with defined quantity/units
jurisdiction:
  coding:
    system:
      v: urn:iso:std:iso:3166
      l: 3166
    code:
      v: CH
copyright:
  v: CC0-1.0
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: v2
  uri:
    v: http://hl7.org/v2
    l: v2
  name:
    v: HL7 v2 Mapping
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
    l: v3
  name:
    v: RIM Mapping
kind:
  v: complex-type
abstract:
  v: false
type:
  v: Range
  l: Range
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Range
  l: Range
derivation:
  v: constraint
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
      l: snapshot-base-version
    value: String
      v: 4.0.1
  element:
    id:
      v: Range
    path:
      v: Range
    short:
      v: Set of values bounded by low and high
    definition:
      v: A set of ordered Quantities defined by a low and high limit.
    comment:
      v: The stated low and high value are assumed to have arbitrarily high precision when it comes to determining which values are in the range. I.e. 1.99 is not in the range 2 -> 3.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Range
      min:
        v: 0
      max:
        v: *
    condition:
      v: ele-1
    constraint:
      key:
        v: ele-1
      severity:
        v: error
      human:
        v: All FHIR elements must have a @value or children
      expression:
        v: hasValue() or (children().count() > id.count())
      xpath:
        v: @value|f:*|h:div
      source:
        v: http://hl7.org/fhir/StructureDefinition/Element
        l: Element
    constraint:
      key:
        v: rng-2
      severity:
        v: error
      human:
        v: If present, low SHALL have a lower value than high
      expression:
        v: low.empty() or high.empty() or (low <= high)
      xpath:
        v: not(exists(f:low/f:value/@value)) or not(exists(f:high/f:value/@value)) or (number(f:low/f:value/@value) <= number(f:high/f:value/@value))
      source:
        v: http://hl7.org/fhir/StructureDefinition/Range
        l: Range
    is modifier:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: n/a
    mapping:
      identity:
        v: v2
      map:
        v: NR and also possibly SN (but see also quantity)
    mapping:
      identity:
        v: rim
      map:
        v: IVL<QTY[not(type="TS")]> [lowClosed="true" and highClosed="true"]or URG<QTY[not(type="TS")]>
  element:
    id:
      v: Range.id
    path:
      v: Range.id
    representation:
      v: xmlAttr
    short:
      v: Unique id for inter-element referencing
    definition:
      v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: Element.id
      min:
        v: 0
      max:
        v: 1
    type:
      extension:
        value: Url
      code:
        v: http://hl7.org/fhirpath/System.String
        l: System.String
    is modifier:
      v: false
    is summary:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: n/a
  element:
    id:
      v: Range.extension
    path:
      v: Range.extension
    slicing:
      description:
        v: Extensions are always sliced by (at least) url

Url
v: string
l: string

v: value

v: url

v: open

v: Additional content defined by implementations

v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

v: extensions

v: user content

v: 0

v: *

path:
  v: Element.extension
min:
  v: 0
max:
  v: *

code:
  v: Extension
  l: Extension

key:
  v: ele-1
severity:
  v: error
human:
  v: All FHIR elements must have a @value or children
expression:
  v: hasValue() or (children().count() > id.count())
xpath:
  v: @value|f:*|h:div
source:
  v: http://hl7.org/fhir/StructureDefinition/Element
  l: Element

key:
  v: ext-1
severity:
  v: error
human:
  v: Must have either extensions or value[x], not both
expression:
  v: extension.exists() != value.exists()
xpath:
  v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
source:
  v: http://hl7.org/fhir/StructureDefinition/Extension
  l: Extension

v: false

v: false

identity:
  v: rim
map:
  v: n/a

id:
  v: Range.low
path:
  v: Range.low
short:
  v: Low limit
definition:
  v: The low limit. The boundary is inclusive.
comment:
  v: If the low element is missing, the low boundary is not known.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Range.low
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity
    l: Quantity
  profile:
    v: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-quantity-with-emed-units
    l: ch-core-quantity-with-emed-units
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: NR.1
mapping:
  identity:
    v: rim
  map:
    v: ./low

id:
  v: Range.high
path:
  v: Range.high
short:
  v: High limit
definition:
  v: The high limit. The boundary is inclusive.
comment:
  v: If the high element is missing, the high boundary is not known.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Range.high
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity
    l: Quantity
  profile:
    v: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-quantity-with-emed-units
    l: ch-core-quantity-with-emed-units
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: NR.2
mapping:
  identity:
    v: rim
  map:
    v: ./high

element:
  id:
    v: Range.low
  path:
    v: Range.low
  type:
    code:
      v: Quantity
      l: Quantity
    profile:
      v: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-quantity-with-emed-units
      l: ch-core-quantity-with-emed-units
element:
  id:
    v: Range.high
  path:
    v: Range.high
  type:
    code:
      v: Quantity
      l: Quantity
    profile:
      v: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-quantity-with-emed-units
      l: ch-core-quantity-with-emed-units