PackagesCanonicalsLogsProblems
    Packages
    synapxe.hsar.hsg@5.0.0-v1
    http://ihis.sg/profile/G7
description: null
package_name: synapxe.hsar.hsg
derivation: constraint
name: G7
type: Goal
elements:
  lifecycleStatus:
    pattern: {type: Code, value: active}
    index: 0
  description:
    elements:
      coding:
        binding: {strength: required, valueSet: 'http://ihis.sg/ValueSet/hsg-health-goal'}
        index: 1
        elements:
          code:
            pattern: {type: Code, value: G7}
            index: 2
  target:
    index: 3
    extensions: {}
    elements:
      extension: {index: 4}
      measure:
        elements:
          id: {index: 5}
          extension: {index: 6}
          coding:
            elements:
              code:
                constraint:
                  healthplan-g7: {human: 'If present, G7 goal measure allowed values are ACT001, ACT002, ACT003, OTH001', severity: error, expression: ($this in ('ACT001' | 'ACT002' | 'ACT003' | 'OTH001'))}
                index: 7
        extensions: {}
    slicing:
      rules: open
      discriminator:
      - {path: measure.coding.code, type: value}
      min: null
      slices:
        ACT001:
          match:
            measure:
              coding: {code: ACT001}
          schema:
            index: 8
            elements:
              measure:
                elements:
                  coding:
                    binding: {strength: required, valueSet: 'http://ihis.sg/ValueSet/hsg-goal-measure'}
                    index: 9
                    elements:
                      code:
                        pattern: {type: Code, value: ACT001}
                        index: 10
                  text: {index: 11}
              due:
                choices: [dueDuration]
                index: 13
              dueDuration: {type: Duration, choiceOf: due, index: 14}
        ACT002:
          match:
            measure:
              coding: {code: ACT002}
          schema:
            index: 15
            elements:
              measure:
                elements:
                  coding:
                    binding: {strength: required, valueSet: 'http://ihis.sg/ValueSet/hsg-goal-measure'}
                    index: 16
                    elements:
                      code:
                        pattern: {type: Code, value: ACT002}
                        index: 17
                  text: {index: 18}
              due:
                choices: [dueDuration]
                index: 20
              dueDuration: {type: Duration, choiceOf: due, index: 21}
        ACT003:
          match:
            measure:
              coding: {code: ACT003}
          schema:
            index: 22
            elements:
              measure:
                elements:
                  coding:
                    binding: {strength: required, valueSet: 'http://ihis.sg/ValueSet/hsg-goal-measure'}
                    index: 23
                    elements:
                      code:
                        pattern: {type: Code, value: ACT003}
                        index: 24
                  text: {index: 25}
              due:
                choices: [dueDuration]
                index: 27
              dueDuration: {type: Duration, choiceOf: due, index: 28}
        OTH001:
          match:
            measure:
              coding: {code: OTH001}
          schema:
            index: 29
            elements:
              measure:
                elements:
                  coding:
                    binding: {strength: required, valueSet: 'http://ihis.sg/ValueSet/hsg-goal-measure'}
                    index: 30
                    elements:
                      code:
                        pattern: {type: Code, value: OTH001}
                        index: 31
                  text:
                    constraint:
                      healthplan-oth001-G7: {human: Value must be between 1 to 500 characters, severity: error, expression: $this.length() > 0 and $this.length() <= 500}
                    index: 32
                required: [text]
              detail:
                choices: []
                index: 34
              due:
                choices: [dueDuration]
                index: 36
              dueDuration: {type: Duration, choiceOf: due, index: 37}
package_version: 5.0.0-v1
class: profile
kind: resource
url: http://ihis.sg/profile/G7
base: http://ihis.sg/StructureDefinition/put-health-plan-goal
version: 5.0.0-v1