PackagesCanonicalsLogsProblems
    Packages
    uk.nhsdigital.stu3.test@0.0.2-prerelease
    https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-EDIS-Composition-1
description: This constrained Composition resource represents an eDischarge Document Header Composition
package_name: uk.nhsdigital.stu3.test
derivation: constraint
name: CareConnect-ITK-EDIS-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: 522
            elements:
              title:
                pattern: {type: String, value: Referrer details}
                mustSupport: false
                index: 523
              code:
                index: 524
                elements:
                  coding:
                    index: 525
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 526
                      version: {index: 527}
                      code:
                        pattern: {type: Code, value: '1052891000000108'}
                        mustSupport: false
                        index: 528
                      display:
                        pattern: {type: String, value: Referrer details}
                        mustSupport: false
                        index: 529
                      userSelected: {index: 530}
                    required: [display, system, code]
                  text: {index: 531}
                required: [coding]
              text:
                mustSupport: false
                index: 532
                elements:
                  status: {mustSupport: false, index: 533}
                  div: {mustSupport: false, index: 534}
              mode: {index: 535}
              orderedBy:
                index: 536
                elements:
                  coding:
                    elements:
                      system: {index: 537}
                      version: {index: 538}
                      code: {index: 539}
                      display: {index: 540}
                      userSelected: {index: 541}
                    required: [display, system, code]
                  text: {index: 542}
              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: 543
                elements:
                  reference: {index: 544}
                required: [reference]
              emptyReason: {index: 545}
              section: {index: 546}
            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
                short: A reference to data that supports this section.
                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: 422
            elements:
              title:
                pattern: {type: String, value: Patient demographics}
                index: 423
              code:
                index: 424
                elements:
                  coding:
                    index: 425
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 426
                      version: {index: 427}
                      code:
                        pattern: {type: Code, value: '886731000000109'}
                        index: 428
                      display:
                        pattern: {type: String, value: Patient demographics}
                        index: 429
                      userSelected: {index: 430}
                    required: [display, system, code]
                  text: {index: 431}
                required: [coding]
              text: {index: 432}
              mode: {index: 433}
              orderedBy:
                index: 434
                elements:
                  coding:
                    elements:
                      system: {index: 435}
                      version: {index: 436}
                      code: {index: 437}
                      display: {index: 438}
                      userSelected: {index: 439}
                    required: [display, system, code]
                  text: {index: 440}
              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: 441
                elements:
                  reference: {index: 442}
                required: [reference]
              emptyReason: {index: 443}
              section: {index: 444}
            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: 374
            elements:
              title:
                pattern: {type: String, value: Participation in research}
                mustSupport: false
                index: 375
              code:
                mustSupport: false
                index: 376
                elements:
                  coding:
                    mustSupport: false
                    index: 377
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 378
                      version: {index: 379}
                      code:
                        pattern: {type: Code, value: '886751000000102'}
                        mustSupport: false
                        index: 380
                      display:
                        pattern: {type: String, value: Participation in research}
                        mustSupport: false
                        index: 381
                      userSelected: {index: 382}
                    required: [display, system, code]
                  text: {index: 383}
                required: [coding]
              text:
                index: 384
                elements:
                  status: {mustSupport: false, index: 385}
                  div: {mustSupport: false, index: 386}
              mode: {index: 387}
              orderedBy:
                index: 388
                elements:
                  coding:
                    elements:
                      system: {index: 389}
                      version: {index: 390}
                      code: {index: 391}
                      display: {index: 392}
                      userSelected: {index: 393}
                    required: [display, system, code]
                  text: {index: 394}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 395
                elements:
                  reference: {index: 396}
                required: [reference]
              emptyReason: {index: 397}
              section: {index: 398}
            required: [text, title, code]
        individualRequirementsSection:
          match:
            code:
              coding: {code: '1078911000000106'}
          schema:
            mustSupport: true
            index: 250
            elements:
              title:
                pattern: {type: String, value: Individual requirements}
                mustSupport: false
                index: 251
              code:
                index: 252
                elements:
                  coding:
                    index: 253
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 254
                      version: {index: 255}
                      code:
                        pattern: {type: Code, value: '1078911000000106'}
                        mustSupport: false
                        index: 256
                      display:
                        pattern: {type: String, value: Individual requirements}
                        mustSupport: false
                        index: 257
                      userSelected: {index: 258}
                    required: [display, system, code]
                  text: {index: 259}
                required: [coding]
              text:
                mustSupport: false
                index: 260
                elements:
                  status: {mustSupport: false, index: 261}
              mode: {index: 262}
              orderedBy:
                index: 263
                elements:
                  coding:
                    elements:
                      system: {index: 264}
                      version: {index: 265}
                      code: {index: 266}
                      display: {index: 267}
                      userSelected: {index: 268}
                    required: [display, system, code]
                  text: {index: 269}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 270
                elements:
                  reference: {index: 271}
                required: [reference]
              emptyReason: {index: 272}
              section: {index: 273}
            required: [text, title, code]
        planAndRequestedActionsSection:
          match:
            code:
              coding: {code: '887201000000105'}
          schema:
            mustSupport: true
            index: 470
            elements:
              title:
                pattern: {type: String, value: Plan and requested actions}
                mustSupport: false
                index: 471
              code:
                index: 472
                elements:
                  coding:
                    index: 473
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 474
                      version: {index: 475}
                      code:
                        pattern: {type: Code, value: '887201000000105'}
                        mustSupport: false
                        index: 476
                      display:
                        pattern: {type: String, value: Plan and requested actions}
                        mustSupport: false
                        index: 477
                      userSelected: {index: 478}
                    required: [display, system, code]
                  text: {index: 479}
                required: [coding]
              text:
                index: 480
                elements:
                  status: {mustSupport: false, index: 481}
                  div: {mustSupport: false, index: 482}
              mode: {index: 483}
              orderedBy:
                index: 484
                elements:
                  coding:
                    elements:
                      system: {index: 485}
                      version: {index: 486}
                      code: {index: 487}
                      display: {index: 488}
                      userSelected: {index: 489}
                    required: [display, system, code]
                  text: {index: 490}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 491
                elements:
                  reference: {index: 492}
                required: [reference]
              emptyReason: {index: 493}
              section: {index: 494}
            required: [text, title, code]
        proceduresSection:
          match:
            code:
              coding: {code: '887171000000109'}
          schema:
            mustSupport: true
            index: 495
            elements:
              title:
                pattern: {type: String, value: Procedures}
                mustSupport: false
                index: 496
              code:
                index: 497
                elements:
                  coding:
                    index: 498
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 499
                      version: {index: 500}
                      code:
                        pattern: {type: Code, value: '887171000000109'}
                        mustSupport: false
                        index: 501
                      display:
                        pattern: {type: String, value: Procedures}
                        mustSupport: false
                        index: 502
                      userSelected: {index: 503}
                    required: [display, system, code]
                  text: {index: 504}
                required: [coding]
              text:
                mustSupport: false
                index: 505
                elements:
                  status: {mustSupport: false, index: 506}
                  div: {mustSupport: false, index: 507}
              mode: {index: 508}
              orderedBy:
                mustSupport: false
                index: 509
                elements:
                  coding:
                    mustSupport: false
                    index: 510
                    elements:
                      system: {mustSupport: false, index: 511}
                      version: {index: 512}
                      code: {mustSupport: false, index: 513}
                      display: {mustSupport: false, index: 514}
                      userSelected: {index: 515}
                    required: [display, system, code]
                  text: {index: 516}
              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: 517
                elements:
                  reference: {mustSupport: false, index: 518}
                  display: {mustSupport: false, index: 519}
                required: [reference]
              emptyReason: {index: 520}
              section: {index: 521}
            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]
        personCompletingRecordSection:
          match:
            code:
              coding: {code: '887231000000104'}
          schema:
            mustSupport: true
            index: 445
            elements:
              title:
                pattern: {type: String, value: Person completing record}
                mustSupport: false
                index: 446
              code:
                index: 447
                elements:
                  coding:
                    index: 448
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 449
                      version: {index: 450}
                      code:
                        pattern: {type: Code, value: '887231000000104'}
                        mustSupport: false
                        index: 451
                      display:
                        pattern: {type: String, value: Person completing record}
                        mustSupport: false
                        index: 452
                      userSelected: {index: 453}
                    required: [display, system, code]
                  text: {index: 454}
                required: [coding]
              text:
                index: 455
                elements:
                  status: {mustSupport: false, index: 456}
                  div: {mustSupport: false, index: 457}
              mode: {index: 458}
              orderedBy:
                index: 459
                elements:
                  coding:
                    elements:
                      system: {index: 460}
                      version: {index: 461}
                      code: {index: 462}
                      display: {index: 463}
                      userSelected: {index: 464}
                    required: [display, system, code]
                  text: {index: 465}
              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: 466
                elements:
                  reference: {index: 467}
                required: [reference]
              emptyReason: {index: 468}
              section: {index: 469}
            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: 274
            elements:
              title:
                pattern: {type: String, value: Information and advice given}
                mustSupport: false
                index: 275
              code:
                index: 276
                elements:
                  coding:
                    index: 277
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 278
                      version: {index: 279}
                      code:
                        pattern: {type: Code, value: '1052951000000105'}
                        mustSupport: false
                        index: 280
                      display:
                        pattern: {type: String, value: Information and advice given}
                        mustSupport: false
                        index: 281
                      userSelected: {index: 282}
                    required: [display, system, code]
                  text: {index: 283}
                required: [coding]
              text:
                index: 284
                elements:
                  status: {mustSupport: false, index: 285}
                  div: {mustSupport: false, index: 286}
              mode: {index: 287}
              orderedBy:
                index: 288
                elements:
                  coding:
                    elements:
                      system: {index: 289}
                      version: {index: 290}
                      code: {index: 291}
                      display: {index: 292}
                      userSelected: {index: 293}
                    required: [display, system, code]
                  text: {index: 294}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 295
                elements:
                  reference: {index: 296}
                required: [reference]
              emptyReason: {index: 297}
              section: {index: 298}
            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: 324
            elements:
              title:
                pattern: {type: String, value: Legal information}
                mustSupport: false
                index: 325
              code:
                index: 326
                elements:
                  coding:
                    index: 327
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 328
                      version: {index: 329}
                      code:
                        pattern: {type: Code, value: '886961000000102'}
                        mustSupport: false
                        index: 330
                      display:
                        pattern: {type: String, value: Legal information}
                        mustSupport: false
                        index: 331
                      userSelected: {index: 332}
                    required: [display, system, code]
                  text: {index: 333}
                required: [coding]
              text: {index: 334}
              mode: {index: 335}
              orderedBy:
                index: 336
                elements:
                  coding:
                    elements:
                      system: {index: 337}
                      version: {index: 338}
                      code: {index: 339}
                      display: {index: 340}
                      userSelected: {index: 341}
                    required: [display, system, code]
                  text: {index: 342}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 343
                elements:
                  reference: {index: 344}
                required: [reference]
              emptyReason: {index: 345}
              section: {index: 346}
            required: [text, title, code]
        patientAndCarerConcernsExpectationsAndWishesSection:
          match:
            code:
              coding: {code: '1052941000000107'}
          schema:
            mustSupport: true
            index: 399
            elements:
              title:
                pattern: {type: String, value: 'Patient and carer concerns, expectations and wishes'}
                mustSupport: false
                index: 400
              code:
                index: 401
                elements:
                  coding:
                    index: 402
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 403
                      version: {index: 404}
                      code:
                        pattern: {type: Code, value: '1052941000000107'}
                        mustSupport: false
                        index: 405
                      display:
                        pattern: {type: String, value: 'Patient and carer concerns, expectations and wishes'}
                        mustSupport: false
                        index: 406
                      userSelected: {index: 407}
                    required: [display, system, code]
                  text: {index: 408}
                required: [coding]
              text: {index: 409}
              mode: {index: 410}
              orderedBy:
                index: 411
                elements:
                  coding:
                    elements:
                      system: {index: 412}
                      version: {index: 413}
                      code: {index: 414}
                      display: {index: 415}
                      userSelected: {index: 416}
                    required: [display, system, code]
                  text: {index: 417}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 418
                elements:
                  reference: {index: 419}
                required: [reference]
              emptyReason: {index: 420}
              section: {index: 421}
            required: [text, title, code]
        safetyAlertsSection:
          match:
            code:
              coding: {code: '886931000000107'}
          schema:
            mustSupport: true
            index: 547
            elements:
              title:
                pattern: {type: String, value: Safety alerts}
                mustSupport: false
                index: 548
              code:
                index: 549
                elements:
                  coding:
                    index: 550
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 551
                      version: {index: 552}
                      code:
                        pattern: {type: Code, value: '886931000000107'}
                        mustSupport: false
                        index: 553
                      display:
                        pattern: {type: String, value: Safety alerts}
                        mustSupport: false
                        index: 554
                      userSelected: {index: 555}
                    required: [display, system, code]
                  text: {index: 556}
                required: [coding]
              text:
                mustSupport: false
                index: 557
                elements:
                  status: {mustSupport: false, index: 558}
                  div: {mustSupport: false, index: 559}
              mode: {index: 560}
              orderedBy:
                index: 561
                elements:
                  coding:
                    elements:
                      system: {index: 562}
                      version: {index: 563}
                      code: {index: 564}
                      display: {index: 565}
                      userSelected: {index: 566}
                    required: [display, system, code]
                  text: {index: 567}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 568
                elements:
                  reference: {index: 569}
                required: [reference]
              emptyReason: {index: 570}
              section: {index: 571}
            required: [text, title, code]
        gpPracticeSection:
          match:
            code:
              coding: {code: '886711000000101'}
          schema:
            mustSupport: true
            index: 227
            elements:
              title:
                pattern: {type: String, value: GP practice}
                index: 228
              code:
                index: 229
                elements:
                  coding:
                    index: 230
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 231
                      version: {index: 232}
                      code:
                        pattern: {type: Code, value: '886711000000101'}
                        index: 233
                      display:
                        pattern: {type: String, value: GP practice}
                        index: 234
                      userSelected: {index: 235}
                    required: [display, system, code]
                  text: {index: 236}
                required: [coding]
              text: {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.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1', '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: [entry, text, title, code]
        medicationsAndMedicalDevicesSection:
          match:
            code:
              coding: {code: '933361000000108'}
          schema:
            mustSupport: true
            index: 347
            elements:
              title:
                pattern: {type: String, value: Medications and medical devices}
                mustSupport: false
                index: 348
              code:
                index: 349
                elements:
                  coding:
                    index: 350
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 351
                      version: {index: 352}
                      code:
                        pattern: {type: Code, value: '933361000000108'}
                        mustSupport: false
                        index: 353
                      display:
                        pattern: {type: String, value: Medications and medical devices}
                        mustSupport: false
                        index: 354
                      userSelected: {index: 355}
                    required: [display, system, code]
                  text: {index: 356}
                required: [coding]
              text:
                index: 357
                elements:
                  status: {mustSupport: false, index: 358}
                  div: {mustSupport: false, index: 359}
              mode: {index: 360}
              orderedBy:
                mustSupport: false
                index: 361
                elements:
                  coding:
                    mustSupport: false
                    index: 362
                    elements:
                      system: {mustSupport: false, index: 363}
                      version: {index: 364}
                      code: {mustSupport: false, index: 365}
                      display: {mustSupport: false, index: 366}
                      userSelected: {index: 367}
                    required: [display, system, code]
                  text: {index: 368}
              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: 369
                elements:
                  reference: {mustSupport: false, index: 370}
                  display: {mustSupport: false, index: 371}
                required: [reference]
              emptyReason: {index: 372}
              section: {index: 373}
            required: [text, title, code]
        socialContextSection:
          match:
            code:
              coding: {code: '887051000000101'}
          schema:
            mustSupport: true
            index: 572
            elements:
              title:
                pattern: {type: String, value: Social context}
                mustSupport: false
                index: 573
              code:
                index: 574
                elements:
                  coding:
                    index: 575
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 576
                      version: {index: 577}
                      code:
                        pattern: {type: Code, value: '887051000000101'}
                        mustSupport: false
                        index: 578
                      display:
                        pattern: {type: String, value: Social context}
                        mustSupport: false
                        index: 579
                      userSelected: {index: 580}
                    required: [display, system, code]
                  text: {index: 581}
                required: [coding]
              text:
                index: 582
                elements:
                  status: {mustSupport: false, index: 583}
                  div: {mustSupport: false, index: 584}
              mode: {index: 585}
              orderedBy:
                index: 586
                elements:
                  coding:
                    elements:
                      system: {index: 587}
                      version: {index: 588}
                      code: {index: 589}
                      display: {index: 590}
                      userSelected: {index: 591}
                    required: [display, system, code]
                  text: {index: 592}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 593
                elements:
                  reference: {index: 594}
                required: [reference]
              emptyReason: {index: 595}
              section: {index: 596}
            required: [text, title, code]
        investigationResultsSection:
          match:
            code:
              coding: {code: '1082101000000102'}
          schema:
            mustSupport: true
            index: 299
            elements:
              title:
                pattern: {type: String, value: Investigation results}
                mustSupport: false
                index: 300
              code:
                index: 301
                elements:
                  coding:
                    index: 302
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 303
                      version: {index: 304}
                      code:
                        pattern: {type: Code, value: '1082101000000102'}
                        mustSupport: false
                        index: 305
                      display:
                        pattern: {type: String, value: Investigation results}
                        mustSupport: false
                        index: 306
                      userSelected: {index: 307}
                    required: [display, system, code]
                  text: {index: 308}
                required: [coding]
              text:
                index: 309
                elements:
                  status: {mustSupport: false, index: 310}
                  div: {mustSupport: false, index: 311}
              mode: {index: 312}
              orderedBy:
                index: 313
                elements:
                  coding:
                    elements:
                      system: {index: 314}
                      version: {index: 315}
                      code: {index: 316}
                      display: {index: 317}
                      userSelected: {index: 318}
                    required: [display, system, code]
                  text: {index: 319}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 320
                elements:
                  reference: {index: 321}
                required: [reference]
              emptyReason: {index: 322}
              section: {index: 323}
            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:
    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-EDIS-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-EDIS-Composition-1
base: http://hl7.org/fhir/StructureDefinition/Composition
version: 1.3.1
required: [section, identifier]