ch-emed-range
type: StructureDefinition
node role: treeRoot
resource.id:
  value: ch-emed-range
domain resource.text:
  narrative.status:
    value: extensions
  narrative.div: Name Flags Card. Type Description & Constraints Range 0..* Range Set of values bounded by low and high low 0..1 CHEMEDQuantityWithEmedUnits A fixed quantity (no comparator) high 0..1 CHEMEDQuantityWithEmedUnits A fixed quantity (no comparator) Documentation for this format
structure definition.url:
  value: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-range
structure definition.version:
  value: 1.0.0
structure definition.name:
  value: CHEMEDRangeWithEmedUnits
structure definition.title:
  value: CH EMED Range with units
structure definition.status:
  value: active
structure definition.date:
  value: 2021-02-11
structure definition.publisher:
  value: eHealth Suisse
structure definition.contact:
  index: 0
  contact detail.name:
    value: eHealth Suisse
  contact detail.telecom:
    index: 0
    contact point.system:
      value: url
    contact point.value:
      value: https://www.e-health-suisse.ch/startseite.html
structure definition.description:
  value: A range with defined quantity/units
structure definition.jurisdiction:
  index: 0
  codeable concept.coding:
    index: 0
    coding.system:
      value: urn:iso:std:iso:3166
    coding.code:
      value: CH
structure definition.copyright:
  value: CC-BY-SA-4.0
structure definition.fhir version:
  value: 4.0.1
structure definition.mapping:
  index: 0
  structure definition.mapping.identity:
    value: cda
  structure definition.mapping.uri:
    value: http://hl7.org/v3/cda
  structure definition.mapping.name:
    value: CDA (R2)
structure definition.mapping:
  index: 1
  structure definition.mapping.identity:
    value: v2
  structure definition.mapping.uri:
    value: http://hl7.org/v2
  structure definition.mapping.name:
    value: HL7 v2 Mapping
structure definition.mapping:
  index: 2
  structure definition.mapping.identity:
    value: rim
  structure definition.mapping.uri:
    value: http://hl7.org/v3
  structure definition.mapping.name:
    value: RIM Mapping
structure definition.kind:
  value: complex-type
structure definition.abstract:
  value: false
structure definition.type:
  value: Range
structure definition.base definition:
  value: http://hl7.org/fhir/StructureDefinition/Range
  link: http://hl7.org/fhir/StructureDefinition/Range
structure definition.derivation:
  value: constraint
structure definition.snapshot:
  structure definition.snapshot.element:
    index: 0
    element.id:
      value: Range
    element definition.path:
      value: Range
    element definition.short:
      value: Set of values bounded by low and high
    element definition.definition:
      value: A set of ordered Quantities defined by a low and high limit.
    element definition.comment:
      value: 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.
    element definition.min:
      value: 0
    element definition.max:
      value: *
    element definition.base:
      element definition.base.path:
        value: Range
      element definition.base.min:
        value: 0
      element definition.base.max:
        value: *
    element definition.condition:
      value: ele-1
      index: 0
    element definition.constraint:
      index: 0
      element definition.constraint.key:
        value: ele-1
      element definition.constraint.severity:
        value: error
      element definition.constraint.human:
        value: All FHIR elements must have a @value or children
      element definition.constraint.expression:
        value: hasValue() or (children().count() > id.count())
      element definition.constraint.xpath:
        value: @value|f:*|h:div
      element definition.constraint.source:
        value: http://hl7.org/fhir/StructureDefinition/Element
        link: http://hl7.org/fhir/StructureDefinition/Element
    element definition.constraint:
      index: 1
      element definition.constraint.key:
        value: rng-2
      element definition.constraint.severity:
        value: error
      element definition.constraint.human:
        value: If present, low SHALL have a lower value than high
      element definition.constraint.expression:
        value: low.empty() or high.empty() or (low <= high)
      element definition.constraint.xpath:
        value: 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))
      element definition.constraint.source:
        value: http://hl7.org/fhir/StructureDefinition/Range
        link: http://hl7.org/fhir/StructureDefinition/Range
    element definition.is modifier:
      value: false
    element definition.mapping:
      index: 0
      element definition.mapping.identity:
        value: rim
      element definition.mapping.map:
        value: n/a
    element definition.mapping:
      index: 1
      element definition.mapping.identity:
        value: v2
      element definition.mapping.map:
        value: NR and also possibly SN (but see also quantity)
    element definition.mapping:
      index: 2
      element definition.mapping.identity:
        value: rim
      element definition.mapping.map:
        value: IVL<QTY[not(type="TS")]> [lowClosed="true" and highClosed="true"]or URG<QTY[not(type="TS")]>
  structure definition.snapshot.element:
    index: 1
    element.id:
      value: Range.id
    element definition.path:
      value: Range.id
    element definition.representation:
      value: xmlAttr
      index: 0
    element definition.short:
      value: Unique id for inter-element referencing
    element definition.definition:
      value: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
    element definition.min:
      value: 0
    element definition.max:
      value: 1
    element definition.base:
      element definition.base.path:
        value: Element.id
      element definition.base.min:
        value: 0
      element definition.base.max:
        value: 1
    element definition.type:
      index: 0
      element.extension:
        index: 0
      element definition.type.code:
        value: http://hl7.org/fhirpath/System.String
    element definition.is modifier:
      value: false
    element definition.is summary:
      value: false
    element definition.mapping:
      index: 0
      element definition.mapping.identity:
        value: rim
      element definition.mapping.map:
        value: n/a
  structure definition.snapshot.element:
    index: 2
    element.id:
      value: Range.extension

