PackagesCanonicalsLogsProblems
    Packages
    synapxe.hsar.hsg@4.3.0-v3
    http://ihis.sg/profile/G8
description: null
package_name: synapxe.hsar.hsg
derivation: constraint
name: G8
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: G8}
            index: 2
  target:
    index: 3
    elements:
      measure:
        elements:
          coding:
            index: 4
            elements:
              code:
                constraint:
                  healthplan-g8: {human: 'If present, G8 goal measure allowed values are GM007, GM011, GM012, GM013, GM014, GM015', severity: error, expression: ($this in ('GM007' | 'GM011' | 'GM012' | 'GM013' | 'GM014' | 'GM015'))}
                index: 5
      detail:
        choices: []
        index: 7
    slicing:
      rules: open
      discriminator:
      - {path: measure.coding.code, type: value}
      min: null
      slices:
        GM007:
          match:
            measure:
              coding: {code: GM007}
          schema:
            index: 8
            extensions: {}
            elements:
              extension: {index: 9}
              measure:
                elements:
                  id: {index: 10}
                  extension: {index: 11}
                  coding:
                    binding: {strength: required, valueSet: 'http://ihis.sg/ValueSet/hsg-goal-measure'}
                    index: 12
                    elements:
                      code:
                        pattern: {type: Code, value: GM007}
                        index: 13
                  text:
                    constraint:
                      healthplan-gm007: {human: Value must be between 1 to 500 characters, severity: error, expression: $this.length() > 0 and $this.length() <= 500}
                    index: 14
                extensions: {}
              detail:
                choices: [detailQuantity]
                index: 16
              detailQuantity: {type: Quantity, choiceOf: detail, index: 17}
              detail[x]:
                elements:
                  value:
                    constraint:
                      healthplan-gm007-1: {human: Valid numeric value required, severity: error, expression: '$this.toString().matches(''^[0-9]*$'')'}
                    maxValueDecimal: 7.0
                    minValueDecimal: 1.0
                    index: 18
                  system:
                    pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
                    index: 19
                  code:
                    pattern: {type: Code, value: wk}
                    index: 20
                required: [value, system, code]
              due:
                choices: [dueDuration]
                index: 22
              dueDuration: {type: Duration, choiceOf: due, index: 23}
            required: [detailQuantity, detail]
        GM011:
          match:
            measure:
              coding: {code: GM011}
          schema:
            index: 24
            extensions: {}
            elements:
              extension: {index: 25}
              measure:
                elements:
                  id: {index: 26}
                  extension: {index: 27}
                  coding:
                    binding: {strength: required, valueSet: 'http://ihis.sg/ValueSet/hsg-goal-measure'}
                    index: 28
                    elements:
                      code:
                        pattern: {type: Code, value: GM011}
                        index: 29
                  text:
                    constraint:
                      healthplan-gm011: {human: Value must be between 1 to 500 characters, severity: error, expression: $this.length() > 0 and $this.length() <= 500}
                    index: 30
                extensions: {}
              detail:
                choices: [detailQuantity]
                index: 32
              detailQuantity: {type: Quantity, choiceOf: detail, index: 33}
              detail[x]:
                elements:
                  value:
                    constraint:
                      healthplan-gm011-1: {human: Valid numeric value required, severity: error, expression: '$this.toString().matches(''^[0-9]*$'')'}
                    maxValueDecimal: 99999.0
                    minValueDecimal: 1.0
                    index: 34
                  system:
                    pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
                    index: 35
                  code:
                    pattern: {type: Code, value: '{steps}/d'}
                    index: 36
                required: [value, system, code]
              due:
                choices: [dueDuration]
                index: 38
              dueDuration: {type: Duration, choiceOf: due, index: 39}
            required: [detailQuantity, detail]
        GM012:
          match:
            measure:
              coding: {code: GM012}
          schema:
            index: 40
            extensions:
              exerciseIntensity: {url: 'http://ihis.sg/extension/exercise-intensity', type: Extension, index: 42}
            elements:
              extension:
                index: 41
                slicing:
                  slices:
                    exerciseIntensity:
                      match: {}
                      schema: {type: Extension, url: 'http://ihis.sg/extension/exercise-intensity', index: 42}
              measure:
                elements:
                  id: {index: 43}
                  extension: {index: 44}
                  coding:
                    binding: {strength: required, valueSet: 'http://ihis.sg/ValueSet/hsg-goal-measure'}
                    index: 45
                    elements:
                      code:
                        pattern: {type: Code, value: GM012}
                        index: 46
                  text:
                    constraint:
                      healthplan-gm012: {human: Value must be between 1 to 500 characters, severity: error, expression: $this.length() > 0 and $this.length() <= 500}
                    index: 47
                extensions: {}
              detail:
                choices: [detailQuantity]
                index: 49
              detailQuantity: {type: Quantity, choiceOf: detail, index: 50}
              detail[x]:
                elements:
                  value:
                    constraint:
                      healthplan-gm012-1: {human: Valid numeric value required, severity: error, expression: '$this.toString().matches(''^[0-9]*$'')'}
                    maxValueDecimal: 999.0
                    minValueDecimal: 1.0
                    index: 51
                  system:
                    pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
                    index: 52
                  code:
                    pattern: {type: Code, value: min}
                    index: 53
                required: [value, system, code]
              due:
                choices: [dueDuration]
                index: 55
              dueDuration: {type: Duration, choiceOf: due, index: 56}
              due[x]:
                elements:
                  value:
                    constraint:
                      healthplan-gm012-2: {human: Valid numeric value required, severity: error, expression: '$this.toString().matches(''^[0-9]*$'')'}
                    maxValueDecimal: 7.0
                    minValueDecimal: 1.0
                    index: 57
                  system:
                    pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
                    index: 58
                  code:
                    pattern: {type: Code, value: '{days}/wk'}
                    index: 59
                required: [value, system, code]
            required: [detailQuantity, detail, dueDuration, extension, due]
        GM013:
          match:
            measure:
              coding: {code: GM013}
          schema:
            index: 60
            extensions: {}
            elements:
              extension: {index: 61}
              measure:
                elements:
                  id: {index: 62}
                  extension: {index: 63}
                  coding:
                    binding: {strength: required, valueSet: 'http://ihis.sg/ValueSet/hsg-goal-measure'}
                    index: 64
                    elements:
                      code:
                        pattern: {type: Code, value: GM013}
                        index: 65
                  text:
                    constraint:
                      healthplan-gm013: {human: Value must be between 1 to 500 characters, severity: error, expression: $this.length() > 0 and $this.length() <= 500}
                    index: 66
                extensions: {}
              due:
                choices: [dueDuration]
                index: 68
              dueDuration: {type: Duration, choiceOf: due, index: 69}
        GM014:
          match:
            measure:
              coding: {code: GM014}
          schema:
            index: 70
            extensions: {}
            elements:
              extension: {index: 71}
              measure:
                elements:
                  id: {index: 72}
                  extension: {index: 73}
                  coding:
                    binding: {strength: required, valueSet: 'http://ihis.sg/ValueSet/hsg-goal-measure'}
                    index: 74
                    elements:
                      code:
                        pattern: {type: Code, value: GM014}
                        index: 75
                  text:
                    constraint:
                      healthplan-gm014: {human: Value must be between 1 to 500 characters, severity: error, expression: $this.length() > 0 and $this.length() <= 500}
                    index: 76
                extensions: {}
              due:
                choices: [dueDuration]
                index: 78
              dueDuration: {type: Duration, choiceOf: due, index: 79}
        GM015:
          match:
            measure:
              coding: {code: GM015}
          schema:
            index: 80
            extensions: {}
            elements:
              extension: {index: 81}
              measure:
                elements:
                  id: {index: 82}
                  extension: {index: 83}
                  coding:
                    binding: {strength: required, valueSet: 'http://ihis.sg/ValueSet/hsg-goal-measure'}
                    index: 84
                    elements:
                      code:
                        pattern: {type: Code, value: GM015}
                        index: 85
                  text:
                    constraint:
                      healthplan-gm015: {human: Value must be between 1 to 500 characters, severity: error, expression: $this.length() > 0 and $this.length() <= 500}
                    index: 86
                extensions: {}
              due:
                choices: [dueDuration]
                index: 88
              dueDuration: {type: Duration, choiceOf: due, index: 89}
package_version: 4.3.0-v3
class: profile
kind: resource
url: http://ihis.sg/profile/G8
base: http://ihis.sg/StructureDefinition/put-health-plan-goal
version: 4.3.0-v3