ch-emed-ratio-with-emed-units
type: StructureDefinition
node role: treeRoot
id:
  v: ch-emed-ratio-with-emed-units
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition ch-emed-ratio-with-emed-units Name Flags Card. Type Description & Constraints Ratio Ratio #xD; numerator 1..1 CHCoreQuantityWithEmedUnits Numerator value #xD; denominator 1..1 CHCoreQuantityWithEmedUnits Denominator value #xD; Documentation for this format
url:
  v: http://fhir.ch/ig/ch-core/StructureDefinition/ch-emed-ratio-with-emed-units
  l: ch-emed-ratio-with-emed-units
version:
  v: 6.0.0
name:
  v: CHCoreRatioWithEmedUnits
title:
  v: CH EMED Ratio with EMED Units
status:
  v: active
date:
  v: 2025-12-16T08:02:49+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 ratio with defined 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: Ratio
  l: Ratio
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Ratio
  l: Ratio
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: Ratio
    path:
      v: Ratio
    short:
      v: A ratio of two Quantity values - a numerator and a denominator
    definition:
      v: A relationship of two Quantity values - expressed as a numerator and a denominator.
    comment:
      v: 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.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Ratio
      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: rat-1
      severity:
        v: error
      human:
        v: Numerator and denominator SHALL both be present, or both are absent. If both are absent, there SHALL be some extension present
      expression:
        v: (numerator.empty() xor denominator.exists()) and (numerator.exists() or extension.exists())
      xpath:
        v: (count(f:numerator) = count(f:denominator)) and ((count(f:numerator) > 0) or (count(f:extension) > 0))
      source:
        v: http://hl7.org/fhir/StructureDefinition/Ratio
        l: Ratio
    is modifier:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: n/a
    mapping:
      identity:
        v: v2
      map:
        v: N/A
    mapping:
      identity:
        v: rim
      map:
        v: RTO
  element:
    id:
      v: Ratio.id
    path:
      v: Ratio.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: Ratio.extension
    path:
      v: Ratio.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: Ratio.numerator
path:
  v: Ratio.numerator
short:
  v: Numerator value
definition:
  v: The value of the numerator.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Ratio.numerator
  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: rim
  map:
    v: .numerator

id:
  v: Ratio.denominator
path:
  v: Ratio.denominator
short:
  v: Denominator value
definition:
  v: The value of the denominator.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Ratio.denominator
  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: rim
  map:
    v: .denominator

element:
  id:
    v: Ratio.numerator
  path:
    v: Ratio.numerator
  min:
    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
element:
  id:
    v: Ratio.denominator
  path:
    v: Ratio.denominator
  min:
    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