PackagesCanonicalsLogsProblems
    Packages
    synapxe.hsar@1.0.0
    http://ihis.sg/StructureDefinition/CarePlan-pophealth-healthplan-output
description: null
package_name: synapxe.hsar
derivation: constraint
name: profile-Healthplan-get-health-plan
type: CarePlan
elements:
  description: {index: 19}
  category:
    short: FHIR Value set "Care Plan Category". Customise codeset
    index: 10
    elements:
      coding:
        index: 11
        elements:
          system:
            pattern: {type: Uri, value: 'http://ihis.sg/ValueSet/hsg-care-plan-category'}
            index: 12
          version: {index: 13}
          code: {short: 'Fixed Value : "pophealth-plan"', index: 14}
          display: {short: 'Fixed value: "Pophealth Plan"', index: 15}
          userSelected: {index: 16}
        required: [system, code]
      text: {index: 17}
    required: [coding]
  addresses: {short: 'Sample Value: "#3ce6e90318e74f3f839b825b60638356"', index: 48}
  instantiatesCanonical: {index: 3}
  instantiatesUri: {index: 4}
  supportingInfo: {index: 49}
  encounter: {index: 30}
  goal:
    type: Reference
    refers: ['http://ihis.sg/StructureDefinition/getHealthplanGoal']
    index: 50
    elements:
      type: {index: 51}
      identifier: {index: 52}
      display: {index: 53}
  created: {short: 'Sample Value: "2022-11-17T03:33:22+08:00"', index: 34}
  title: {index: 18}
  note:
    index: 275
    elements:
      id: {index: 276}
      extension:
        index: 277
        slicing:
          slices:
            extensionHealthPlanHealthplanNoteType:
              match: {}
              schema: {type: Extension, url: 'http://ihis.sg/extension/health-plan-note-type', index: 278}
      author:
        choices: []
        index: 280
      time: {index: 281}
      text: {index: 282}
    extensions:
      extensionHealthPlanHealthplanNoteType: {url: 'http://ihis.sg/extension/health-plan-note-type', type: Extension, index: 278}
    required: [extension]
  author:
    index: 35
    elements:
      reference: {short: 'Sample Value: "https://pophealth.healthdxp.com/Organization/B56B99498BDD439890B24C45BEB55DCC"', index: 36}
      type: {short: 'Fixed value : "Organization"', index: 37}
      identifier:
        index: 38
        elements:
          use: {index: 39}
          type: {index: 40}
          system:
            pattern: {type: Uri, value: 'http://ihis.sg/identifier/hci-code'}
            index: 41
          value: {short: Value of hci code, index: 42}
          period: {index: 43}
          assigner: {index: 44}
        required: [value, system]
      display: {short: 'Sample Value : "Clinic ABC"', index: 45}
    required: [identifier, reference, type, display]
  activity:
    index: 54
    elements:
      outcomeCodeableConcept: {index: 55}
      outcomeReference: {index: 56}
      progress: {index: 57}
      reference: {index: 58}
      detail:
        index: 59
        elements:
          description: {index: 86}
          instantiatesCanonical: {index: 61}
          instantiatesUri: {index: 62}
          goal: {index: 72}
          reasonCode: {index: 70}
          statusReason: {index: 74}
          scheduledTiming: {type: Timing, choiceOf: scheduled, index: 78}
          dailyAmount: {index: 84}
          product:
            choices: []
            index: 83
          status:
            short: 'Fixed Value: "scheduled"'
            pattern: {type: Code, value: scheduled}
            index: 73
          kind: {short: 'Fixed Value: "Appointment"', index: 60}
          scheduled[x]:
            elements:
              event: {short: 'Sample Value: "2023-10"', index: 79}
          code:
            index: 63
            elements:
              coding:
                index: 64
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://ihis.sg/ValueSet/hsg-healthplan-activity-type'}
                    index: 65
                  code: {short: 'Sample Value : "recommended-next-check-in"', index: 66}
                  display: {short: 'Sample Value : "Recommended Next Check-in"', index: 67}
                  userSelected: {index: 68}
                required: [system, code]
              text: {index: 69}
            required: [coding]
          doNotPerform: {index: 75}
          scheduled:
            choices: [scheduledTiming]
            index: 77
          quantity: {index: 85}
          location: {index: 80}
          performer: {index: 81}
          reasonReference: {index: 71}
        required: [scheduled, scheduledTiming, kind, code]
    slicing:
      rules: open
      discriminator:
      - {path: detail.code.coding.system, type: value}
      min: null
      slices:
        recommended-next-check-in:
          match:
            detail:
              code:
                coding: {system: 'http://ihis.sg/ValueSet/hsg-healthplan-activity-type'}
          schema:
            short: Represent next appointment date
            _required: true
            index: 87
            elements:
              id: {index: 88}
              extension: {index: 89}
              modifierExtension: {index: 90}
              outcomeCodeableConcept:
                index: 91
                elements:
                  id: {index: 92}
                  extension: {index: 93}
                  coding:
                    elements:
                      id: {index: 94}
                      extension: {index: 95}
                      system: {index: 96}
                      version: {index: 97}
                      code: {index: 98}
                      userSelected: {index: 99}
                    extensions: {}
                    required: [system, code]
                  text: {index: 100}
                extensions: {}
              outcomeReference: {index: 101}
              progress: {index: 102}
              reference: {index: 103}
              detail:
                index: 104
                elements:
                  description: {index: 144}
                  instantiatesCanonical: {index: 109}
                  instantiatesUri: {index: 110}
                  goal: {index: 125}
                  reasonCode: {index: 123}
                  statusReason: {index: 127}
                  scheduledTiming: {type: Timing, choiceOf: scheduled, index: 131}
                  dailyAmount: {index: 142}
                  extension: {index: 106}
                  product:
                    choices: []
                    index: 141
                  status: {short: 'Fixed Value: "scheduled"', index: 126}
                  id: {index: 105}
                  kind:
                    short: 'Fixed Value: "Appointment"'
                    pattern: {type: Code, value: Appointment}
                    index: 108
                  scheduled[x]:
                    elements:
                      id: {index: 132}
                      extension: {index: 133}
                      modifierExtension: {index: 134}
                      event: {short: 'Sample Value: "2023-10"', index: 135}
                      repeat: {index: 136}
                      code: {index: 137}
                    extensions: {}
                  code:
                    index: 111
                    elements:
                      id: {index: 112}
                      extension: {index: 113}
                      coding:
                        index: 114
                        elements:
                          id: {index: 115}
                          extension: {index: 116}
                          system:
                            pattern: {type: Uri, value: 'http://ihis.sg/ValueSet/hsg-healthplan-activity-type'}
                            index: 117
                          version: {index: 118}
                          code: {short: 'Sample Value : "recommended-next-check-in"', index: 119}
                          display: {short: 'Sample Value : "Recommended Next Check-in"', index: 120}
                          userSelected: {index: 121}
                        extensions: {}
                        required: [system, code]
                      text: {index: 122}
                    extensions: {}
                    required: [coding]
                  doNotPerform: {index: 128}
                  scheduled:
                    choices: [scheduledTiming]
                    index: 130
                  quantity: {index: 143}
                  location: {index: 138}
                  modifierExtension: {index: 107}
                  performer: {index: 139}
                  reasonReference: {index: 124}
                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:
            array: true
            max: 7
            index: 145
            elements:
              id: {index: 146}
              extension: {index: 147}
              modifierExtension: {index: 148}
              outcomeCodeableConcept:
                index: 149
                elements:
                  id: {index: 150}
                  extension: {index: 151}
                  coding:
                    elements:
                      id: {index: 152}
                      extension: {index: 153}
                      system:
                        pattern: {type: Uri, value: 'http://ihis.sg/ValueSet/hsg-action-plan-category'}
                        index: 154
                      version: {index: 155}
                      code: {short: 'Sample Value : "AP1"', index: 156}
                      display: {short: 'Sample Value : "Diet"', index: 157}
                      userSelected: {index: 158}
                    extensions: {}
                    required: [system, code]
                  text: {index: 159}
                extensions: {}
              outcomeReference: {index: 160}
              progress: {index: 161}
              reference: {index: 162}
              detail:
                index: 163
                elements:
                  description: {index: 196}
                  instantiatesCanonical: {index: 168}
                  instantiatesUri: {index: 169}
                  goal: {index: 184}
                  reasonCode: {index: 182}
                  statusReason: {index: 186}
                  dailyAmount: {index: 194}
                  extension: {index: 165}
                  product:
                    choices: []
                    index: 193
                  status:
                    short: fixed value 'scheduled'
                    pattern: {type: Code, value: scheduled}
                    index: 185
                  id: {index: 164}
                  kind:
                    short: fixed value 'ServiceRequest'
                    pattern: {type: Code, value: ServiceRequest}
                    index: 167
                  code:
                    index: 170
                    elements:
                      id: {index: 171}
                      extension: {index: 172}
                      coding:
                        index: 173
                        elements:
                          id: {index: 174}
                          extension: {index: 175}
                          system:
                            pattern: {type: Uri, value: 'http://ihis.sg/ValueSet/hsg-action-plan-diet-item'}
                            index: 176
                          version: {index: 177}
                          code: {short: 'Sample Value : "DI001"', index: 178}
                          display: {short: 'Sample Value : "Limit sodium intake"', index: 179}
                          userSelected: {index: 180}
                        extensions: {}
                        required: [system, code]
                      text: {index: 181}
                    extensions: {}
                    required: [coding]
                  doNotPerform: {index: 187}
                  scheduled:
                    choices: []
                    index: 189
                  quantity: {index: 195}
                  location: {index: 190}
                  modifierExtension: {index: 166}
                  performer: {index: 191}
                  reasonReference: {index: 183}
                extensions: {}
                required: [code]
            extensions: {}
            required: [detail, outcomeCodeableConcept]
        Vaccination:
          match:
            detail:
              code:
                coding: {system: 'http://ihis.sg/ValueSet/hsg-action-plan-vaccination-item'}
          schema:
            array: true
            max: 8
            index: 197
            elements:
              id: {index: 198}
              extension: {index: 199}
              modifierExtension: {index: 200}
              outcomeCodeableConcept:
                index: 201
                elements:
                  id: {index: 202}
                  extension: {index: 203}
                  coding:
                    index: 204
                    elements:
                      id: {index: 205}
                      extension: {index: 206}
                      system:
                        pattern: {type: Uri, value: 'http://ihis.sg/ValueSet/hsg-action-plan-category'}
                        index: 207
                      version: {index: 208}
                      code: {short: Sample Value 'AP2', index: 209}
                      userSelected: {index: 210}
                    extensions: {}
                    required: [system, code]
                  text: {index: 211}
                extensions: {}
                required: [coding]
              outcomeReference: {index: 212}
              progress: {index: 213}
              reference: {index: 214}
              detail:
                index: 215
                elements:
                  description: {index: 274}
                  instantiatesCanonical: {index: 220}
                  instantiatesUri: {index: 221}
                  goal: {index: 235}
                  reasonCode: {index: 233}
                  statusReason: {index: 237}
                  scheduledTiming:
                    type: Timing
                    choiceOf: scheduled
                    index: 243
                    slicing:
                      slices:
                        scheduledTiming:
                          match: {}
                          schema: {type: Timing, choiceOf: scheduled, index: 243}
                  dailyAmount: {index: 272}
                  extension: {index: 217}
                  product:
                    choices: []
                    index: 271
                  status: {short: fixed 'scheduled', index: 236}
                  id: {index: 216}
                  kind: {short: fixed 'ServiceRequest', index: 219}
                  scheduled[x]:
                    elements:
                      repeat:
                        elements:
                          frequencyMax: {index: 259}
                          when: {index: 265}
                          offset: {index: 266}
                          periodUnit: {short: fixed value 'a', index: 262}
                          frequency: {short: fixed value '1', index: 258}
                          durationMax: {index: 256}
                          duration: {index: 255}
                          durationUnit: {index: 257}
                          dayOfWeek: {index: 263}
                          count: {index: 253}
                          periodMax: {index: 261}
                          period: {short: fixed value '1.0', index: 260}
                          countMax: {index: 254}
                          timeOfDay: {index: 264}
                        required: [periodUnit, period, frequency]
                      code: {index: 267}
                  code:
                    index: 222
                    elements:
                      id: {index: 223}
                      extension: {index: 224}
                      coding:
                        index: 225
                        elements:
                          id: {index: 226}
                          extension: {index: 227}
                          system:
                            pattern: {type: Uri, value: 'http://ihis.sg/ValueSet/hsg-action-plan-vaccination-item'}
                            index: 228
                          version: {index: 229}
                          code: {index: 230}
                          userSelected: {index: 231}
                        extensions: {}
                        required: [system, code]
                      text: {index: 232}
                    extensions: {}
                    required: [coding]
                  doNotPerform: {index: 238}
                  scheduled:
                    elements:
                      repeat:
                        elements:
                          bounds:
                            choices: []
                            index: 252
                  quantity: {index: 273}
                  location: {index: 268}
                  modifierExtension: {index: 218}
                  performer: {index: 269}
                  reasonReference: {index: 234}
                extensions: {}
                required: [kind, code]
            extensions: {}
            required: [detail, outcomeCodeableConcept]
  extension:
    index: 0
    slicing:
      slices:
        performer:
          match: {}
          schema: {type: Extension, url: 'http://ihis.sg/extension/performer', index: 1}
          min: 1
  contributor: {index: 46}
  status: {short: Fixed to "active", index: 8}
  condition:
    type: Reference
    refers: ['http://ihis.sg/profile/C1']
    index: 283
    elements:
      id: {index: 284}
      extension: {index: 285}
      reference: {index: 286}
      type: {index: 287}
      identifier: {index: 288}
      display: {index: 289}
    extensions: {}
  identifier: {index: 2}
  intent: {short: 'Fixed value: "plan"', index: 9}
  replaces: {index: 6}
  period:
    index: 31
    elements:
      start: {short: 'Sample Value: "2022-01-01T10:30:01+08:00"', index: 32}
      end: {short: 'Sample Value: "2022-01-01T10:30:01+08:00"', index: 33}
    required: [start]
  basedOn: {index: 5}
  partOf: {index: 7}
  subject:
    elements:
      reference: {short: 'Sample Value: "https://pophealth.healthdxp.com/Patient/B56B99498BDD439890B24C45BEB55DC6"', index: 20}
      type: {short: 'Fixed Value : "Patient"', index: 21}
      identifier:
        index: 22
        elements:
          use: {index: 23}
          type: {index: 24}
          system:
            pattern: {type: Uri, value: 'http://ihis.sg/identifier/nric'}
            index: 25
          value: {short: Value of patient nric, index: 26}
          period: {index: 27}
          assigner: {index: 28}
        required: [value, system]
      display: {index: 29}
    required: [identifier, reference, type]
  careTeam: {index: 47}
package_version: 1.0.0
extensions:
  performer: {url: 'http://ihis.sg/extension/performer', min: 1, type: Extension, index: 1}
class: profile
kind: resource
url: http://ihis.sg/StructureDefinition/CarePlan-pophealth-healthplan-output
base: http://hl7.org/fhir/StructureDefinition/CarePlan
version: null
required: [created, author, extension, category, period]