ch-emed-ratio
type: StructureDefinition
node role: treeRoot
resource.id:
  value: ch-emed-ratio
domain resource.text:
  narrative.status:
    value: extensions
  narrative.div: Name Flags Card. Type Description & Constraints Ratio 0..* Ratio A ratio of two Quantity values - a numerator and a denominator numerator 1..1 CHEMEDQuantityWithEmedUnits A fixed quantity (no comparator) denominator 1..1 CHEMEDQuantityWithEmedUnits A fixed quantity (no comparator) Documentation for this format
structure definition.url:
  value: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ratio
structure definition.version:
  value: 1.0.0
structure definition.name:
  value: CHEMEDRatioWithEmedUnits
structure definition.title:
  value: CH EMED Ratio with units
structure definition.status:
  value: active
structure definition.date:
  value: 2021-04-07
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 ratio with defined 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: Ratio
structure definition.base definition:
  value: http://hl7.org/fhir/StructureDefinition/Ratio
  link: http://hl7.org/fhir/StructureDefinition/Ratio
structure definition.derivation:
  value: constraint
structure definition.snapshot:
  structure definition.snapshot.element:
    index: 0
    element.id:
      value: Ratio
    element definition.path:
      value: Ratio
    element definition.short:
      value: A ratio of two Quantity values - a numerator and a denominator
    element definition.definition:
      value: A relationship of two Quantity values - expressed as a numerator and a denominator.
    element definition.comment:
      value: The Ratio datatype should only be used to express a relationship of two numbers if the relationship cannot be suitably expressed using a Quantity and a common unit. Where the denominator value is known to be fixed to "1", Quantity should be used instead of Ratio.
    element definition.min:
      value: 0
    element definition.max:
      value: *
    element definition.base:
      element definition.base.path:
        value: Ratio
      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: rat-1
      element definition.constraint.severity:
        value: error
      element definition.constraint.human:
        value: Numerator and denominator SHALL both be present, or both are absent. If both are absent, there SHALL be some extension present
      element definition.constraint.expression:
        value: (numerator.empty() xor denominator.exists()) and (numerator.exists() or extension.exists())
      element definition.constraint.xpath:
        value: (count(f:numerator) = count(f:denominator)) and ((count(f:numerator) > 0) or (count(f:extension) > 0))
      element definition.constraint.source:
        value: http://hl7.org/fhir/StructureDefinition/Ratio
        link: http://hl7.org/fhir/StructureDefinition/Ratio
    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: N/A
    element definition.mapping:
      index: 2
      element definition.mapping.identity:
        value: rim
      element definition.mapping.map:
        value: RTO
  structure definition.snapshot.element:
    index: 1
    element.id:
      value: Ratio.id
    element definition.path:
      value: Ratio.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: Ratio.extension

value: string

value: Ratio.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: Ratio.numerator
element definition.path:
  value: Ratio.numerator
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: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Ratio.numerator
  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: Ratio.denominator
element definition.path:
  value: Ratio.denominator
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: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Ratio.denominator
  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: Ratio
  element definition.path:
    value: Ratio
structure definition.differential.element:
  index: 1
  element.id:
    value: Ratio.numerator
  element definition.path:
    value: Ratio.numerator
  element definition.min:
    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
structure definition.differential.element:
  index: 2
  element.id:
    value: Ratio.denominator
  element definition.path:
    value: Ratio.denominator
  element definition.min:
    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