PackagesCanonicalsLogsProblems
    Packages
    SUPPORT.R4@3.0.0
    http://phr.kanta.fi/StructureDefinition/fiphr-sd-moderatetovigorouspatime
description: Finnish PHR profile for measured or patient-reported time spent on moderate to vigorous physical activity over a period. At this time weekly (period) and 24h period (dateTime) is coded. The profile is based on the Finnish PHR Fitness profile.
package_name: SUPPORT.R4
derivation: constraint
name: FIPHRSDModerateToVigorousPATime
type: Observation
elements:
  meta:
    elements:
      profile:
        pattern: {type: Canonical, value: 'http://phr.kanta.fi/StructureDefinition/fiphr-sd-moderatetovigorouspatime'}
        index: 0
  code:
    elements:
      coding:
        index: 1
        slicing:
          rules: closed
          discriminator:
          - {path: code, type: value}
          min: null
          max: 1
          slices:
            moderateToVigorousWeeklyMinutes:
              match: {code: 82290-8}
              schema:
                short: Observation of minutes with moderate to vigorous PA during a week
                index: 2
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    index: 3
                  code:
                    pattern: {type: Code, value: 82290-8}
                    index: 4
            moderateToVigorousPA24h:
              match: {code: 82290-8-24h}
              schema:
                short: Observation of minutes with moderate to vigorous PA during a 24h period
                index: 5
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://phr.kanta.fi/fiphr-cs-moderatetovigorouspa'}
                    index: 6
                  code:
                    pattern: {type: Code, value: 82290-8-24h}
                    index: 7
  value:
    choices: [valueQuantity]
    index: 9
    slicing:
      slices:
        valueQuantity:
          match: {}
          schema:
            choices: [valueQuantity]
            _required: true
            index: 9
          min: 1
  valueQuantity:
    type: Quantity
    choiceOf: value
    index: 10
    slicing:
      slices:
        valueQuantity:
          match: {}
          schema: {type: Quantity, choiceOf: value, _required: true, index: 10}
          min: 1
  value[x]:
    elements:
      value: {index: 11}
      comparator: {index: 12}
      unit:
        pattern: {type: String, value: min}
        index: 13
      system:
        pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
        index: 14
      code:
        pattern: {type: Code, value: min}
        index: 15
    required: [value, unit, system, code]
  component: {index: 16}
package_version: 3.0.0
class: profile
kind: resource
url: http://phr.kanta.fi/StructureDefinition/fiphr-sd-moderatetovigorouspatime
base: http://phr.kanta.fi/StructureDefinition/fiphr-sd-fitness
version: '0.1'
required: [value, valueQuantity]