value: string

value: Range.extension

element definition.slicing.discriminator:
  index: 0
  element definition.slicing.discriminator.type:
    value: value
  element definition.slicing.discriminator.path:
    value: url
element definition.slicing.description:
  value: Extensions are always sliced by (at least) url
element definition.slicing.rules:
  value: open

value: Additional content defined by implementations

value: 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.

value: 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.

value: extensions
index: 0

value: user content
index: 1

value: 0

value: *

element definition.base.path:
  value: Element.extension
element definition.base.min:
  value: 0
element definition.base.max:
  value: *

index: 0
element definition.type.code:
  value: Extension

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

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

value: false

value: false

index: 0
element definition.mapping.identity:
  value: rim
element definition.mapping.map:
  value: n/a

index: 3
element.id:
  value: Range.low
element definition.path:
  value: Range.low
element definition.short:
  value: A fixed quantity (no comparator)
element definition.definition:
  value: The comparator is not used on a SimpleQuantity
element definition.comment:
  value: The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Range.low
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Quantity
  element definition.type.profile:
    value: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-quantity
    index: 0
    link: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-quantity
element definition.condition:
  value: ele-1
  index: 0
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: 1
  element definition.constraint.key:
    value: qty-3
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: If a code for the unit is present, the system SHALL also be present
  element definition.constraint.expression:
    value: code.empty() or system.exists()
  element definition.constraint.xpath:
    value: not(exists(f:code)) or exists(f:system)
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Quantity
    link: http://hl7.org/fhir/StructureDefinition/Quantity
element definition.constraint:
  index: 2
  element definition.constraint.key:
    value: sqty-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: The comparator is not used on a SimpleQuantity
  element definition.constraint.expression:
    value: comparator.empty()
  element definition.constraint.xpath:
    value: not(exists(f:comparator))
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
    link: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
element definition.is modifier:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: SN (see also Range) or CQ
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: PQ, IVL<PQ>, MO, CO, depending on the values

index: 4
element.id:
  value: Range.high
element definition.path:
  value: Range.high
element definition.short:
  value: A fixed quantity (no comparator)
element definition.definition:
  value: The comparator is not used on a SimpleQuantity
element definition.comment:
  value: The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Range.high
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Quantity
  element definition.type.profile:
    value: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-quantity
    index: 0
    link: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-quantity
element definition.condition:
  value: ele-1
  index: 0
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: 1
  element definition.constraint.key:
    value: qty-3
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: If a code for the unit is present, the system SHALL also be present
  element definition.constraint.expression:
    value: code.empty() or system.exists()
  element definition.constraint.xpath:
    value: not(exists(f:code)) or exists(f:system)
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Quantity
    link: http://hl7.org/fhir/StructureDefinition/Quantity
element definition.constraint:
  index: 2
  element definition.constraint.key:
    value: sqty-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: The comparator is not used on a SimpleQuantity
  element definition.constraint.expression:
    value: comparator.empty()
  element definition.constraint.xpath:
    value: not(exists(f:comparator))
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
    link: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
element definition.is modifier:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: SN (see also Range) or CQ
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: PQ, IVL<PQ>, MO, CO, depending on the values

structure definition.differential.element:
  index: 0
  element.id:
    value: Range
  element definition.path:
    value: Range
structure definition.differential.element:
  index: 1
  element.id:
    value: Range.low
  element definition.path:
    value: Range.low
  element definition.type:
    index: 0
    element definition.type.code:
      value: Quantity
    element definition.type.profile:
      value: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-quantity
      index: 0
      link: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-quantity
structure definition.differential.element:
  index: 2
  element.id:
    value: Range.high
  element definition.path:
    value: Range.high
  element definition.type:
    index: 0
    element definition.type.code:
      value: Quantity
    element definition.type.profile:
      value: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-quantity
      index: 0
      link: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-quantity