PackagesCanonicalsLogsProblems
    Packages
    uk.nhsdigital.stu3.test@0.0.2-prerelease
    https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-ECD-Composition-1
description: This constrained composition resource represents an Emergency Care Discharge Document Header Composition.
package_name: uk.nhsdigital.stu3.test
derivation: constraint
name: CareConnect-ITK-ECD-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:
        attendanceDetailsSection:
          match:
            code:
              coding: {code: '1077881000000105'}
          schema:
            mustSupport: true
            index: 82
            elements:
              title:
                pattern: {type: String, value: Attendance details}
                mustSupport: false
                index: 83
              code:
                index: 84
                elements:
                  coding:
                    index: 85
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 86
                      version: {index: 87}
                      code:
                        pattern: {type: Code, value: '1077881000000105'}
                        mustSupport: false
                        index: 88
                      display:
                        pattern: {type: String, value: Attendance details}
                        mustSupport: false
                        index: 89
                      userSelected: {index: 90}
                    required: [display, system, code]
                  text: {index: 91}
                required: [coding]
              text:
                index: 92
                elements:
                  status: {mustSupport: false, index: 93}
                  div: {mustSupport: false, index: 94}
              mode: {index: 95}
              orderedBy:
                index: 96
                elements:
                  coding:
                    elements:
                      system: {index: 97}
                      version: {index: 98}
                      code: {index: 99}
                      display: {index: 100}
                      userSelected: {index: 101}
                    required: [display, system, code]
                  text: {index: 102}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 103
                elements:
                  reference: {index: 104}
                required: [reference]
              emptyReason: {index: 105}
              section: {index: 106}
            required: [text, title, code]
        referrerDetailsSection:
          match:
            code:
              coding: {code: '1052891000000108'}
          schema:
            mustSupport: true
            index: 401
            elements:
              title:
                pattern: {type: String, value: Referrer details}
                mustSupport: false
                index: 402
              code:
                index: 403
                elements:
                  coding:
                    index: 404
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 405
                      version: {index: 406}
                      code:
                        pattern: {type: Code, value: '1052891000000108'}
                        mustSupport: false
                        index: 407
                      display:
                        pattern: {type: String, value: Referrer details}
                        mustSupport: false
                        index: 408
                      userSelected: {index: 409}
                    required: [display, system, code]
                  text: {index: 410}
                required: [coding]
              text:
                mustSupport: false
                index: 411
                elements:
                  status: {mustSupport: false, index: 412}
                  div: {mustSupport: false, index: 413}
              mode: {index: 414}
              orderedBy:
                index: 415
                elements:
                  coding:
                    elements:
                      system: {index: 416}
                      version: {index: 417}
                      code: {index: 418}
                      display: {index: 419}
                      userSelected: {index: 420}
                    required: [display, system, code]
                  text: {index: 421}
              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: 422
                elements:
                  reference: {index: 423}
                required: [reference]
              emptyReason: {index: 424}
              section: {index: 425}
            required: [text, title, code]
        patientDemographicsSection:
          match:
            code:
              coding: {code: '886731000000109'}
          schema:
            mustSupport: true
            _required: true
            index: 278
            elements:
              title:
                pattern: {type: String, value: Patient demographics}
                index: 279
              code:
                index: 280
                elements:
                  coding:
                    index: 281
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 282
                      version: {index: 283}
                      code:
                        pattern: {type: Code, value: '886731000000109'}
                        index: 284
                      display:
                        pattern: {type: String, value: Patient demographics}
                        index: 285
                      userSelected: {index: 286}
                    required: [display, system, code]
                  text: {index: 287}
                required: [coding]
              text: {index: 288}
              mode: {index: 289}
              orderedBy:
                index: 290
                elements:
                  coding:
                    elements:
                      system: {index: 291}
                      version: {index: 292}
                      code: {index: 293}
                      display: {index: 294}
                      userSelected: {index: 295}
                    required: [display, system, code]
                  text: {index: 296}
              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: 297
                elements:
                  reference: {index: 298}
                required: [reference]
              emptyReason: {index: 299}
              section: {index: 300}
            required: [entry, text, title, code]
        dischargeDetailsSection:
          match:
            code:
              coding: {code: '886811000000106'}
          schema:
            mustSupport: true
            index: 178
            elements:
              title:
                pattern: {type: String, value: Discharge details}
                mustSupport: false
                index: 179
              code:
                index: 180
                elements:
                  coding:
                    index: 181
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 182
                      version: {index: 183}
                      code:
                        pattern: {type: Code, value: '886811000000106'}
                        mustSupport: false
                        index: 184
                      display:
                        pattern: {type: String, value: Discharge details}
                        mustSupport: false
                        index: 185
                      userSelected: {index: 186}
                    required: [display, system, code]
                  text: {index: 187}
                required: [coding]
              text:
                mustSupport: false
                index: 188
                elements:
                  status: {mustSupport: false, index: 189}
                  div: {mustSupport: false, index: 190}
              mode: {index: 191}
              orderedBy:
                mustSupport: false
                index: 192
                elements:
                  coding:
                    elements:
                      system: {mustSupport: false, index: 193}
                      version: {index: 194}
                      code: {mustSupport: false, index: 195}
                      display: {mustSupport: false, index: 196}
                      userSelected: {index: 197}
                    required: [display, system, code]
                  text: {index: 198}
              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: 199
                elements:
                  reference: {index: 200}
                required: [reference]
              emptyReason: {index: 201}
              section: {index: 202}
            required: [entry, text, title, code]
        allergiesAndAdverseReactionsSection:
          match:
            code:
              coding: {code: '886921000000105'}
          schema:
            mustSupport: true
            _required: true
            index: 56
            elements:
              title:
                pattern: {type: String, value: Allergies and adverse reactions}
                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: '886921000000105'}
                        mustSupport: false
                        index: 62
                      display:
                        pattern: {type: String, value: Allergies and adverse reactions}
                        mustSupport: false
                        index: 63
                      userSelected: {index: 64}
                    required: [display, system, code]
                  text: {index: 65}
                required: [coding]
              text:
                index: 66
                elements:
                  status: {mustSupport: false, index: 67}
                  div: {mustSupport: false, index: 68}
              mode: {index: 69}
              orderedBy:
                index: 70
                elements:
                  coding:
                    elements:
                      system: {mustSupport: false, index: 71}
                      version: {index: 72}
                      code: {mustSupport: false, index: 73}
                      display: {mustSupport: false, index: 74}
                      userSelected: {index: 75}
                    required: [display, system, code]
                  text: {index: 76}
              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: 77
                elements:
                  reference: {index: 78}
                  display: {mustSupport: false, index: 79}
                required: [reference]
              emptyReason: {index: 80}
              section: {index: 81}
            required: [text, title, code]
        clinicalNarrativeSection:
          match:
            code:
              coding: {code: '1077901000000108'}
          schema:
            mustSupport: true
            index: 107
            elements:
              title:
                pattern: {type: String, value: Clinical narrative}
                mustSupport: false
                index: 108
              code:
                index: 109
                elements:
                  coding:
                    index: 110
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 111
                      version: {index: 112}
                      code:
                        pattern: {type: Code, value: '1077901000000108'}
                        mustSupport: false
                        index: 113
                      display:
                        pattern: {type: String, value: Clinical narrative}
                        mustSupport: false
                        index: 114
                      userSelected: {index: 115}
                    required: [display, system, code]
                  text: {index: 116}
                required: [coding]
              text: {index: 117}
              mode: {index: 118}
              orderedBy:
                index: 119
                elements:
                  coding:
                    elements:
                      system: {index: 120}
                      version: {index: 121}
                      code: {index: 122}
                      display: {index: 123}
                      userSelected: {index: 124}
                    required: [display, system, code]
                  text: {index: 125}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 126
                elements:
                  reference: {index: 127}
                required: [reference]
              emptyReason: {index: 128}
              section: {index: 129}
            required: [text, title, code]
        presentingComplaintsOrIssuesSection:
          match:
            code:
              coding: {code: '886891000000102'}
          schema:
            mustSupport: true
            index: 351
            elements:
              title:
                pattern: {type: String, value: Presenting complaints or issues}
                mustSupport: false
                index: 352
              code:
                index: 353
                elements:
                  coding:
                    index: 354
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 355
                      version: {index: 356}
                      code:
                        pattern: {type: Code, value: '886891000000102'}
                        mustSupport: false
                        index: 357
                      display:
                        pattern: {type: String, value: Presenting complaints or issues}
                        mustSupport: false
                        index: 358
                      userSelected: {index: 359}
                    required: [display, system, code]
                  text: {index: 360}
                required: [coding]
              text: {index: 361}
              mode: {index: 362}
              orderedBy:
                index: 363
                elements:
                  coding:
                    elements:
                      system: {index: 364}
                      version: {index: 365}
                      code: {index: 366}
                      display: {index: 367}
                      userSelected: {index: 368}
                    required: [display, system, code]
                  text: {index: 369}
              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: 370
                elements:
                  reference: {index: 371}
                required: [reference]
              emptyReason: {index: 372}
              section: {index: 373}
            required: [text, title, code]
        planAndRequestedActionsSection:
          match:
            code:
              coding: {code: '887201000000105'}
          schema:
            mustSupport: true
            index: 326
            elements:
              title:
                pattern: {type: String, value: Plan and requested actions}
                mustSupport: false
                index: 327
              code:
                index: 328
                elements:
                  coding:
                    index: 329
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 330
                      version: {index: 331}
                      code:
                        pattern: {type: Code, value: '887201000000105'}
                        mustSupport: false
                        index: 332
                      display:
                        pattern: {type: String, value: Plan and requested actions}
                        mustSupport: false
                        index: 333
                      userSelected: {index: 334}
                    required: [display, system, code]
                  text: {index: 335}
                required: [coding]
              text:
                index: 336
                elements:
                  status: {mustSupport: false, index: 337}
                  div: {mustSupport: false, index: 338}
              mode: {index: 339}
              orderedBy:
                index: 340
                elements:
                  coding:
                    elements:
                      system: {index: 341}
                      version: {index: 342}
                      code: {index: 343}
                      display: {index: 344}
                      userSelected: {index: 345}
                    required: [display, system, code]
                  text: {index: 346}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 347
                elements:
                  reference: {index: 348}
                required: [reference]
              emptyReason: {index: 349}
              section: {index: 350}
            required: [text, title, code]
        proceduresSection:
          match:
            code:
              coding: {code: '887171000000109'}
          schema:
            mustSupport: true
            index: 374
            elements:
              title:
                pattern: {type: String, value: Procedures}
                mustSupport: false
                index: 375
              code:
                index: 376
                elements:
                  coding:
                    index: 377
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 378
                      version: {index: 379}
                      code:
                        pattern: {type: Code, value: '887171000000109'}
                        mustSupport: false
                        index: 380
                      display:
                        pattern: {type: String, value: Procedures}
                        mustSupport: false
                        index: 381
                      userSelected: {index: 382}
                    required: [display, system, code]
                  text: {index: 383}
                required: [coding]
              text:
                mustSupport: false
                index: 384
                elements:
                  status: {mustSupport: false, index: 385}
                  div: {mustSupport: false, index: 386}
              mode: {index: 387}
              orderedBy:
                mustSupport: false
                index: 388
                elements:
                  coding:
                    mustSupport: false
                    index: 389
                    elements:
                      system: {mustSupport: false, index: 390}
                      version: {index: 391}
                      code: {mustSupport: false, index: 392}
                      display: {mustSupport: false, index: 393}
                      userSelected: {index: 394}
                    required: [display, system, code]
                  text: {index: 395}
              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: 396
                elements:
                  reference: {mustSupport: false, index: 397}
                  display: {mustSupport: false, index: 398}
                required: [reference]
              emptyReason: {index: 399}
              section: {index: 400}
            required: [text, title, code]
        diagnosesSection:
          match:
            code:
              coding: {code: '887161000000102'}
          schema:
            mustSupport: true
            index: 153
            elements:
              title:
                pattern: {type: String, value: Diagnoses}
                mustSupport: false
                index: 154
              code:
                index: 155
                elements:
                  coding:
                    index: 156
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 157
                      version: {index: 158}
                      code:
                        pattern: {type: Code, value: '887161000000102'}
                        mustSupport: false
                        index: 159
                      display:
                        pattern: {type: String, value: Diagnoses}
                        mustSupport: false
                        index: 160
                      userSelected: {index: 161}
                    required: [display, system, code]
                  text: {index: 162}
                required: [coding]
              text:
                index: 163
                elements:
                  status: {mustSupport: false, index: 164}
                  div: {mustSupport: false, index: 165}
              mode: {index: 166}
              orderedBy:
                index: 167
                elements:
                  coding:
                    elements:
                      system: {mustSupport: false, index: 168}
                      version: {index: 169}
                      code: {mustSupport: false, index: 170}
                      display: {mustSupport: false, index: 171}
                      userSelected: {index: 172}
                    required: [display, system, code]
                  text: {index: 173}
              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: 174
                elements:
                  reference: {index: 175}
                required: [reference]
              emptyReason: {index: 176}
              section: {index: 177}
            required: [text, title, code]
        seniorReviewingClinicianSection:
          match:
            code:
              coding: {code: '1078901000000109'}
          schema:
            mustSupport: true
            index: 474
            elements:
              title:
                pattern: {type: String, value: Senior reviewing clinician}
                mustSupport: false
                index: 475
              code:
                index: 476
                elements:
                  coding:
                    index: 477
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 478
                      version: {index: 479}
                      code:
                        pattern: {type: Code, value: '1078901000000109'}
                        mustSupport: false
                        index: 480
                      display:
                        short: Senior reviewing clinician
                        pattern: {type: String, value: Senior reviewing clinician}
                        mustSupport: false
                        index: 481
                      userSelected: {index: 482}
                    required: [display, system, code]
                  text: {index: 483}
                required: [coding]
              text:
                index: 484
                elements:
                  status: {mustSupport: false, index: 485}
                  div: {mustSupport: false, index: 486}
              mode: {index: 487}
              orderedBy:
                index: 488
                elements:
                  coding:
                    elements:
                      system: {index: 489}
                      version: {index: 490}
                      code: {index: 491}
                      display: {index: 492}
                      userSelected: {index: 493}
                    required: [display, system, code]
                  text: {index: 494}
              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: 495
                elements:
                  reference: {index: 496}
                required: [reference]
              emptyReason: {index: 497}
              section: {index: 498}
            required: [text, title, code]
        personCompletingRecordSection:
          match:
            code:
              coding: {code: '887231000000104'}
          schema:
            mustSupport: true
            index: 301
            elements:
              title:
                pattern: {type: String, value: Person completing record}
                mustSupport: false
                index: 302
              code:
                index: 303
                elements:
                  coding:
                    index: 304
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 305
                      version: {index: 306}
                      code:
                        pattern: {type: Code, value: '887231000000104'}
                        mustSupport: false
                        index: 307
                      display:
                        pattern: {type: String, value: Person completing record}
                        mustSupport: false
                        index: 308
                      userSelected: {index: 309}
                    required: [display, system, code]
                  text: {index: 310}
                required: [coding]
              text:
                index: 311
                elements:
                  status: {mustSupport: false, index: 312}
                  div: {mustSupport: false, index: 313}
              mode: {index: 314}
              orderedBy:
                index: 315
                elements:
                  coding:
                    elements:
                      system: {index: 316}
                      version: {index: 317}
                      code: {index: 318}
                      display: {index: 319}
                      userSelected: {index: 320}
                    required: [display, system, code]
                  text: {index: 321}
              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: 322
                elements:
                  reference: {index: 323}
                required: [reference]
              emptyReason: {index: 324}
              section: {index: 325}
            required: [text, title, code]
        informationAndAdviceGivenSection:
          match:
            code:
              coding: {code: '1052951000000105'}
          schema:
            mustSupport: true
            index: 226
            elements:
              title:
                pattern: {type: String, value: Information and advice given}
                mustSupport: false
                index: 227
              code:
                index: 228
                elements:
                  coding:
                    index: 229
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 230
                      version: {index: 231}
                      code:
                        pattern: {type: Code, value: '1052951000000105'}
                        mustSupport: false
                        index: 232
                      display:
                        pattern: {type: String, value: Information and advice given}
                        mustSupport: false
                        index: 233
                      userSelected: {index: 234}
                    required: [display, system, code]
                  text: {index: 235}
                required: [coding]
              text:
                index: 236
                elements:
                  status: {mustSupport: false, index: 237}
                  div: {mustSupport: false, index: 238}
              mode: {index: 239}
              orderedBy:
                index: 240
                elements:
                  coding:
                    elements:
                      system: {index: 241}
                      version: {index: 242}
                      code: {index: 243}
                      display: {index: 244}
                      userSelected: {index: 245}
                    required: [display, system, code]
                  text: {index: 246}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 247
                elements:
                  reference: {index: 248}
                required: [reference]
              emptyReason: {index: 249}
              section: {index: 250}
            required: [text, title, code]
        safeguardingSection:
          match:
            code:
              coding: {code: '1077911000000105'}
          schema:
            mustSupport: true
            index: 426
            elements:
              title:
                pattern: {type: String, value: Safeguarding}
                index: 427
              code:
                index: 428
                elements:
                  coding:
                    index: 429
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 430
                      version: {index: 431}
                      code:
                        pattern: {type: Code, value: '1077911000000105'}
                        index: 432
                      display:
                        pattern: {type: String, value: Safeguarding}
                        index: 433
                      userSelected: {index: 434}
                    required: [display, system, code]
                  text: {index: 435}
                required: [coding]
              text: {index: 436}
              mode: {index: 437}
              orderedBy:
                index: 438
                elements:
                  coding:
                    elements:
                      system: {index: 439}
                      version: {index: 440}
                      code: {index: 441}
                      display: {index: 442}
                      userSelected: {index: 443}
                    required: [display, system, code]
                  text: {index: 444}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 445
                elements:
                  reference: {index: 446}
                required: [reference]
              emptyReason: {index: 447}
              section: {index: 448}
            required: [text, title, code]
        safetyAlertsSection:
          match:
            code:
              coding: {code: '886931000000107'}
          schema:
            mustSupport: true
            index: 449
            elements:
              title:
                pattern: {type: String, value: Safety alerts}
                mustSupport: false
                index: 450
              code:
                index: 451
                elements:
                  coding:
                    index: 452
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 453
                      version: {index: 454}
                      code:
                        pattern: {type: Code, value: '886931000000107'}
                        mustSupport: false
                        index: 455
                      display:
                        pattern: {type: String, value: Safety alerts}
                        mustSupport: false
                        index: 456
                      userSelected: {index: 457}
                    required: [display, system, code]
                  text: {index: 458}
                required: [coding]
              text:
                mustSupport: false
                index: 459
                elements:
                  status: {mustSupport: false, index: 460}
                  div: {mustSupport: false, index: 461}
              mode: {index: 462}
              orderedBy:
                index: 463
                elements:
                  coding:
                    elements:
                      system: {index: 464}
                      version: {index: 465}
                      code: {index: 466}
                      display: {index: 467}
                      userSelected: {index: 468}
                    required: [display, system, code]
                  text: {index: 469}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 470
                elements:
                  reference: {index: 471}
                required: [reference]
              emptyReason: {index: 472}
              section: {index: 473}
            required: [text, title, code]
        contactForFurtherInformationSection:
          match:
            code:
              coding: {code: '1077931000000102'}
          schema:
            mustSupport: true
            index: 130
            elements:
              title:
                pattern: {type: String, value: Contact for further information}
                mustSupport: false
                index: 131
              code:
                index: 132
                elements:
                  coding:
                    index: 133
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 134
                      version: {index: 135}
                      code:
                        pattern: {type: Code, value: '1077931000000102'}
                        mustSupport: false
                        index: 136
                      display:
                        pattern: {type: String, value: Contact for further information}
                        mustSupport: false
                        index: 137
                      userSelected: {index: 138}
                    required: [display, system, code]
                  text: {index: 139}
                required: [coding]
              text: {index: 140}
              mode: {index: 141}
              orderedBy:
                index: 142
                elements:
                  coding:
                    elements:
                      system: {index: 143}
                      version: {index: 144}
                      code: {index: 145}
                      display: {index: 146}
                      userSelected: {index: 147}
                    required: [display, system, code]
                  text: {index: 148}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 149
                elements:
                  reference: {index: 150}
                required: [reference]
              emptyReason: {index: 151}
              section: {index: 152}
            required: [text, title, code]
        gpPracticeSection:
          match:
            code:
              coding: {code: '886711000000101'}
          schema:
            mustSupport: true
            index: 203
            elements:
              title:
                pattern: {type: String, value: GP practice}
                index: 204
              code:
                index: 205
                elements:
                  coding:
                    index: 206
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 207
                      version: {index: 208}
                      code:
                        pattern: {type: Code, value: '886711000000101'}
                        index: 209
                      display:
                        pattern: {type: String, value: GP practice}
                        index: 210
                      userSelected: {index: 211}
                    required: [display, system, code]
                  text: {index: 212}
                required: [coding]
              text: {index: 213}
              mode: {index: 214}
              orderedBy:
                index: 215
                elements:
                  coding:
                    elements:
                      system: {index: 216}
                      version: {index: 217}
                      code: {index: 218}
                      display: {index: 219}
                      userSelected: {index: 220}
                    required: [display, system, code]
                  text: {index: 221}
              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: 222
                elements:
                  reference: {index: 223}
                required: [reference]
              emptyReason: {index: 224}
              section: {index: 225}
            required: [entry, text, title, code]
        medicationsAndMedicalDevicesSection:
          match:
            code:
              coding: {code: '933361000000108'}
          schema:
            mustSupport: true
            index: 251
            elements:
              title:
                pattern: {type: String, value: Medications and medical devices}
                mustSupport: false
                index: 252
              code:
                index: 253
                elements:
                  coding:
                    index: 254
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 255
                      version: {index: 256}
                      code:
                        pattern: {type: Code, value: '933361000000108'}
                        mustSupport: false
                        index: 257
                      display:
                        pattern: {type: String, value: Medications and medical devices}
                        mustSupport: false
                        index: 258
                      userSelected: {index: 259}
                    required: [display, system, code]
                  text: {index: 260}
                required: [coding]
              text:
                index: 261
                elements:
                  status: {mustSupport: false, index: 262}
                  div: {mustSupport: false, index: 263}
              mode: {index: 264}
              orderedBy:
                mustSupport: false
                index: 265
                elements:
                  coding:
                    mustSupport: false
                    index: 266
                    elements:
                      system: {mustSupport: false, index: 267}
                      version: {index: 268}
                      code: {mustSupport: false, index: 269}
                      display: {mustSupport: false, index: 270}
                      userSelected: {index: 271}
                    required: [display, system, code]
                  text: {index: 272}
              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: 273
                elements:
                  reference: {mustSupport: false, index: 274}
                  display: {mustSupport: false, index: 275}
                required: [reference]
              emptyReason: {index: 276}
              section: {index: 277}
            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-ECD-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-ECD-Composition-1
base: http://hl7.org/fhir/StructureDefinition/Composition
version: 1.3.1
required: [section, identifier]