PackagesCanonicalsLogsProblems
    Packages
    synapxe.hsar.hsg@4.3.0-v3
    http://ihis.sg/StructureDefinition/CarePlan-pophealth-healthplan-output
description: null
package_name: synapxe.hsar.hsg
derivation: constraint
name: profile-Healthplan-get-health-plan
type: CarePlan
elements:
  description: {index: 52}
  category:
    short: n/a
    index: 39
    elements:
      id: {index: 40}
      extension: {index: 41}
      coding:
        short: n/a
        binding: {strength: required, valueSet: 'http://ihis.sg/ValueSet/hsg-care-plan-category'}
        index: 42
        elements:
          id: {index: 43}
          extension: {index: 44}
          system:
            short: n/a
            pattern: {type: Uri, value: 'http://ihis.sg/ValueSet/hsg-care-plan-category'}
            index: 45
          version: {index: 46}
          code:
            short: n/a
            pattern: {type: Code, value: pophealth-plan}
            index: 47
          display:
            short: n/a
            pattern: {type: String, value: Pophealth Plan}
            index: 48
          userSelected: {index: 49}
        extensions: {}
        required: [system, code]
      text: {index: 50}
    extensions: {}
    required: [coding]
  addresses:
    short: n/a
    index: 91
    elements:
      id: {index: 92}
      extension: {index: 93}
      reference:
        short: n/a
        constraint:
          max-string-length-255: {human: String length must not exceed 255 characters, severity: error, expression: $this.toString().length() <= 255}
        index: 94
      type: {index: 95}
      identifier: {index: 96}
      display: {index: 97}
    extensions: {}
    required: [reference]
  instantiatesCanonical: {index: 32}
  meta:
    index: 1
    elements:
      id: {index: 2}
      extension: {index: 3}
      versionId: {index: 4}
      lastUpdated: {index: 5}
      source: {index: 6}
      profile: {index: 7}
      security: {index: 8}
      tag:
        index: 9
        elements:
          id: {index: 10}
          extension: {index: 11}
          system: {index: 12}
          version: {index: 13}
          code: {index: 14}
          display: {index: 15}
          userSelected: {index: 16}
        extensions: {}
        required: [system, code]
    extensions: {}
    required: [lastUpdated, versionId, tag]
  instantiatesUri: {index: 33}
  supportingInfo: {index: 98}
  encounter: {index: 68}
  implicitRules: {index: 17}
  goal:
    short: n/a
    index: 99
    elements:
      id: {index: 100}
      extension: {index: 101}
      reference:
        short: n/a
        constraint:
          max-string-length-255: {human: String length must not exceed 255 characters, severity: error, expression: $this.toString().length() <= 255}
        index: 102
      type: {index: 103}
      identifier: {index: 104}
      display: {index: 105}
    extensions: {}
    required: [reference]
  created: {short: n/a, index: 74}
  title: {index: 51}
  note:
    short: n/a
    array: true
    max: 2
    index: 298
    elements:
      id: {index: 299}
      extension:
        short: n/a
        index: 300
        slicing:
          slices:
            noteExtension:
              match: {}
              schema: {type: Extension, url: 'http://ihis.sg/extension/health-plan-note-type', index: 301}
      author:
        choices: []
        index: 303
      time: {index: 304}
      text:
        short: n/a
        constraint:
          health-plan-note: {human: Value must be between 1 to 5000 characters, severity: error, expression: $this.length() > 0 and $this.length() <= 5000}
        index: 305
    extensions:
      noteExtension: {url: 'http://ihis.sg/extension/health-plan-note-type', type: Extension, index: 301}
    required: [extension]
  author:
    type: Reference
    short: n/a
    refers: ['http://hl7.org/fhir/StructureDefinition/Organization']
    index: 75
    elements:
      id: {index: 76}
      extension: {index: 77}
      reference: {short: n/a, index: 78}
      type:
        short: n/a
        pattern: {type: Uri, value: Organization}
        index: 79
      identifier:
        short: n/a
        index: 80
        elements:
          id: {index: 81}
          extension: {index: 82}
          use: {index: 83}
          type: {index: 84}
          system:
            short: n/a
            pattern: {type: Uri, value: 'http://ihis.sg/identifier/hci-code'}
            index: 85
          value:
            short: n/a
            constraint:
              max-string-length-9: {human: String length must not exceed 9 characters, severity: error, expression: $this.toString().length() <= 9}
            index: 86
          period: {index: 87}
          assigner: {index: 88}
        extensions: {}
        required: [value, system]
    extensions: {}
    required: [identifier, type]
  activity:
    index: 106
    extensions: {}
    elements:
      extension: {index: 107}
      modifierExtension: {index: 108}
      outcomeReference: {index: 109}
      progress: {index: 110}
      reference: {index: 111}
    slicing:
      rules: open
      discriminator:
      - {path: detail.code.coding.system, type: value}
      min: 1
      slices:
        recommended-next-check-in:
          match:
            detail:
              code:
                coding: {system: 'http://ihis.sg/ValueSet/hsg-healthplan-activity-type'}
          schema:
            short: n/a
            _required: true
            index: 112
            elements:
              id: {index: 113}
              extension: {index: 114}
              modifierExtension: {index: 115}
              outcomeCodeableConcept: {index: 116}
              outcomeReference: {index: 117}
              progress: {index: 118}
              reference: {index: 119}
              detail:
                short: n/a
                index: 120
                elements:
                  description: {index: 160}
                  instantiatesCanonical: {index: 125}
                  instantiatesUri: {index: 126}
                  goal: {index: 141}
                  reasonCode: {index: 139}
                  statusReason: {index: 143}
                  scheduledTiming: {type: Timing, short: n/a, choiceOf: scheduled, index: 147}
                  dailyAmount: {index: 158}
                  extension: {index: 122}
                  product:
                    choices: []
                    index: 157
                  status:
                    short: n/a
                    pattern: {type: Code, value: scheduled}
                    index: 142
                  id: {index: 121}
                  kind:
                    short: n/a
                    pattern: {type: Code, value: Appointment}
                    index: 124
                  scheduled[x]:
                    elements:
                      id: {index: 148}
                      extension: {index: 149}
                      modifierExtension: {index: 150}
                      event:
                        constraint:
                          healthplan-scheduledTiming: {human: Expected date format is YYYY-MM., severity: error, expression: '$this.toString().matches(''^\\d{4}-(0[1-9]|1[0-2])$'')'}
                        short: n/a
                        index: 151
                      repeat: {index: 152}
                      code: {index: 153}
                    extensions: {}
                    required: [event]
                  code:
                    short: n/a
                    binding: {strength: required, valueSet: 'http://ihis.sg/ValueSet/hsg-healthplan-activity-type'}
                    index: 127
                    elements:
                      id: {index: 128}
                      extension: {index: 129}
                      coding:
                        short: n/a
                        index: 130
                        elements:
                          id: {index: 131}
                          extension: {index: 132}
                          system:
                            short: n/a
                            pattern: {type: Uri, value: 'http://ihis.sg/ValueSet/hsg-healthplan-activity-type'}
                            index: 133
                          version: {index: 134}
                          code: {short: n/a, index: 135}
                          display: {short: n/a, index: 136}
                          userSelected: {index: 137}
                        extensions: {}
                        required: [system, code]
                      text: {index: 138}
                    extensions: {}
                    required: [coding]
                  doNotPerform: {index: 144}
                  scheduled:
                    short: n/a
                    choices: [scheduledTiming]
                    index: 146
                  quantity: {index: 159}
                  location: {index: 154}
                  modifierExtension: {index: 123}
                  performer: {index: 155}
                  reasonReference: {index: 140}
                extensions: {}
                required: [scheduled, scheduledTiming, kind, code]
            extensions: {}
            required: [detail]
        Diet:
          match:
            detail:
              code:
                coding: {system: 'http://ihis.sg/ValueSet/hsg-action-plan-diet-item'}
          schema:
            short: n/a
            array: true
            max: 8
            index: 161
            elements:
              id: {index: 162}
              extension: {index: 163}
              modifierExtension: {index: 164}
              outcomeCodeableConcept:
                short: n/a
                index: 165
                elements:
                  id: {index: 166}
                  extension: {index: 167}
                  coding:
                    short: n/a
                    binding: {strength: required, valueSet: 'http://ihis.sg/ValueSet/hsg-action-plan-category'}
                    index: 168
                    elements:
                      id: {index: 169}
                      extension: {index: 170}
                      system:
                        short: n/a
                        pattern: {type: Uri, value: 'http://ihis.sg/ValueSet/hsg-action-plan-category'}
                        index: 171
                      version: {index: 172}
                      code:
                        short: n/a
                        pattern: {type: Code, value: AP1}
                        index: 173
                      display: {short: n/a, index: 174}
                      userSelected: {index: 175}
                    extensions: {}
                    required: [system, code]
                  text: {index: 176}
                extensions: {}
                required: [coding]
              outcomeReference: {index: 177}
              progress: {index: 178}
              reference: {index: 179}
              detail:
                short: n/a
                index: 180
                elements:
                  description: {short: n/a, index: 213}
                  instantiatesCanonical: {index: 185}
                  instantiatesUri: {index: 186}
                  goal: {index: 201}
                  reasonCode: {index: 199}
                  statusReason: {index: 203}
                  dailyAmount: {index: 211}
                  extension: {index: 182}
                  product:
                    choices: []
                    index: 210
                  status:
                    short: n/a
                    pattern: {type: Code, value: scheduled}
                    isModifierReason: n/a
                    index: 202
                  id: {index: 181}
                  kind:
                    short: n/a
                    pattern: {type: Code, value: ServiceRequest}
                    index: 184
                  code:
                    short: n/a
                    binding: {strength: required, valueSet: 'http://ihis.sg/ValueSet/hsg-action-plan-diet-item'}
                    index: 187
                    elements:
                      id: {index: 188}
                      extension: {index: 189}
                      coding:
                        short: n/a
                        index: 190
                        elements:
                          id: {index: 191}
                          extension: {index: 192}
                          system:
                            short: n/a
                            pattern: {type: Uri, value: 'http://ihis.sg/ValueSet/hsg-action-plan-diet-item'}
                            index: 193
                          version: {index: 194}
                          code:
                            short: n/a
                            constraint:
                              healthplan-diet: {human: 'AP1 allowed values: (''DI001'' | ''DI002'' | ''DI003'' | ''DI004'' | ''DI005'' | ''DI006'' | ''DI007'' | ''DI008'')', severity: error, expression: ($this in ('DI001' | 'DI002' | 'DI003' | 'DI004' | 'DI005' | 'DI006' | 'DI007' | 'DI008'))}
                            index: 195
                          display: {short: n/a, index: 196}
                          userSelected: {index: 197}
                        extensions: {}
                        required: [system, code]
                      text: {index: 198}
                    extensions: {}
                    required: [coding]
                  doNotPerform: {index: 204}
                  scheduled:
                    choices: []
                    index: 206
                  quantity: {index: 212}
                  location: {index: 207}
                  modifierExtension: {index: 183}
                  performer: {index: 208}
                  reasonReference: {index: 200}
                extensions: {}
                required: [kind, code]
            extensions: {}
            required: [detail, outcomeCodeableConcept]
        Vaccination:
          match:
            detail:
              code:
                coding: {system: 'http://ihis.sg/ValueSet/hsg-action-plan-vaccination-item'}
          schema:
            short: n/a
            array: true
            max: 9
            index: 214
            elements:
              id: {index: 215}
              extension: {index: 216}
              modifierExtension: {index: 217}
              outcomeCodeableConcept:
                short: n/a
                index: 218
                elements:
                  id: {index: 219}
                  extension: {index: 220}
                  coding:
                    short: n/a
                    binding: {strength: required, valueSet: 'http://ihis.sg/ValueSet/hsg-action-plan-category'}
                    index: 221
                    elements:
                      id: {index: 222}
                      extension: {index: 223}
                      system:
                        short: n/a
                        pattern: {type: Uri, value: 'http://ihis.sg/ValueSet/hsg-action-plan-category'}
                        index: 224
                      version: {index: 225}
                      code:
                        short: n/a
                        pattern: {type: Code, value: AP2}
                        index: 226
                      display: {short: n/a, index: 227}
                      userSelected: {index: 228}
                    extensions: {}
                    required: [system, code]
                  text: {index: 229}
                extensions: {}
                required: [coding]
              outcomeReference: {index: 230}
              progress: {index: 231}
              reference: {index: 232}
              detail:
                short: n/a
                index: 233
                elements:
                  description: {short: n/a, index: 297}
                  instantiatesCanonical: {index: 242}
                  instantiatesUri: {index: 243}
                  goal: {index: 258}
                  reasonCode: {index: 256}
                  statusReason: {index: 260}
                  scheduledTiming:
                    short: n/a
                    type: Timing
                    choiceOf: scheduled
                    index: 266
                    slicing:
                      slices:
                        scheduledTiming:
                          match: {}
                          schema: {short: n/a, type: Timing, choiceOf: scheduled, index: 266}
                  dailyAmount: {index: 295}
                  extension:
                    short: n/a
                    index: 235
                    slicing:
                      slices:
                        vaccinationExtension:
                          match: {}
                          schema:
                            type: Extension
                            isModifier: false
                            url: http://ihis.sg/extension/dueDate
                            index: 236
                            extensions: {}
                            elements:
                              extension: {index: 237}
                              value:
                                short: n/a
                                choices: []
                                index: 239
                  product:
                    choices: []
                    index: 294
                  status:
                    short: n/a
                    pattern: {type: Code, value: scheduled}
                    isModifierReason: n/a
                    index: 259
                  id: {index: 234}
                  kind:
                    short: n/a
                    pattern: {type: Code, value: ServiceRequest}
                    index: 241
                  scheduled[x]:
                    elements:
                      repeat:
                        elements:
                          frequencyMax: {index: 282}
                          when: {index: 288}
                          offset: {index: 289}
                          periodUnit:
                            short: n/a
                            pattern: {type: Code, value: a}
                            index: 285
                          frequency:
                            short: n/a
                            pattern: {type: PositiveInt, value: 1}
                            index: 281
                          durationMax: {index: 279}
                          duration: {index: 278}
                          durationUnit: {index: 280}
                          dayOfWeek: {index: 286}
                          count: {index: 276}
                          periodMax: {index: 284}
                          period:
                            short: n/a
                            pattern: {type: Decimal, value: 1.0}
                            index: 283
                          countMax: {index: 277}
                          timeOfDay: {index: 287}
                        required: [periodUnit, period, frequency]
                      code: {index: 290}
                  code:
                    short: n/a
                    binding: {strength: required, valueSet: 'http://ihis.sg/ValueSet/hsg-action-plan-vaccination-item'}
                    index: 244
                    elements:
                      id: {index: 245}
                      extension: {index: 246}
                      coding:
                        short: n/a
                        index: 247
                        elements:
                          id: {index: 248}
                          extension: {index: 249}
                          system:
                            short: n/a
                            pattern: {type: Uri, value: 'http://ihis.sg/ValueSet/hsg-action-plan-vaccination-item'}
                            index: 250
                          version: {index: 251}
                          code:
                            short: n/a
                            constraint:
                              healthplan-vaccination: {human: 'AP2 allowed values: (''A-INF'' | ''A-PNC'' | ''A-PPSV'' | ''A-Tdap'' | ''A-HEPB'' | ''A-MMR'' | ''A-CPOX'' | ''A-PCV20'' | ''A-HZVRC'')', severity: error, expression: ($this in ('A-INF' | 'A-PNC' | 'A-PPSV' | 'A-Tdap' | 'A-HEPB' | 'A-MMR' | 'A-CPOX' | 'A-PCV20' | 'A-HZVRC'))}
                            index: 252
                          display: {short: n/a, index: 253}
                          userSelected: {index: 254}
                        extensions: {}
                        required: [system, code]
                      text: {index: 255}
                    extensions: {}
                    required: [coding]
                  doNotPerform: {index: 261}
                  scheduled:
                    elements:
                      repeat:
                        elements:
                          bounds:
                            choices: []
                            index: 275
                  quantity: {index: 296}
                  location: {index: 291}
                  modifierExtension: {index: 240}
                  performer: {index: 292}
                  reasonReference: {index: 257}
                extensions:
                  vaccinationExtension:
                    url: http://ihis.sg/extension/dueDate
                    type: Extension
                    isModifier: false
                    index: 236
                    extensions: {}
                    elements:
                      extension: {index: 237}
                      value:
                        short: n/a
                        choices: []
                        index: 239
                required: [kind, code]
            extensions: {}
            required: [detail, outcomeCodeableConcept]
  extension:
    short: n/a
    index: 23
    slicing:
      slices:
        performer:
          match: {}
          schema:
            type: Extension
            url: http://ihis.sg/extension/performer
            index: 24
            extensions: {}
            elements:
              extension: {index: 25}
        visitMode:
          match: {}
          schema:
            type: Extension
            url: http://ihis.sg/extension/health-plan-visit-mode
            index: 26
            extensions: {}
            elements:
              extension: {index: 27}
        copyStatus:
          match: {}
          schema:
            type: Extension
            url: http://ihis.sg/extension/health-plan-copy-status
            index: 28
            extensions: {}
            elements:
              extension: {index: 29}
  contained:
    short: n/a
    index: 20
    slicing:
      rules: closed
      discriminator:
      - {path: $this, type: type}
      min: null
      slices:
        Goal:
          match: {}
          schema: {type: Resource, short: 'n/a  ', index: 21}
        Condition:
          match: {}
          schema: {type: Resource, index: 22}
  contributor: {index: 89}
  status:
    short: n/a
    pattern: {type: Code, value: active}
    isModifierReason: n/a
    index: 37
  language: {index: 18}
  id: {index: 0}
  condition:
    type: Reference
    index: 306
    elements:
      id: {index: 307}
      extension: {index: 308}
      reference: {index: 309}
      type: {index: 310}
      identifier: {index: 311}
      display: {index: 312}
    extensions: {}
  identifier: {index: 31}
  intent:
    short: n/a
    pattern: {type: Code, value: plan}
    isModifierReason: n/a
    index: 38
  replaces: {index: 35}
  period:
    short: n/a
    index: 69
    elements:
      id: {index: 70}
      extension: {index: 71}
      start: {short: n/a, index: 72}
      end: {short: n/a, meaningWhenMissing: n/a, index: 73}
    extensions: {}
    required: [start]
  basedOn: {index: 34}
  partOf: {index: 36}
  subject:
    type: Reference
    short: n/a
    refers: ['http://hl7.org/fhir/StructureDefinition/Patient']
    index: 53
    elements:
      id: {index: 54}
      extension: {index: 55}
      reference: {short: n/a, index: 56}
      type:
        short: n/a
        pattern: {type: Uri, value: Patient}
        index: 57
      identifier:
        short: n/a
        index: 58
        elements:
          id: {index: 59}
          extension: {index: 60}
          use: {index: 61}
          type: {index: 62}
          system:
            short: n/a
            pattern: {type: Uri, value: 'http://ihis.sg/identifier/nric'}
            index: 63
          value: {short: n/a, index: 64}
          period: {index: 65}
          assigner: {index: 66}
        extensions: {}
        required: [value, system]
      display: {index: 67}
    extensions: {}
    required: [reference, type]
  modifierExtension: {index: 30}
  careTeam: {index: 90}
  text: {index: 19}
package_version: 4.3.0-v3
extensions:
  performer:
    url: http://ihis.sg/extension/performer
    type: Extension
    index: 24
    extensions: {}
    elements:
      extension: {index: 25}
  visitMode:
    url: http://ihis.sg/extension/health-plan-visit-mode
    type: Extension
    index: 26
    extensions: {}
    elements:
      extension: {index: 27}
  copyStatus:
    url: http://ihis.sg/extension/health-plan-copy-status
    type: Extension
    index: 28
    extensions: {}
    elements:
      extension: {index: 29}
class: profile
kind: resource
url: http://ihis.sg/StructureDefinition/CarePlan-pophealth-healthplan-output
base: http://hl7.org/fhir/StructureDefinition/CarePlan
version: 4.3.0-v3
required: [created, activity, author, id, meta]