PackagesCanonicalsLogsProblems
    Packages
    SUPPORT.R4@3.0.0
    http://phr.kanta.fi/StructureDefinition/fiphr-sd-macronutrientintake
description: Finnish PHR profile for Macronutrient Intake observation resource
package_name: SUPPORT.R4
derivation: constraint
name: FIPHRSDMacronutrientIntake
type: Observation
elements:
  meta:
    elements:
      profile:
        pattern: {type: Canonical, value: 'http://phr.kanta.fi/StructureDefinition/fiphr-sd-macronutrientintake'}
        index: 0
  code:
    binding: {strength: required, valueSet: 'http://phr.kanta.fi/ValueSet/fiphr-vs-macronutrients'}
    index: 1
  effective:
    choices: [effectiveDateTime]
    index: 3
    slicing:
      slices:
        effectiveDateTime:
          match: {}
          schema:
            choices: [effectiveDateTime]
            index: 3
  effectiveDateTime:
    type: dateTime
    choiceOf: effective
    index: 4
    slicing:
      slices:
        effectiveDateTime:
          match: {}
          schema: {type: dateTime, choiceOf: effective, index: 4}
  value:
    choices: [valueQuantity]
    index: 6
    slicing:
      slices:
        valueQuantity:
          match: {}
          schema:
            choices: [valueQuantity]
            _required: true
            index: 6
          min: 1
  valueQuantity:
    type: Quantity
    choiceOf: value
    index: 7
    slicing:
      slices:
        valueQuantity:
          match: {}
          schema: {type: Quantity, choiceOf: value, _required: true, index: 7}
          min: 1
  value[x]:
    elements:
      value: {index: 8}
      comparator: {index: 9}
      unit:
        pattern: {type: String, value: g}
        index: 10
      system:
        pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
        index: 11
      code:
        pattern: {type: Code, value: g}
        index: 12
    required: [value, unit, system, code]
package_version: 3.0.0
class: profile
kind: resource
url: http://phr.kanta.fi/StructureDefinition/fiphr-sd-macronutrientintake
base: http://phr.kanta.fi/StructureDefinition/fiphr-sd-nutrition
version: '0.1'
required: [value, valueQuantity]