PackagesCanonicalsLogsProblems
    Packages
    uk.nhsdigital.stu3.test@0.0.2-prerelease
    https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-MH-Composition-1
description: This constrained Composition resource represents a Mental Health Document Header Composition.
package_name: uk.nhsdigital.stu3.test
derivation: constraint
name: CareConnect-ITK-MH-Composition-1
type: Composition
elements:
  date: {mustSupport: true, index: 28}
  encounter:
    type: Reference
    mustSupport: true
    refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Encounter-1']
    index: 26
    elements:
      reference: {index: 27}
    required: [reference]
  section:
    mustSupport: true
    index: 55
    slicing:
      rules: closed
      ordered: false
      discriminator:
      - {path: code.coding.code, type: value}
      min: 1
      slices:
        referrerDetailsSection:
          match:
            code:
              coding: {code: '1052891000000108'}
          schema:
            mustSupport: true
            index: 544
            elements:
              title:
                pattern: {type: String, value: Referrer details}
                mustSupport: false
                index: 545
              code:
                index: 546
                elements:
                  coding:
                    index: 547
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 548
                      version: {index: 549}
                      code:
                        pattern: {type: Code, value: '1052891000000108'}
                        mustSupport: false
                        index: 550
                      display:
                        pattern: {type: String, value: Referrer details}
                        mustSupport: false
                        index: 551
                      userSelected: {index: 552}
                    required: [display, system, code]
                  text: {index: 553}
                required: [coding]
              text:
                mustSupport: false
                index: 554
                elements:
                  status: {mustSupport: false, index: 555}
                  div: {mustSupport: false, index: 556}
              mode: {index: 557}
              orderedBy:
                index: 558
                elements:
                  coding:
                    elements:
                      system: {index: 559}
                      version: {index: 560}
                      code: {index: 561}
                      display: {index: 562}
                      userSelected: {index: 563}
                    required: [display, system, code]
                  text: {index: 564}
              entry:
                type: Reference
                refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1', 'https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1', 'https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1', 'https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-PractitionerRole-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 565
                elements:
                  reference: {index: 566}
                required: [reference]
              emptyReason: {index: 567}
              section: {index: 568}
            required: [text, title, code]
        clinicalSummarySection:
          match:
            code:
              coding: {code: '887181000000106'}
          schema:
            mustSupport: true
            index: 131
            elements:
              title:
                pattern: {type: String, value: Clinical summary}
                mustSupport: false
                index: 132
              code:
                index: 133
                elements:
                  coding:
                    index: 134
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 135
                      version: {index: 136}
                      code:
                        pattern: {type: Code, value: '887181000000106'}
                        mustSupport: false
                        index: 137
                      display:
                        pattern: {type: String, value: Clinical summary}
                        mustSupport: false
                        index: 138
                      userSelected: {index: 139}
                    required: [display, system, code]
                  text: {index: 140}
                required: [coding]
              text: {index: 141}
              mode: {index: 142}
              orderedBy:
                index: 143
                elements:
                  coding:
                    elements:
                      system: {index: 144}
                      version: {index: 145}
                      code: {index: 146}
                      display: {index: 147}
                      userSelected: {index: 148}
                    required: [display, system, code]
                  text: {index: 149}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 150
                elements:
                  reference: {index: 151}
                required: [reference]
              emptyReason: {index: 152}
              section: {index: 153}
            required: [text, title, code]
        distributionListSection:
          match:
            code:
              coding: {code: '887261000000109'}
          schema:
            mustSupport: true
            index: 204
            elements:
              title:
                pattern: {type: String, value: Distribution list}
                index: 205
              code:
                index: 206
                elements:
                  coding:
                    index: 207
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 208
                      version: {index: 209}
                      code:
                        pattern: {type: Code, value: '887261000000109'}
                        index: 210
                      display:
                        pattern: {type: String, value: Distribution list}
                        index: 211
                      userSelected: {index: 212}
                    required: [display, system, code]
                  text: {index: 213}
                required: [coding]
              text: {index: 214}
              mode: {index: 215}
              orderedBy:
                index: 216
                elements:
                  coding:
                    elements:
                      system: {index: 217}
                      version: {index: 218}
                      code: {index: 219}
                      display: {index: 220}
                      userSelected: {index: 221}
                    required: [display, system, code]
                  text: {index: 222}
              entry:
                type: Reference
                refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1', 'https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1', 'https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1', 'https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-PractitionerRole-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/ITK-RelatedPerson-1']
                index: 223
                elements:
                  reference: {index: 224}
                required: [reference]
              emptyReason: {index: 225}
              section: {index: 226}
            required: [text, title, code]
        patientDemographicsSection:
          match:
            code:
              coding: {code: '886731000000109'}
          schema:
            mustSupport: true
            _required: true
            index: 444
            elements:
              title:
                pattern: {type: String, value: Patient demographics}
                index: 445
              code:
                index: 446
                elements:
                  coding:
                    index: 447
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 448
                      version: {index: 449}
                      code:
                        pattern: {type: Code, value: '886731000000109'}
                        index: 450
                      display:
                        pattern: {type: String, value: Patient demographics}
                        index: 451
                      userSelected: {index: 452}
                    required: [display, system, code]
                  text: {index: 453}
                required: [coding]
              text: {index: 454}
              mode: {index: 455}
              orderedBy:
                index: 456
                elements:
                  coding:
                    elements:
                      system: {index: 457}
                      version: {index: 458}
                      code: {index: 459}
                      display: {index: 460}
                      userSelected: {index: 461}
                    required: [display, system, code]
                  text: {index: 462}
              entry:
                type: Reference
                refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 463
                elements:
                  reference: {index: 464}
                required: [reference]
              emptyReason: {index: 465}
              section: {index: 466}
            required: [entry, text, title, code]
        dischargeDetailsSection:
          match:
            code:
              coding: {code: '886811000000106'}
          schema:
            mustSupport: true
            index: 179
            elements:
              title:
                pattern: {type: String, value: Discharge details}
                mustSupport: false
                index: 180
              code:
                index: 181
                elements:
                  coding:
                    index: 182
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 183
                      version: {index: 184}
                      code:
                        pattern: {type: Code, value: '886811000000106'}
                        mustSupport: false
                        index: 185
                      display:
                        pattern: {type: String, value: Discharge details}
                        mustSupport: false
                        index: 186
                      userSelected: {index: 187}
                    required: [display, system, code]
                  text: {index: 188}
                required: [coding]
              text:
                mustSupport: false
                index: 189
                elements:
                  status: {mustSupport: false, index: 190}
                  div: {mustSupport: false, index: 191}
              mode: {index: 192}
              orderedBy:
                mustSupport: false
                index: 193
                elements:
                  coding:
                    elements:
                      system: {mustSupport: false, index: 194}
                      version: {index: 195}
                      code: {mustSupport: false, index: 196}
                      display: {mustSupport: false, index: 197}
                      userSelected: {index: 198}
                    required: [display, system, code]
                  text: {index: 199}
              entry:
                type: Reference
                refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Encounter-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 200
                elements:
                  reference: {index: 201}
                required: [reference]
              emptyReason: {index: 202}
              section: {index: 203}
            required: [entry, text, title, code]
        allergiesAndAdverseReactionsSection:
          match:
            code:
              coding: {code: '886921000000105'}
          schema:
            mustSupport: true
            _required: true
            index: 80
            elements:
              title:
                pattern: {type: String, value: Allergies and adverse reactions}
                mustSupport: false
                index: 81
              code:
                index: 82
                elements:
                  coding:
                    index: 83
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 84
                      version: {index: 85}
                      code:
                        pattern: {type: Code, value: '886921000000105'}
                        mustSupport: false
                        index: 86
                      display:
                        pattern: {type: String, value: Allergies and adverse reactions}
                        mustSupport: false
                        index: 87
                      userSelected: {index: 88}
                    required: [display, system, code]
                  text: {index: 89}
                required: [coding]
              text:
                index: 90
                elements:
                  status: {mustSupport: false, index: 91}
                  div: {mustSupport: false, index: 92}
              mode: {index: 93}
              orderedBy:
                index: 94
                elements:
                  coding:
                    elements:
                      system: {mustSupport: false, index: 95}
                      version: {index: 96}
                      code: {mustSupport: false, index: 97}
                      display: {mustSupport: false, index: 98}
                      userSelected: {index: 99}
                    required: [display, system, code]
                  text: {index: 100}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Allergy-List-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 101
                elements:
                  reference: {index: 102}
                  display: {mustSupport: false, index: 103}
                required: [reference]
              emptyReason: {index: 104}
              section: {index: 105}
            required: [text, title, code]
        participationInResearchSection:
          match:
            code:
              coding: {code: '886751000000102'}
          schema:
            mustSupport: true
            index: 396
            elements:
              title:
                pattern: {type: String, value: Participation in research}
                mustSupport: false
                index: 397
              code:
                mustSupport: false
                index: 398
                elements:
                  coding:
                    mustSupport: false
                    index: 399
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 400
                      version: {index: 401}
                      code:
                        pattern: {type: Code, value: '886751000000102'}
                        mustSupport: false
                        index: 402
                      display:
                        pattern: {type: String, value: Participation in research}
                        mustSupport: false
                        index: 403
                      userSelected: {index: 404}
                    required: [display, system, code]
                  text: {index: 405}
                required: [coding]
              text:
                index: 406
                elements:
                  status: {mustSupport: false, index: 407}
                  div: {mustSupport: false, index: 408}
              mode: {index: 409}
              orderedBy:
                index: 410
                elements:
                  coding:
                    elements:
                      system: {index: 411}
                      version: {index: 412}
                      code: {index: 413}
                      display: {index: 414}
                      userSelected: {index: 415}
                    required: [display, system, code]
                  text: {index: 416}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 417
                elements:
                  reference: {index: 418}
                required: [reference]
              emptyReason: {index: 419}
              section: {index: 420}
            required: [text, title, code]
        individualRequirementsSection:
          match:
            code:
              coding: {code: '1078911000000106'}
          schema:
            mustSupport: true
            index: 273
            elements:
              title:
                pattern: {type: String, value: Individual requirements}
                index: 274
              code:
                index: 275
                elements:
                  coding:
                    index: 276
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 277
                      version: {index: 278}
                      code:
                        pattern: {type: Code, value: '1078911000000106'}
                        index: 279
                      display:
                        pattern: {type: String, value: Individual requirements}
                        index: 280
                      userSelected: {index: 281}
                    required: [display, system, code]
                  text: {index: 282}
                required: [coding]
              text: {index: 283}
              mode: {index: 284}
              orderedBy:
                index: 285
                elements:
                  coding:
                    elements:
                      system: {index: 286}
                      version: {index: 287}
                      code: {index: 288}
                      display: {index: 289}
                      userSelected: {index: 290}
                    required: [display, system, code]
                  text: {index: 291}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 292
                elements:
                  reference: {index: 293}
                required: [reference]
              emptyReason: {index: 294}
              section: {index: 295}
            required: [text, title, code]
        planAndRequestedActionsSection:
          match:
            code:
              coding: {code: '887201000000105'}
          schema:
            mustSupport: true
            index: 492
            elements:
              title:
                pattern: {type: String, value: Plan and requested actions}
                mustSupport: false
                index: 493
              code:
                index: 494
                elements:
                  coding:
                    index: 495
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 496
                      version: {index: 497}
                      code:
                        pattern: {type: Code, value: '887201000000105'}
                        mustSupport: false
                        index: 498
                      display:
                        pattern: {type: String, value: Plan and requested actions}
                        mustSupport: false
                        index: 499
                      userSelected: {index: 500}
                    required: [display, system, code]
                  text: {index: 501}
                required: [coding]
              text:
                index: 502
                elements:
                  status: {mustSupport: false, index: 503}
                  div: {mustSupport: false, index: 504}
              mode: {index: 505}
              orderedBy:
                index: 506
                elements:
                  coding:
                    elements:
                      system: {index: 507}
                      version: {index: 508}
                      code: {index: 509}
                      display: {index: 510}
                      userSelected: {index: 511}
                    required: [display, system, code]
                  text: {index: 512}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 513
                elements:
                  reference: {index: 514}
                required: [reference]
              emptyReason: {index: 515}
              section: {index: 516}
            required: [text, title, code]
        proceduresSection:
          match:
            code:
              coding: {code: '887171000000109'}
          schema:
            mustSupport: true
            index: 517
            elements:
              title:
                pattern: {type: String, value: Procedures}
                mustSupport: false
                index: 518
              code:
                index: 519
                elements:
                  coding:
                    index: 520
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 521
                      version: {index: 522}
                      code:
                        pattern: {type: Code, value: '887171000000109'}
                        mustSupport: false
                        index: 523
                      display:
                        pattern: {type: String, value: Procedures}
                        mustSupport: false
                        index: 524
                      userSelected: {index: 525}
                    required: [display, system, code]
                  text: {index: 526}
                required: [coding]
              text:
                mustSupport: false
                index: 527
                elements:
                  status: {mustSupport: false, index: 528}
                  div: {mustSupport: false, index: 529}
              mode: {index: 530}
              orderedBy:
                mustSupport: false
                index: 531
                elements:
                  coding:
                    mustSupport: false
                    index: 532
                    elements:
                      system: {mustSupport: false, index: 533}
                      version: {index: 534}
                      code: {mustSupport: false, index: 535}
                      display: {mustSupport: false, index: 536}
                      userSelected: {index: 537}
                    required: [display, system, code]
                  text: {index: 538}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Procedure-List-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 539
                elements:
                  reference: {mustSupport: false, index: 540}
                  display: {mustSupport: false, index: 541}
                required: [reference]
              emptyReason: {index: 542}
              section: {index: 543}
            required: [text, title, code]
        diagnosesSection:
          match:
            code:
              coding: {code: '887161000000102'}
          schema:
            mustSupport: true
            index: 154
            elements:
              title:
                pattern: {type: String, value: Diagnoses}
                mustSupport: false
                index: 155
              code:
                index: 156
                elements:
                  coding:
                    index: 157
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 158
                      version: {index: 159}
                      code:
                        pattern: {type: Code, value: '887161000000102'}
                        mustSupport: false
                        index: 160
                      display:
                        pattern: {type: String, value: Diagnoses}
                        mustSupport: false
                        index: 161
                      userSelected: {index: 162}
                    required: [display, system, code]
                  text: {index: 163}
                required: [coding]
              text:
                index: 164
                elements:
                  status: {mustSupport: false, index: 165}
                  div: {mustSupport: false, index: 166}
              mode: {index: 167}
              orderedBy:
                index: 168
                elements:
                  coding:
                    elements:
                      system: {mustSupport: false, index: 169}
                      version: {index: 170}
                      code: {mustSupport: false, index: 171}
                      display: {mustSupport: false, index: 172}
                      userSelected: {index: 173}
                    required: [display, system, code]
                  text: {index: 174}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Condition-List-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 175
                elements:
                  reference: {index: 176}
                required: [reference]
              emptyReason: {index: 177}
              section: {index: 178}
            required: [text, title, code]
        familyHistorySection:
          match:
            code:
              coding: {code: '887111000000104'}
          schema:
            mustSupport: true
            index: 227
            elements:
              title:
                pattern: {type: String, value: Family history}
                mustSupport: false
                index: 228
              code:
                mustSupport: false
                index: 229
                elements:
                  coding:
                    mustSupport: false
                    index: 230
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 231
                      version: {index: 232}
                      code:
                        pattern: {type: Code, value: '887111000000104'}
                        mustSupport: false
                        index: 233
                      display:
                        pattern: {type: String, value: Family history}
                        mustSupport: false
                        index: 234
                      userSelected: {index: 235}
                    required: [display, system, code]
                  text: {index: 236}
                required: [coding]
              text: {mustSupport: false, index: 237}
              mode: {index: 238}
              orderedBy:
                index: 239
                elements:
                  coding:
                    elements:
                      system: {index: 240}
                      version: {index: 241}
                      code: {index: 242}
                      display: {index: 243}
                      userSelected: {index: 244}
                    required: [display, system, code]
                  text: {index: 245}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 246
                elements:
                  reference: {index: 247}
                required: [reference]
              emptyReason: {index: 248}
              section: {index: 249}
            required: [text, title, code]
        personCompletingRecordSection:
          match:
            code:
              coding: {code: '887231000000104'}
          schema:
            mustSupport: true
            index: 467
            elements:
              title:
                pattern: {type: String, value: Person completing record}
                mustSupport: false
                index: 468
              code:
                index: 469
                elements:
                  coding:
                    index: 470
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 471
                      version: {index: 472}
                      code:
                        pattern: {type: Code, value: '887231000000104'}
                        mustSupport: false
                        index: 473
                      display:
                        pattern: {type: String, value: Person completing record}
                        mustSupport: false
                        index: 474
                      userSelected: {index: 475}
                    required: [display, system, code]
                  text: {index: 476}
                required: [coding]
              text:
                index: 477
                elements:
                  status: {mustSupport: false, index: 478}
                  div: {mustSupport: false, index: 479}
              mode: {index: 480}
              orderedBy:
                index: 481
                elements:
                  coding:
                    elements:
                      system: {index: 482}
                      version: {index: 483}
                      code: {index: 484}
                      display: {index: 485}
                      userSelected: {index: 486}
                    required: [display, system, code]
                  text: {index: 487}
              entry:
                type: Reference
                refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 488
                elements:
                  reference: {index: 489}
                required: [reference]
              emptyReason: {index: 490}
              section: {index: 491}
            required: [text, title, code]
        assessmentScalesSection:
          match:
            code:
              coding: {code: '887141000000103'}
          schema:
            mustSupport: true
            index: 106
            elements:
              title:
                pattern: {type: String, value: Assessment scales}
                mustSupport: false
                index: 107
              code:
                index: 108
                elements:
                  coding:
                    index: 109
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 110
                      version: {index: 111}
                      code:
                        pattern: {type: Code, value: '887141000000103'}
                        mustSupport: false
                        index: 112
                      display:
                        pattern: {type: String, value: Assessment scales}
                        mustSupport: false
                        index: 113
                      userSelected: {index: 114}
                    required: [display, system, code]
                  text: {index: 115}
                required: [coding]
              text:
                index: 116
                elements:
                  status: {mustSupport: false, index: 117}
                  div: {mustSupport: false, index: 118}
              mode: {index: 119}
              orderedBy:
                index: 120
                elements:
                  coding:
                    elements:
                      system: {index: 121}
                      version: {index: 122}
                      code: {index: 123}
                      display: {index: 124}
                      userSelected: {index: 125}
                    required: [display, system, code]
                  text: {index: 126}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 127
                elements:
                  reference: {index: 128}
                required: [reference]
              emptyReason: {index: 129}
              section: {index: 130}
            required: [text, title, code]
        informationAndAdviceGivenSection:
          match:
            code:
              coding: {code: '1052951000000105'}
          schema:
            mustSupport: true
            index: 296
            elements:
              title:
                pattern: {type: String, value: Information and advice given}
                mustSupport: false
                index: 297
              code:
                index: 298
                elements:
                  coding:
                    index: 299
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 300
                      version: {index: 301}
                      code:
                        pattern: {type: Code, value: '1052951000000105'}
                        mustSupport: false
                        index: 302
                      display:
                        pattern: {type: String, value: Information and advice given}
                        mustSupport: false
                        index: 303
                      userSelected: {index: 304}
                    required: [display, system, code]
                  text: {index: 305}
                required: [coding]
              text:
                index: 306
                elements:
                  status: {mustSupport: false, index: 307}
                  div: {mustSupport: false, index: 308}
              mode: {index: 309}
              orderedBy:
                index: 310
                elements:
                  coding:
                    elements:
                      system: {index: 311}
                      version: {index: 312}
                      code: {index: 313}
                      display: {index: 314}
                      userSelected: {index: 315}
                    required: [display, system, code]
                  text: {index: 316}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 317
                elements:
                  reference: {index: 318}
                required: [reference]
              emptyReason: {index: 319}
              section: {index: 320}
            required: [text, title, code]
        admissionDetailsSection:
          match:
            code:
              coding: {code: '886781000000108'}
          schema:
            mustSupport: true
            index: 56
            elements:
              title:
                pattern: {type: String, value: Admission details}
                mustSupport: false
                index: 57
              code:
                index: 58
                elements:
                  coding:
                    index: 59
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 60
                      version: {index: 61}
                      code:
                        pattern: {type: Code, value: '886781000000108'}
                        mustSupport: false
                        index: 62
                      display:
                        pattern: {type: String, value: Admission details}
                        mustSupport: false
                        index: 63
                      userSelected: {index: 64}
                    required: [display, system, code]
                  text: {index: 65}
                required: [coding]
              text: {index: 66}
              mode: {index: 67}
              orderedBy:
                mustSupport: false
                index: 68
                elements:
                  coding:
                    mustSupport: false
                    index: 69
                    elements:
                      system: {mustSupport: false, index: 70}
                      version: {index: 71}
                      code: {mustSupport: false, index: 72}
                      display: {mustSupport: false, index: 73}
                      userSelected: {index: 74}
                    required: [display, system, code]
                  text: {index: 75}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Encounter-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 76
                elements:
                  reference: {index: 77}
                required: [reference]
              emptyReason: {index: 78}
              section: {index: 79}
            required: [entry, text, title, code]
        legalInformationSection:
          match:
            code:
              coding: {code: '886961000000102'}
          schema:
            mustSupport: true
            index: 346
            elements:
              title:
                pattern: {type: String, value: Legal information}
                mustSupport: false
                index: 347
              code:
                index: 348
                elements:
                  coding:
                    index: 349
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 350
                      version: {index: 351}
                      code:
                        pattern: {type: Code, value: '886961000000102'}
                        mustSupport: false
                        index: 352
                      display:
                        pattern: {type: String, value: Legal information}
                        mustSupport: false
                        index: 353
                      userSelected: {index: 354}
                    required: [display, system, code]
                  text: {index: 355}
                required: [coding]
              text: {index: 356}
              mode: {index: 357}
              orderedBy:
                index: 358
                elements:
                  coding:
                    elements:
                      system: {index: 359}
                      version: {index: 360}
                      code: {index: 361}
                      display: {index: 362}
                      userSelected: {index: 363}
                    required: [display, system, code]
                  text: {index: 364}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 365
                elements:
                  reference: {index: 366}
                required: [reference]
              emptyReason: {index: 367}
              section: {index: 368}
            required: [text, title, code]
        patientAndCarerConcernsExpectationsAndWishesSection:
          match:
            code:
              coding: {code: '1052941000000107'}
          schema:
            mustSupport: true
            index: 421
            elements:
              title:
                pattern: {type: String, value: 'Patient and carer concerns, expectations and wishes'}
                mustSupport: false
                index: 422
              code:
                index: 423
                elements:
                  coding:
                    index: 424
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 425
                      version: {index: 426}
                      code:
                        pattern: {type: Code, value: '1052941000000107'}
                        mustSupport: false
                        index: 427
                      display:
                        pattern: {type: String, value: 'Patient and carer concerns, expectations and wishes'}
                        mustSupport: false
                        index: 428
                      userSelected: {index: 429}
                    required: [display, system, code]
                  text: {index: 430}
                required: [coding]
              text: {index: 431}
              mode: {index: 432}
              orderedBy:
                index: 433
                elements:
                  coding:
                    elements:
                      system: {index: 434}
                      version: {index: 435}
                      code: {index: 436}
                      display: {index: 437}
                      userSelected: {index: 438}
                    required: [display, system, code]
                  text: {index: 439}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 440
                elements:
                  reference: {index: 441}
                required: [reference]
              emptyReason: {index: 442}
              section: {index: 443}
            required: [text, title, code]
        safetyAlertsSection:
          match:
            code:
              coding: {code: '886931000000107'}
          schema:
            mustSupport: true
            index: 569
            elements:
              title:
                pattern: {type: String, value: Safety alerts}
                mustSupport: false
                index: 570
              code:
                index: 571
                elements:
                  coding:
                    index: 572
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 573
                      version: {index: 574}
                      code:
                        pattern: {type: Code, value: '886931000000107'}
                        mustSupport: false
                        index: 575
                      display:
                        pattern: {type: String, value: Safety alerts}
                        mustSupport: false
                        index: 576
                      userSelected: {index: 577}
                    required: [display, system, code]
                  text: {index: 578}
                required: [coding]
              text:
                mustSupport: false
                index: 579
                elements:
                  status: {mustSupport: false, index: 580}
                  div: {mustSupport: false, index: 581}
              mode: {index: 582}
              orderedBy:
                index: 583
                elements:
                  coding:
                    elements:
                      system: {index: 584}
                      version: {index: 585}
                      code: {index: 586}
                      display: {index: 587}
                      userSelected: {index: 588}
                    required: [display, system, code]
                  text: {index: 589}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 590
                elements:
                  reference: {index: 591}
                required: [reference]
              emptyReason: {index: 592}
              section: {index: 593}
            required: [text, title, code]
        gpPracticeSection:
          match:
            code:
              coding: {code: '886711000000101'}
          schema:
            mustSupport: true
            index: 250
            elements:
              title:
                pattern: {type: String, value: GP practice}
                index: 251
              code:
                index: 252
                elements:
                  coding:
                    index: 253
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 254
                      version: {index: 255}
                      code:
                        pattern: {type: Code, value: '886711000000101'}
                        index: 256
                      display:
                        pattern: {type: String, value: GP practice}
                        index: 257
                      userSelected: {index: 258}
                    required: [display, system, code]
                  text: {index: 259}
                required: [coding]
              text: {index: 260}
              mode: {index: 261}
              orderedBy:
                index: 262
                elements:
                  coding:
                    elements:
                      system: {index: 263}
                      version: {index: 264}
                      code: {index: 265}
                      display: {index: 266}
                      userSelected: {index: 267}
                    required: [display, system, code]
                  text: {index: 268}
              entry:
                type: Reference
                refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 269
                elements:
                  reference: {index: 270}
                required: [reference]
              emptyReason: {index: 271}
              section: {index: 272}
            required: [entry, text, title, code]
        medicationsAndMedicalDevicesSection:
          match:
            code:
              coding: {code: '933361000000108'}
          schema:
            mustSupport: true
            index: 369
            elements:
              title:
                pattern: {type: String, value: Medications and medical devices}
                mustSupport: false
                index: 370
              code:
                index: 371
                elements:
                  coding:
                    index: 372
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 373
                      version: {index: 374}
                      code:
                        pattern: {type: Code, value: '933361000000108'}
                        mustSupport: false
                        index: 375
                      display:
                        pattern: {type: String, value: Medications and medical devices}
                        mustSupport: false
                        index: 376
                      userSelected: {index: 377}
                    required: [display, system, code]
                  text: {index: 378}
                required: [coding]
              text:
                index: 379
                elements:
                  status: {mustSupport: false, index: 380}
                  div: {mustSupport: false, index: 381}
              mode: {index: 382}
              orderedBy:
                mustSupport: false
                index: 383
                elements:
                  coding:
                    mustSupport: false
                    index: 384
                    elements:
                      system: {mustSupport: false, index: 385}
                      version: {index: 386}
                      code: {mustSupport: false, index: 387}
                      display: {mustSupport: false, index: 388}
                      userSelected: {index: 389}
                    required: [display, system, code]
                  text: {index: 390}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Medication-List-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 391
                elements:
                  reference: {mustSupport: false, index: 392}
                  display: {mustSupport: false, index: 393}
                required: [reference]
              emptyReason: {index: 394}
              section: {index: 395}
            required: [text, title, code]
        socialContextSection:
          match:
            code:
              coding: {code: '887051000000101'}
          schema:
            mustSupport: true
            index: 594
            elements:
              title:
                pattern: {type: String, value: Social context}
                mustSupport: false
                index: 595
              code:
                index: 596
                elements:
                  coding:
                    index: 597
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 598
                      version: {index: 599}
                      code:
                        pattern: {type: Code, value: '887051000000101'}
                        mustSupport: false
                        index: 600
                      display:
                        pattern: {type: String, value: Social context}
                        mustSupport: false
                        index: 601
                      userSelected: {index: 602}
                    required: [display, system, code]
                  text: {index: 603}
                required: [coding]
              text:
                index: 604
                elements:
                  status: {mustSupport: false, index: 605}
                  div: {mustSupport: false, index: 606}
              mode: {index: 607}
              orderedBy:
                index: 608
                elements:
                  coding:
                    elements:
                      system: {index: 609}
                      version: {index: 610}
                      code: {index: 611}
                      display: {index: 612}
                      userSelected: {index: 613}
                    required: [display, system, code]
                  text: {index: 614}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 615
                elements:
                  reference: {index: 616}
                required: [reference]
              emptyReason: {index: 617}
              section: {index: 618}
            required: [text, title, code]
        investigationResultsSection:
          match:
            code:
              coding: {code: '1082101000000102'}
          schema:
            mustSupport: true
            index: 321
            elements:
              title:
                pattern: {type: String, value: Investigation results}
                mustSupport: false
                index: 322
              code:
                index: 323
                elements:
                  coding:
                    index: 324
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 325
                      version: {index: 326}
                      code:
                        pattern: {type: Code, value: '1082101000000102'}
                        mustSupport: false
                        index: 327
                      display:
                        pattern: {type: String, value: Investigation results}
                        mustSupport: false
                        index: 328
                      userSelected: {index: 329}
                    required: [display, system, code]
                  text: {index: 330}
                required: [coding]
              text:
                index: 331
                elements:
                  status: {mustSupport: false, index: 332}
                  div: {mustSupport: false, index: 333}
              mode: {index: 334}
              orderedBy:
                index: 335
                elements:
                  coding:
                    elements:
                      system: {index: 336}
                      version: {index: 337}
                      code: {index: 338}
                      display: {index: 339}
                      userSelected: {index: 340}
                    required: [display, system, code]
                  text: {index: 341}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 342
                elements:
                  reference: {index: 343}
                required: [reference]
              emptyReason: {index: 344}
              section: {index: 345}
            required: [text, title, code]
  attester:
    mustSupport: false
    index: 33
    elements:
      mode: {mustSupport: false, index: 34}
      time: {mustSupport: false, index: 35}
      party:
        type: Reference
        refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1', 'https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1']
        index: 36
        elements:
          reference: {index: 37}
        required: [reference]
  type:
    mustSupport: true
    index: 14
    elements:
      coding:
        elements:
          system: {mustSupport: false, index: 15}
          version: {index: 16}
          code: {mustSupport: false, index: 17}
          display: {mustSupport: false, index: 18}
        required: [display, system, code]
  title: {mustSupport: true, index: 31}
  author:
    type: Reference
    mustSupport: true
    refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Device-1']
    index: 29
    elements:
      reference: {index: 30}
    required: [reference]
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        careSettingTypeExtension:
          match: {url: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-CareSettingType-1'}
          schema:
            type: Extension
            short: Optional Extensions Element
            mustSupport: true
            url: h
            index: 1
            elements:
              url:
                pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-CareSettingType-1'}
                index: 2
  event:
    mustSupport: false
    index: 46
    elements:
      code:
        mustSupport: false
        index: 47
        elements:
          coding:
            mustSupport: false
            index: 48
            elements:
              system: {mustSupport: false, index: 49}
              version: {index: 50}
              code: {mustSupport: false, index: 51}
              display: {mustSupport: false, index: 52}
            required: [display, system, code]
          text: {mustSupport: false, index: 53}
      detail:
        elements:
          reference: {index: 54}
        required: [reference]
  custodian:
    type: Reference
    mustSupport: true
    refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1']
    index: 38
    elements:
      reference: {index: 39}
    required: [reference]
  status: {mustSupport: true, index: 13}
  class:
    mustSupport: false
    index: 19
    elements:
      coding:
        elements:
          system: {index: 20}
          code: {index: 21}
          display: {index: 22}
        required: [display, system, code]
      text: {mustSupport: false, index: 23}
  identifier:
    mustSupport: true
    index: 3
    elements:
      use: {index: 4}
      type:
        index: 5
        elements:
          coding:
            elements:
              system: {index: 6}
              code: {index: 7}
              display: {index: 8}
            required: [display, system, code]
      system: {index: 9}
      value: {short: Contains a UUID, mustSupport: false, index: 10}
      period: {index: 11}
      assigner: {index: 12}
    required: [value, system]
  relatesTo:
    mustSupport: true
    index: 40
    elements:
      code:
        pattern: {type: Code, value: replaces}
        index: 41
      target:
        choices: [targetIdentifier, targetReference]
        index: 43
      targetIdentifier: {type: Identifier, choiceOf: target, index: 44}
      targetReference:
        type: Reference
        choiceOf: target
        refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-MH-Composition-1']
        index: 45
  subject:
    type: Reference
    mustSupport: true
    refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1']
    index: 24
    elements:
      reference: {mustSupport: false, index: 25}
    required: [reference]
  confidentiality: {mustSupport: false, index: 32}
package_version: 0.0.2-prerelease
extensions:
  careSettingTypeExtension:
    url: h
    type: Extension
    short: Optional Extensions Element
    mustSupport: true
    index: 1
    elements:
      url:
        pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-CareSettingType-1'}
        index: 2
class: profile
kind: resource
url: https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-MH-Composition-1
base: http://hl7.org/fhir/StructureDefinition/Composition
version: '1.31'
required: [section, identifier]