PackagesCanonicalsLogsProblems
    Packages
    SUPPORT.R4@3.0.0
    http://phr.kanta.fi/StructureDefinition/fiphr-sd-bloodglucose
description: Finnish PHR profile for blood glucose measurement.
package_name: SUPPORT.R4
derivation: constraint
name: FIPHRSDBloodglucose
type: Observation
elements:
  meta:
    elements:
      profile:
        pattern: {type: Canonical, value: 'http://phr.kanta.fi/StructureDefinition/fiphr-sd-bloodglucose'}
        index: 0
  valueQuantity:
    type: Quantity
    choiceOf: value
    index: 17
    slicing:
      rules: closed
      discriminator:
      - {path: unit, type: value}
      min: null
      slices:
        valueQuantity:
          match: {unit: null}
          schema:
            type: Quantity
            index: 18
            extensions:
              alternativeQuantity:
                url: http://hl7.org/fhir/StructureDefinition/iso21090-PQ-translation
                type: Extension
                index: 20
                elements:
                  value:
                    choices: [valueQuantity]
                    index: 22
                  valueQuantity:
                    type: Quantity
                    choiceOf: value
                    index: 23
                    slicing:
                      slices:
                        valueQuantity:
                          match: {}
                          schema:
                            index: 24
                            elements:
                              value: {index: 25}
                              unit:
                                pattern: {type: String, value: mg/dl}
                                index: 26
                              system:
                                pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
                                index: 27
                              code:
                                pattern: {type: Code, value: mg/dL}
                                index: 28
                            required: [value, unit, system, code]
            elements:
              extension:
                index: 19
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    alternativeQuantity:
                      match: {url: null}
                      schema:
                        type: Extension
                        url: http://hl7.org/fhir/StructureDefinition/iso21090-PQ-translation
                        index: 20
                        elements:
                          value:
                            choices: [valueQuantity]
                            index: 22
                          valueQuantity:
                            type: Quantity
                            choiceOf: value
                            index: 23
                            slicing:
                              slices:
                                valueQuantity:
                                  match: {}
                                  schema:
                                    index: 24
                                    elements:
                                      value: {index: 25}
                                      unit:
                                        pattern: {type: String, value: mg/dl}
                                        index: 26
                                      system:
                                        pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
                                        index: 27
                                      code:
                                        pattern: {type: Code, value: mg/dL}
                                        index: 28
                                    required: [value, unit, system, code]
              value: {index: 29}
              unit: {index: 30}
              system: {index: 31}
              code: {index: 32}
            required: [value, unit, system, code]
  value:
    choices: [valueQuantity]
    index: 16
  component: {index: 37}
  extension:
    index: 1
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        hoursAfterMeal:
          match: {url: null}
          schema:
            type: Extension
            short: Meal context
            url: http://phr.kanta.fi/StructureDefinition/fiphr-unsignedint
            index: 2
            elements:
              value:
                choices: []
                index: 4
                slicing:
                  slices:
                    valueUnsignedInt:
                      match: {}
                      schema:
                        choices: []
                        index: 4
  effectiveDateTime:
    type: dateTime
    choiceOf: effective
    index: 14
    slicing:
      slices:
        effectiveDateTime:
          match: {}
          schema: {type: dateTime, choiceOf: effective, index: 14}
  effective:
    choices: [effectiveDateTime]
    index: 13
    slicing:
      slices:
        effectiveDateTime:
          match: {}
          schema:
            choices: [effectiveDateTime]
            index: 13
  code:
    elements:
      coding:
        index: 5
        slicing:
          rules: closed
          discriminator:
          - {path: code, type: value}
          min: null
          slices:
            GlucoseInBlood:
              match: {code: 15074-8}
              schema:
                short: Code to be used with home glucometer readings
                index: 6
                elements:
                  code:
                    pattern: {type: Code, value: 15074-8}
                    index: 7
            GlucoseInCapillaryBloodByGlucometer:
              match: {code: 14743-9}
              schema:
                short: Code to be used with home glucometer readings
                index: 8
                elements:
                  code:
                    pattern: {type: Code, value: 14743-9}
                    index: 9
            GlucoseInBodyFluid:
              match: {code: 14745-4}
              schema:
                short: Code to be used with CGM readings
                index: 10
                elements:
                  code:
                    pattern: {type: Code, value: 14745-4}
                    index: 11
  dataAbsentReason:
    index: 33
    elements:
      coding:
        index: 34
        elements:
          code: {index: 35}
      text: {index: 36}
    required: [coding]
package_version: 3.0.0
extensions:
  hoursAfterMeal:
    url: http://phr.kanta.fi/StructureDefinition/fiphr-unsignedint
    type: Extension
    short: Meal context
    index: 2
    elements:
      value:
        choices: []
        index: 4
        slicing:
          slices:
            valueUnsignedInt:
              match: {}
              schema:
                choices: []
                index: 4
class: profile
kind: resource
url: http://phr.kanta.fi/StructureDefinition/fiphr-sd-bloodglucose
base: http://phr.kanta.fi/StructureDefinition/fiphr-sd-vitalsigns
version: '0.1'