PackagesCanonicalsLogsProblems
    Packages
    SUPPORT.R4@3.0.0
    http://phr.kanta.fi/StructureDefinition/fiphr-sd-distance
description: Finnish PHR profile for fitness device measurement or patient-reported distance reached over a time period. Profile does not disclose exercise types contributing to the cumulative value, as this is left for the exercise profiles. The profile is based on the Finnish PHR Fitness profile.
package_name: SUPPORT.R4
derivation: constraint
name: FIPHRSDDistance
type: Observation
elements:
  meta:
    elements:
      profile:
        pattern: {type: Canonical, value: 'http://phr.kanta.fi/StructureDefinition/fiphr-sd-distance'}
        index: 0
  code:
    elements:
      coding:
        index: 1
        slicing:
          rules: closed
          discriminator:
          - {path: code, type: value}
          min: null
          slices:
            distance:
              match: {code: 55430-3}
              schema:
                short: Observation of distance reached over an arbitrary period
                _required: true
                index: 2
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    index: 3
                  code:
                    pattern: {type: Code, value: 55430-3}
                    index: 4
            distance24h:
              match: {code: 41953-1}
              schema:
                short: Observation of distance reached in 24h
                index: 5
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    index: 6
                  code:
                    pattern: {type: Code, value: 41953-1}
                    index: 7
            weeklyDistance:
              match: {code: 41955-6}
              schema:
                index: 8
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    index: 9
                  code:
                    pattern: {type: Code, value: 41955-6}
                    index: 10
  value:
    choices: [valueQuantity]
    index: 12
    slicing:
      slices:
        valueQuantity:
          match: {}
          schema:
            choices: [valueQuantity]
            _required: true
            index: 12
          min: 1
  valueQuantity:
    type: Quantity
    choiceOf: value
    index: 13
    slicing:
      slices:
        valueQuantity:
          match: {}
          schema: {type: Quantity, choiceOf: value, _required: true, index: 13}
          min: 1
  value[x]:
    elements:
      value: {index: 14}
      comparator: {index: 15}
      unit:
        pattern: {type: String, value: m}
        index: 16
      system:
        pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
        index: 17
      code:
        pattern: {type: Code, value: m}
        index: 18
    required: [value, unit, system, code]
  component: {index: 19}
package_version: 3.0.0
class: profile
kind: resource
url: http://phr.kanta.fi/StructureDefinition/fiphr-sd-distance
base: http://phr.kanta.fi/StructureDefinition/fiphr-sd-fitness
version: '0.1'
required: [value, valueQuantity]