ch-emed-epr-amount-range
type: StructureDefinition
node role: treeRoot
id:
  v: ch-emed-epr-amount-range
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition ch-emed-epr-amount-range Name Flags Card. Type Description & Constraints Range 0..* CHCoreRangeWithEmedUnits Set of values bounded by low and high #xD; id D 0..1 string ✕ This element is not supported #xD; extension D 0..* Extension ✕ This element is not supported #xD; low 1..1 CHEMEDEPRAmountQuantity Low limit #xD; high 1..1 CHEMEDEPRAmountQuantity High limit #xD; Documentation for this format
url:
  v: http://fhir.ch/ig/ch-emed-epr/StructureDefinition/ch-emed-epr-amount-range
  l: ch-emed-epr-amount-range
version:
  v: 3.0.0
name:
  v: CHEMEDEPRAmountRange
title:
  v: Amount Range
status:
  v: draft
date:
  v: 2026-02-11T07:01:54+00:00
publisher:
  v: CARA
contact:
  name:
    v: CARA
  telecom:
    system:
      v: url
    value:
      v: https://www.cara.ch
description:
  v: A range of amount quantities
jurisdiction:
  coding:
    system:
      v: urn:iso:std:iso:3166
      l: 3166
    code:
      v: CH
    display:
      v: Switzerland
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://fhir.ch/ig/ch-core/StructureDefinition/ch-core-range-with-emed-units
  l: ch-core-range-with-emed-units
derivation:
  v: constraint
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
      l: snapshot-base-version
    value: String
      v: 6.0.0
  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
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
        l: structuredefinition-standards-status
      value: Code
        v: draft
    path:
      v: Range.id
    representation:
      v: xmlAttr
    short:
      v: ✕ This element is not supported
    definition:
      v: Implementers should not set or read this element. This element is only kept as optional to allow submission of documents that would contain a value, since those documents are still readable by others. The meaning of this element is undefined in this profile.
    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
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
        l: structuredefinition-standards-status
      value: Code
        v: draft

Url
v: string
l: string

v: Range.extension

discriminator:
  type:
    v: value
  path:
    v: url
description:
  v: Extensions are always sliced by (at least) url
rules:
  v: open

v: ✕ This element is not supported

v: Implementers should not set or read this element. This element is only kept as optional to allow submission of documents that would contain a value, since those documents are still readable by others. The meaning of this element is undefined in this profile.

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

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: 1
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-emed-epr/StructureDefinition/ch-emed-epr-amount-quantity
    l: ch-emed-epr-amount-quantity
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: 1
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-emed-epr/StructureDefinition/ch-emed-epr-amount-quantity
    l: ch-emed-epr-amount-quantity
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
  path:
    v: Range
element:
  id:
    v: Range.id
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
      l: structuredefinition-standards-status
    value: Code
      v: draft
  path:
    v: Range.id
  short:
    v: ✕ This element is not supported
  definition:
    v: Implementers should not set or read this element. This element is only kept as optional to allow submission of documents that would contain a value, since those documents are still readable by others. The meaning of this element is undefined in this profile.
element:
  id:
    v: Range.extension
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
      l: structuredefinition-standards-status
    value: Code
      v: draft
  path:
    v: Range.extension
  short:
    v: ✕ This element is not supported
  definition:
    v: Implementers should not set or read this element. This element is only kept as optional to allow submission of documents that would contain a value, since those documents are still readable by others. The meaning of this element is undefined in this profile.
element:
  id:
    v: Range.low
  path:
    v: Range.low
  min:
    v: 1
  type:
    code:
      v: Quantity
      l: Quantity
    profile:
      v: http://fhir.ch/ig/ch-emed-epr/StructureDefinition/ch-emed-epr-amount-quantity
      l: ch-emed-epr-amount-quantity
element:
  id:
    v: Range.high
  path:
    v: Range.high
  min:
    v: 1
  type:
    code:
      v: Quantity
      l: Quantity
    profile:
      v: http://fhir.ch/ig/ch-emed-epr/StructureDefinition/ch-emed-epr-amount-quantity
      l: ch-emed-epr-amount-quantity