PackagesCanonicalsLogsProblems
    Packages
    rs/ch.fhir.ig.ch@elm-1.8.0
    http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-observation-rto
description: Ratio as observation result, see also 'Guidance - Laboratory Result'
package_name: rs/ch.fhir.ig.ch
derivation: constraint
name: ChElmObservationRto
type: Observation
elements:
  value:
    choices: []
    index: 1
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this, type: type}
      min: 1
      slices:
        valueRatio:
          match: {}
          schema:
            choices: [valueRatio]
            _required: true
            index: 3
          min: 1
          max: 1
  valueRatio:
    type: Ratio
    choiceOf: value
    index: 4
    slicing:
      slices:
        valueRatio:
          match: {}
          schema: {type: Ratio, choiceOf: value, _required: true, index: 4}
          min: 1
          max: 1
  value[x]:
    elements:
      numerator:
        index: 5
        elements:
          value:
            pattern: {type: decimal, value: 1}
            type: decimal
            index: 6
          system:
            pattern: {type: uri, value: 'http://unitsofmeasure.org'}
            type: uri
            index: 7
          code:
            pattern: {type: code, value: '1'}
            type: code
            index: 8
      denominator:
        index: 9
        elements:
          value: {index: 10}
          code: {index: 11}
        required: [code, value]
    required: [denominator, numerator]
package_version: elm-1.8.0
class: profile
kind: resource
url: http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-observation-rto
base: http://hl7.org/fhir/StructureDefinition/Observation
version: 1.8.0
required: [value, valueRatio]