PackagesCanonicalsLogsProblems
    Packages
    SUPPORT.R4@3.0.0
    http://phr.kanta.fi/StructureDefinition/fiphr-sd-caloriesburned
description: null
package_name: SUPPORT.R4
derivation: constraint
name: FIPHRSDCaloriesBurned
type: Observation
elements:
  meta:
    elements:
      profile:
        pattern: {type: Canonical, value: 'http://phr.kanta.fi/StructureDefinition/fiphr-sd-caloriesburned'}
        index: 0
  code:
    elements:
      coding:
        index: 1
        slicing:
          rules: closed
          discriminator:
          - {path: code, type: value}
          min: null
          slices:
            caloriesBurned:
              match: {code: 55421-2}
              schema:
                short: 'FinnishPHR: Observation of calories burned over an arbitrary period'
                _required: true
                index: 2
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    index: 3
                  code:
                    pattern: {type: Code, value: 55421-2}
                    index: 4
            caloriesBurned24h:
              match: {code: 41979-6}
              schema:
                short: 'FinnishPHR: Observation of calories burned in 24h'
                index: 5
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    index: 6
                  code:
                    pattern: {type: Code, value: 41979-6}
                    index: 7
            weeklyCaloriesBurned:
              match: {code: 41980-4}
              schema:
                short: 'FinnishPHR: Observation of calories burned in a week'
                index: 8
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    index: 9
                  code:
                    pattern: {type: Code, value: 41980-4}
                    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: kcal}
        index: 16
      system:
        pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
        index: 17
      code:
        pattern: {type: Code, value: kcal}
        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-caloriesburned
base: http://phr.kanta.fi/StructureDefinition/fiphr-sd-fitness
version: '0.2'
required: [value, valueQuantity]