PackagesCanonicalsLogsProblems
    Packages
    synapxe.hsar@1.0.0
    http://ihis.sg/profile/G6
description: null
package_name: synapxe.hsar
derivation: constraint
name: profile-HealthPlan-goalG6
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: G6}
            index: 2
  target:
    index: 3
    extensions: {}
    elements:
      extension: {index: 4}
      measure:
        elements:
          id: {index: 5}
          extension: {index: 6}
          coding:
            elements:
              code:
                constraint:
                  healthplan-g6: {human: 'If present, G6 goal measure allowed values are PRG001, PRG002, PRG003, OTH001', severity: error, expression: ($this in ('PRG001' | 'PRG002' | 'PRG003' | 'OTH001'))}
                index: 7
        extensions: {}
    slicing:
      rules: open
      discriminator:
      - {path: measure.coding.code, type: value}
      min: null
      slices:
        PRG001:
          match:
            measure:
              coding: {code: PRG001}
          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: PRG001}
                        index: 10
                  text:
                    constraint:
                      healthplan-prg001: {human: Value must be between 1 to 500 characters, severity: error, expression: $this.length() > 0 and $this.length() <= 500}
                    index: 11
              due:
                choices: [dueDuration]
                index: 13
              dueDuration: {type: Duration, choiceOf: due, index: 14}
        PRG002:
          match:
            measure:
              coding: {code: PRG002}
          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: PRG002}
                        index: 17
                  text:
                    constraint:
                      healthplan-prg002: {human: Value must be between 1 to 500 characters, severity: error, expression: $this.length() > 0 and $this.length() <= 500}
                    index: 18
              due:
                choices: [dueDuration]
                index: 20
              dueDuration: {type: Duration, choiceOf: due, index: 21}
        PRG003:
          match:
            measure:
              coding: {code: PRG003}
          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: PRG003}
                        index: 24
                  text:
                    constraint:
                      healthplan-prg003: {human: Value must be between 1 to 500 characters, severity: error, expression: $this.length() > 0 and $this.length() <= 500}
                    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: {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: 1.0.0
class: profile
kind: resource
url: http://ihis.sg/profile/G6
base: http://ihis.sg/StructureDefinition/putHealthplanGoal
version: null