PackagesCanonicalsLogsProblems
    Packages
    uk.nhsdigital.stu3.test@0.0.2-prerelease
    https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-OPL-Composition-1
description: This constrained Composition resource represents an Outpatient Letter Document Header Composition
package_name: uk.nhsdigital.stu3.test
derivation: constraint
name: CareConnect-ITK-OPL-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: 107
            elements:
              title:
                pattern: {type: String, value: Attendance details}
                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: '1077881000000105'}
                        mustSupport: false
                        index: 113
                      display:
                        pattern: {type: String, value: Attendance details}
                        mustSupport: false
                        index: 114
                      userSelected: {index: 115}
                    required: [display, system, code]
                  text: {index: 116}
                required: [coding]
              text: {index: 117}
              mode: {index: 118}
              orderedBy:
                mustSupport: false
                index: 119
                elements:
                  coding:
                    mustSupport: false
                    index: 120
                    elements:
                      system: {mustSupport: false, index: 121}
                      version: {index: 122}
                      code: {mustSupport: false, index: 123}
                      display: {mustSupport: false, index: 124}
                      userSelected: {index: 125}
                    required: [display, system, code]
                  text: {index: 126}
              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: 127
                elements:
                  reference: {mustSupport: false, index: 128}
                  display: {mustSupport: false, index: 129}
                required: [reference]
              emptyReason: {index: 130}
              section: {index: 131}
            required: [text, title, code]
        referrerDetailsSection:
          match:
            code:
              coding: {code: '1052891000000108'}
          schema:
            mustSupport: true
            index: 628
            elements:
              title:
                pattern: {type: String, value: Referrer details}
                mustSupport: false
                index: 629
              code:
                index: 630
                elements:
                  coding:
                    index: 631
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 632
                      version: {index: 633}
                      code:
                        pattern: {type: Code, value: '1052891000000108'}
                        mustSupport: false
                        index: 634
                      display:
                        pattern: {type: String, value: Referrer details}
                        mustSupport: false
                        index: 635
                      userSelected: {index: 636}
                    required: [display, system, code]
                  text: {index: 637}
                required: [coding]
              text:
                mustSupport: false
                index: 638
                elements:
                  status: {mustSupport: false, index: 639}
                  div: {mustSupport: false, index: 640}
              mode: {index: 641}
              orderedBy:
                index: 642
                elements:
                  coding:
                    elements:
                      system: {index: 643}
                      version: {index: 644}
                      code: {index: 645}
                      display: {index: 646}
                      userSelected: {index: 647}
                    required: [display, system, code]
                  text: {index: 648}
              entry:
                type: Reference
                refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-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: 649
                elements:
                  reference: {index: 650}
                required: [reference]
              emptyReason: {index: 651}
              section: {index: 652}
            required: [text, title, code]
        clinicalSummarySection:
          match:
            code:
              coding: {code: '887181000000106'}
          schema:
            mustSupport: true
            index: 158
            elements:
              title:
                pattern: {type: String, value: Clinical summary}
                mustSupport: false
                index: 159
              code:
                index: 160
                elements:
                  coding:
                    index: 161
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 162
                      version: {index: 163}
                      code:
                        pattern: {type: Code, value: '887181000000106'}
                        mustSupport: false
                        index: 164
                      display:
                        pattern: {type: String, value: Clinical summary}
                        mustSupport: false
                        index: 165
                      userSelected: {index: 166}
                    required: [display, system, code]
                  text: {index: 167}
                required: [coding]
              text: {index: 168}
              mode: {index: 169}
              orderedBy:
                index: 170
                elements:
                  coding:
                    elements:
                      system: {index: 171}
                      version: {index: 172}
                      code: {index: 173}
                      display: {index: 174}
                      userSelected: {index: 175}
                    required: [display, system, code]
                  text: {index: 176}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 177
                elements:
                  reference: {index: 178}
                required: [reference]
              emptyReason: {index: 179}
              section: {index: 180}
            required: [text, title, code]
        distributionListSection:
          match:
            code:
              coding: {code: '887261000000109'}
          schema:
            mustSupport: true
            index: 207
            elements:
              title:
                pattern: {type: String, value: Distribution list}
                index: 208
              code:
                index: 209
                elements:
                  coding:
                    index: 210
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 211
                      version: {index: 212}
                      code:
                        pattern: {type: Code, value: '887261000000109'}
                        index: 213
                      display:
                        pattern: {type: String, value: Distribution list}
                        index: 214
                      userSelected: {index: 215}
                    required: [display, system, code]
                  text: {index: 216}
                required: [coding]
              text: {index: 217}
              mode: {index: 218}
              orderedBy:
                index: 219
                elements:
                  coding:
                    elements:
                      system: {index: 220}
                      version: {index: 221}
                      code: {index: 222}
                      display: {index: 223}
                      userSelected: {index: 224}
                    required: [display, system, code]
                  text: {index: 225}
              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: 226
                elements:
                  reference: {index: 227}
                required: [reference]
              emptyReason: {index: 228}
              section: {index: 229}
            required: [text, title, code]
        patientDemographicsSection:
          match:
            code:
              coding: {code: '886731000000109'}
          schema:
            mustSupport: true
            _required: true
            index: 503
            elements:
              title:
                pattern: {type: String, value: Patient demographics}
                index: 504
              code:
                index: 505
                elements:
                  coding:
                    index: 506
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 507
                      version: {index: 508}
                      code:
                        pattern: {type: Code, value: '886731000000109'}
                        index: 509
                      display:
                        pattern: {type: String, value: Patient demographics}
                        index: 510
                      userSelected: {index: 511}
                    required: [display, system, code]
                  text: {index: 512}
                required: [coding]
              text: {index: 513}
              mode: {index: 514}
              orderedBy:
                index: 515
                elements:
                  coding:
                    elements:
                      system: {index: 516}
                      version: {index: 517}
                      code: {index: 518}
                      display: {index: 519}
                      userSelected: {index: 520}
                    required: [display, system, code]
                  text: {index: 521}
              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: 522
                elements:
                  reference: {index: 523}
                required: [reference]
              emptyReason: {index: 524}
              section: {index: 525}
            required: [entry, text, title, code]
        relevantClinicalRiskFactorsSection:
          match:
            code:
              coding: {code: '886821000000100'}
          schema:
            mustSupport: true
            index: 653
            elements:
              title:
                pattern: {type: String, value: Relevant clinical risk factors}
                mustSupport: false
                index: 654
              code:
                index: 655
                elements:
                  coding:
                    index: 656
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 657
                      version: {index: 658}
                      code:
                        pattern: {type: Code, value: '886821000000100'}
                        mustSupport: false
                        index: 659
                      display:
                        pattern: {type: String, value: Relevant clinical risk factors}
                        mustSupport: false
                        index: 660
                      userSelected: {index: 661}
                    required: [display, system, code]
                  text: {index: 662}
                required: [coding]
              text: {index: 663}
              mode: {index: 664}
              orderedBy:
                index: 665
                elements:
                  coding:
                    elements:
                      system: {index: 666}
                      version: {index: 667}
                      code: {index: 668}
                      display: {index: 669}
                      userSelected: {index: 670}
                    required: [display, system, code]
                  text: {index: 671}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 672
                elements:
                  reference: {mustSupport: false, index: 673}
                  display: {mustSupport: false, index: 674}
                required: [reference]
              emptyReason: {index: 675}
              section: {index: 676}
            required: [text, title, code]
        examinationFindingSection:
          match:
            code:
              coding: {code: '715851000000102'}
          schema:
            mustSupport: true
            index: 230
            elements:
              title:
                pattern: {type: String, value: Examination finding}
                mustSupport: false
                index: 231
              code:
                index: 232
                elements:
                  coding:
                    index: 233
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 234
                      version: {index: 235}
                      code:
                        pattern: {type: Code, value: '715851000000102'}
                        mustSupport: false
                        index: 236
                      display:
                        pattern: {type: String, value: Examination findings}
                        mustSupport: false
                        index: 237
                      userSelected: {index: 238}
                    required: [display, system, code]
                  text: {index: 239}
                required: [coding]
              text:
                index: 240
                elements:
                  status: {mustSupport: false, index: 241}
                  div: {mustSupport: false, index: 242}
              mode: {index: 243}
              orderedBy:
                index: 244
                elements:
                  coding:
                    elements:
                      system: {mustSupport: false, index: 245}
                      version: {index: 246}
                      code: {index: 247}
                      display: {index: 248}
                      userSelected: {index: 249}
                    required: [display, system, code]
                  text: {index: 250}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 251
                elements:
                  reference: {mustSupport: false, index: 252}
                  display: {mustSupport: false, index: 253}
                required: [reference]
              emptyReason: {index: 254}
              section: {index: 255}
            required: [text, title, code]
        clinicalReviewOfSystemsSection:
          match:
            code:
              coding: {code: '887121000000105'}
          schema:
            mustSupport: true
            index: 132
            elements:
              title:
                pattern: {type: String, value: Clinical review of systems}
                mustSupport: false
                index: 133
              code:
                index: 134
                elements:
                  coding:
                    index: 135
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 136
                      version: {index: 137}
                      code:
                        pattern: {type: Code, value: '887121000000105'}
                        mustSupport: false
                        index: 138
                      display:
                        pattern: {type: String, value: Review of systems}
                        mustSupport: false
                        index: 139
                      userSelected: {index: 140}
                    required: [display, system, code]
                  text: {index: 141}
                required: [coding]
              text:
                mustSupport: false
                index: 142
                elements:
                  status: {mustSupport: false, index: 143}
                  div: {mustSupport: false, index: 144}
              mode: {index: 145}
              orderedBy:
                mustSupport: false
                index: 146
                elements:
                  coding:
                    elements:
                      system: {mustSupport: false, index: 147}
                      version: {index: 148}
                      code: {mustSupport: false, index: 149}
                      display: {mustSupport: false, index: 150}
                      userSelected: {index: 151}
                    required: [display, system, code]
                  text: {index: 152}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 153
                elements:
                  reference: {mustSupport: true, index: 154}
                  display: {mustSupport: true, index: 155}
                required: [reference]
              emptyReason: {index: 156}
              section: {index: 157}
            required: [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]
        participationInResearchSection:
          match:
            code:
              coding: {code: '886751000000102'}
          schema:
            mustSupport: true
            index: 455
            elements:
              title:
                pattern: {type: String, value: Participation in research}
                mustSupport: false
                index: 456
              code:
                mustSupport: false
                index: 457
                elements:
                  coding:
                    mustSupport: false
                    index: 458
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 459
                      version: {index: 460}
                      code:
                        pattern: {type: Code, value: '886751000000102'}
                        mustSupport: false
                        index: 461
                      display:
                        pattern: {type: String, value: Participation in research}
                        mustSupport: false
                        index: 462
                      userSelected: {index: 463}
                    required: [display, system, code]
                  text: {index: 464}
                required: [coding]
              text:
                index: 465
                elements:
                  status: {mustSupport: false, index: 466}
                  div: {mustSupport: false, index: 467}
              mode: {index: 468}
              orderedBy:
                index: 469
                elements:
                  coding:
                    elements:
                      system: {index: 470}
                      version: {index: 471}
                      code: {index: 472}
                      display: {index: 473}
                      userSelected: {index: 474}
                    required: [display, system, code]
                  text: {index: 475}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 476
                elements:
                  reference: {index: 477}
                required: [reference]
              emptyReason: {index: 478}
              section: {index: 479}
            required: [text, title, code]
        individualRequirementsSection:
          match:
            code:
              coding: {code: '1078911000000106'}
          schema:
            mustSupport: true
            index: 328
            elements:
              title:
                pattern: {type: String, value: Individual requirements}
                mustSupport: false
                index: 329
              code:
                index: 330
                elements:
                  coding:
                    index: 331
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 332
                      version: {index: 333}
                      code:
                        pattern: {type: Code, value: '1078911000000106'}
                        mustSupport: false
                        index: 334
                      display:
                        pattern: {type: String, value: Individual requirements}
                        mustSupport: false
                        index: 335
                      userSelected: {index: 336}
                    required: [display, system, code]
                  text: {index: 337}
                required: [coding]
              text:
                mustSupport: false
                index: 338
                elements:
                  status: {mustSupport: false, index: 339}
              mode: {index: 340}
              orderedBy:
                mustSupport: false
                index: 341
                elements:
                  coding:
                    mustSupport: false
                    index: 342
                    elements:
                      system: {mustSupport: false, index: 343}
                      version: {index: 344}
                      code: {mustSupport: false, index: 345}
                      display: {mustSupport: false, index: 346}
                      userSelected: {index: 347}
                    required: [display, system, code]
                  text: {index: 348}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 349
                elements:
                  reference: {mustSupport: false, index: 350}
                  display: {mustSupport: false, index: 351}
                required: [reference]
              emptyReason: {index: 352}
              section: {index: 353}
            required: [text, title, code]
        planAndRequestedActionsSection:
          match:
            code:
              coding: {code: '887201000000105'}
          schema:
            mustSupport: true
            index: 551
            elements:
              title:
                pattern: {type: String, value: Plan and requested actions}
                mustSupport: false
                index: 552
              code:
                index: 553
                elements:
                  coding:
                    index: 554
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 555
                      version: {index: 556}
                      code:
                        pattern: {type: Code, value: '887201000000105'}
                        mustSupport: false
                        index: 557
                      display:
                        pattern: {type: String, value: Plan and requested actions}
                        mustSupport: false
                        index: 558
                      userSelected: {index: 559}
                    required: [display, system, code]
                  text: {index: 560}
                required: [coding]
              text:
                index: 561
                elements:
                  status: {mustSupport: false, index: 562}
                  div: {mustSupport: false, index: 563}
              mode: {index: 564}
              orderedBy:
                index: 565
                elements:
                  coding:
                    elements:
                      system: {index: 566}
                      version: {index: 567}
                      code: {index: 568}
                      display: {index: 569}
                      userSelected: {index: 570}
                    required: [display, system, code]
                  text: {index: 571}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 572
                elements:
                  reference: {index: 573}
                required: [reference]
              emptyReason: {index: 574}
              section: {index: 575}
            required: [text, title, code]
        proceduresSection:
          match:
            code:
              coding: {code: '887171000000109'}
          schema:
            mustSupport: true
            index: 601
            elements:
              title:
                pattern: {type: String, value: Procedures}
                mustSupport: false
                index: 602
              code:
                index: 603
                elements:
                  coding:
                    index: 604
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 605
                      version: {index: 606}
                      code:
                        pattern: {type: Code, value: '887171000000109'}
                        mustSupport: false
                        index: 607
                      display:
                        pattern: {type: String, value: Procedures}
                        mustSupport: false
                        index: 608
                      userSelected: {index: 609}
                    required: [display, system, code]
                  text: {index: 610}
                required: [coding]
              text:
                mustSupport: false
                index: 611
                elements:
                  status: {mustSupport: false, index: 612}
                  div: {mustSupport: false, index: 613}
              mode: {index: 614}
              orderedBy:
                mustSupport: false
                index: 615
                elements:
                  coding:
                    mustSupport: false
                    index: 616
                    elements:
                      system: {mustSupport: false, index: 617}
                      version: {index: 618}
                      code: {mustSupport: false, index: 619}
                      display: {mustSupport: false, index: 620}
                      userSelected: {index: 621}
                    required: [display, system, code]
                  text: {index: 622}
              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: 623
                elements:
                  reference: {mustSupport: false, index: 624}
                  display: {mustSupport: false, index: 625}
                required: [reference]
              emptyReason: {index: 626}
              section: {index: 627}
            required: [text, title, code]
        problemsAndIssuesSection:
          match:
            code:
              coding: {code: '887151000000100'}
          schema:
            mustSupport: true
            index: 576
            elements:
              title:
                pattern: {type: String, value: Problems and issues}
                mustSupport: false
                index: 577
              code:
                mustSupport: false
                index: 578
                elements:
                  coding:
                    mustSupport: false
                    index: 579
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 580
                      version: {index: 581}
                      code:
                        pattern: {type: Code, value: '887151000000100'}
                        mustSupport: false
                        index: 582
                      display:
                        pattern: {type: String, value: Problems and issues}
                        mustSupport: false
                        index: 583
                      userSelected: {index: 584}
                    required: [display, system, code]
                  text: {index: 585}
                required: [coding]
              text:
                index: 586
                elements:
                  status: {mustSupport: false, index: 587}
                  div: {mustSupport: false, index: 588}
              mode: {index: 589}
              orderedBy:
                index: 590
                elements:
                  coding:
                    elements:
                      system: {index: 591}
                      version: {index: 592}
                      code: {index: 593}
                      display: {index: 594}
                      userSelected: {index: 595}
                    required: [display, system, code]
                  text: {index: 596}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 597
                elements:
                  reference: {index: 598}
                required: [reference]
              emptyReason: {index: 599}
              section: {index: 600}
            required: [text, title, code]
        diagnosesSection:
          match:
            code:
              coding: {code: '887161000000102'}
          schema:
            mustSupport: true
            index: 181
            elements:
              title:
                pattern: {type: String, value: Diagnoses}
                mustSupport: false
                index: 182
              code:
                index: 183
                elements:
                  coding:
                    index: 184
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 185
                      version: {index: 186}
                      code:
                        pattern: {type: Code, value: '887161000000102'}
                        mustSupport: false
                        index: 187
                      display:
                        pattern: {type: String, value: Diagnoses}
                        mustSupport: false
                        index: 188
                      userSelected: {index: 189}
                    required: [display, system, code]
                  text: {index: 190}
                required: [coding]
              text:
                index: 191
                elements:
                  status: {mustSupport: false, index: 192}
                  div: {mustSupport: false, index: 193}
              mode: {index: 194}
              orderedBy:
                index: 195
                elements:
                  coding:
                    elements:
                      system: {mustSupport: false, index: 196}
                      version: {index: 197}
                      code: {mustSupport: false, index: 198}
                      display: {mustSupport: false, index: 199}
                      userSelected: {index: 200}
                    required: [display, system, code]
                  text: {index: 201}
              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: 202
                elements:
                  reference: {index: 203}
                  display: {mustSupport: false, index: 204}
                required: [reference]
              emptyReason: {index: 205}
              section: {index: 206}
            required: [text, title, code]
        familyHistorySection:
          match:
            code:
              coding: {code: '887111000000104'}
          schema:
            mustSupport: true
            index: 256
            elements:
              title:
                pattern: {type: String, value: Family history}
                mustSupport: false
                index: 257
              code:
                mustSupport: false
                index: 258
                elements:
                  coding:
                    mustSupport: false
                    index: 259
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 260
                      version: {index: 261}
                      code:
                        pattern: {type: Code, value: '887111000000104'}
                        mustSupport: false
                        index: 262
                      display:
                        pattern: {type: String, value: Family history}
                        mustSupport: false
                        index: 263
                      userSelected: {index: 264}
                    required: [display, system, code]
                  text: {index: 265}
                required: [coding]
              text: {index: 266}
              mode: {index: 267}
              orderedBy:
                index: 268
                elements:
                  coding:
                    elements:
                      system: {index: 269}
                      version: {index: 270}
                      code: {index: 271}
                      display: {index: 272}
                      userSelected: {index: 273}
                    required: [display, system, code]
                  text: {index: 274}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 275
                elements:
                  reference: {index: 276}
                required: [reference]
              emptyReason: {index: 277}
              section: {index: 278}
            required: [text, title, code]
        personCompletingRecordSection:
          match:
            code:
              coding: {code: '887231000000104'}
          schema:
            mustSupport: true
            index: 526
            elements:
              title:
                pattern: {type: String, value: Person completing record}
                mustSupport: false
                index: 527
              code:
                index: 528
                elements:
                  coding:
                    index: 529
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 530
                      version: {index: 531}
                      code:
                        pattern: {type: Code, value: '887231000000104'}
                        mustSupport: false
                        index: 532
                      display:
                        pattern: {type: String, value: Person completing record}
                        mustSupport: false
                        index: 533
                      userSelected: {index: 534}
                    required: [display, system, code]
                  text: {index: 535}
                required: [coding]
              text:
                index: 536
                elements:
                  status: {mustSupport: false, index: 537}
                  div: {mustSupport: false, index: 538}
              mode: {index: 539}
              orderedBy:
                index: 540
                elements:
                  coding:
                    elements:
                      system: {index: 541}
                      version: {index: 542}
                      code: {index: 543}
                      display: {index: 544}
                      userSelected: {index: 545}
                    required: [display, system, code]
                  text: {index: 546}
              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: 547
                elements:
                  reference: {index: 548}
                required: [reference]
              emptyReason: {index: 549}
              section: {index: 550}
            required: [text, title, code]
        assessmentScalesSection:
          match:
            code:
              coding: {code: '887141000000103'}
          schema:
            mustSupport: true
            index: 82
            elements:
              title:
                pattern: {type: String, value: Assessment scales}
                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: '887141000000103'}
                        mustSupport: false
                        index: 88
                      display:
                        pattern: {type: String, value: Assessment scales}
                        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]
        informationAndAdviceGivenSection:
          match:
            code:
              coding: {code: '1052951000000105'}
          schema:
            mustSupport: true
            index: 354
            elements:
              title:
                pattern: {type: String, value: Information and advice given}
                mustSupport: false
                index: 355
              code:
                index: 356
                elements:
                  coding:
                    index: 357
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 358
                      version: {index: 359}
                      code:
                        pattern: {type: Code, value: '1052951000000105'}
                        mustSupport: false
                        index: 360
                      display:
                        pattern: {type: String, value: Information and advice given}
                        mustSupport: false
                        index: 361
                      userSelected: {index: 362}
                    required: [display, system, code]
                  text: {index: 363}
                required: [coding]
              text:
                index: 364
                elements:
                  status: {mustSupport: false, index: 365}
                  div: {mustSupport: false, index: 366}
              mode: {index: 367}
              orderedBy:
                index: 368
                elements:
                  coding:
                    elements:
                      system: {index: 369}
                      version: {index: 370}
                      code: {index: 371}
                      display: {index: 372}
                      userSelected: {index: 373}
                    required: [display, system, code]
                  text: {index: 374}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 375
                elements:
                  reference: {index: 376}
                required: [reference]
              emptyReason: {index: 377}
              section: {index: 378}
            required: [text, title, code]
        legalInformationSection:
          match:
            code:
              coding: {code: '886961000000102'}
          schema:
            mustSupport: true
            index: 405
            elements:
              title:
                pattern: {type: String, value: Legal information}
                mustSupport: false
                index: 406
              code:
                index: 407
                elements:
                  coding:
                    index: 408
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 409
                      version: {index: 410}
                      code:
                        pattern: {type: Code, value: '886961000000102'}
                        mustSupport: false
                        index: 411
                      display:
                        pattern: {type: String, value: Legal information}
                        mustSupport: false
                        index: 412
                      userSelected: {index: 413}
                    required: [display, system, code]
                  text: {index: 414}
                required: [coding]
              text: {index: 415}
              mode: {index: 416}
              orderedBy:
                index: 417
                elements:
                  coding:
                    elements:
                      system: {index: 418}
                      version: {index: 419}
                      code: {index: 420}
                      display: {index: 421}
                      userSelected: {index: 422}
                    required: [display, system, code]
                  text: {index: 423}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 424
                elements:
                  reference: {index: 425}
                required: [reference]
              emptyReason: {index: 426}
              section: {index: 427}
            required: [text, title, code]
        patientAndCarerConcernsExpectationsAndWishesSection:
          match:
            code:
              coding: {code: '1052941000000107'}
          schema:
            mustSupport: true
            index: 480
            elements:
              title:
                pattern: {type: String, value: 'Patient and carer concerns, expectations and wishes'}
                mustSupport: false
                index: 481
              code:
                index: 482
                elements:
                  coding:
                    index: 483
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 484
                      version: {index: 485}
                      code:
                        pattern: {type: Code, value: '1052941000000107'}
                        mustSupport: false
                        index: 486
                      display:
                        pattern: {type: String, value: 'Patient and carer concerns, expectations and wishes'}
                        mustSupport: false
                        index: 487
                      userSelected: {index: 488}
                    required: [display, system, code]
                  text: {index: 489}
                required: [coding]
              text: {index: 490}
              mode: {index: 491}
              orderedBy:
                index: 492
                elements:
                  coding:
                    elements:
                      system: {index: 493}
                      version: {index: 494}
                      code: {index: 495}
                      display: {index: 496}
                      userSelected: {index: 497}
                    required: [display, system, code]
                  text: {index: 498}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 499
                elements:
                  reference: {mustSupport: false, index: 500}
                required: [reference]
              emptyReason: {index: 501}
              section: {index: 502}
            required: [text, title, code]
        historySection:
          match:
            code:
              coding: {code: '717121000000105'}
          schema:
            mustSupport: true
            index: 302
            elements:
              title:
                pattern: {type: String, value: History}
                mustSupport: false
                index: 303
              code:
                index: 304
                elements:
                  coding:
                    mustSupport: false
                    index: 305
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 306
                      version: {index: 307}
                      code:
                        pattern: {type: Code, value: '717121000000105'}
                        index: 308
                      display:
                        pattern: {type: String, value: History}
                        index: 309
                      userSelected: {index: 310}
                    required: [display, system, code]
                  text: {index: 311}
                required: [coding]
              text:
                index: 312
                elements:
                  status: {mustSupport: false, index: 313}
                  div: {mustSupport: false, index: 314}
              mode: {index: 315}
              orderedBy:
                index: 316
                elements:
                  coding:
                    elements:
                      system: {mustSupport: false, index: 317}
                      version: {index: 318}
                      code: {mustSupport: false, index: 319}
                      display: {mustSupport: false, index: 320}
                      userSelected: {index: 321}
                    required: [display, system, code]
                  text: {index: 322}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Condition-List-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Procedure-List-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 323
                elements:
                  reference: {index: 324}
                  display: {mustSupport: false, index: 325}
                required: [reference]
              emptyReason: {index: 326}
              section: {index: 327}
            required: [text, title, code]
        safetyAlertsSection:
          match:
            code:
              coding: {code: '886931000000107'}
          schema:
            mustSupport: true
            index: 677
            elements:
              title:
                pattern: {type: String, value: Safety alerts}
                mustSupport: false
                index: 678
              code:
                index: 679
                elements:
                  coding:
                    index: 680
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 681
                      version: {index: 682}
                      code:
                        pattern: {type: Code, value: '886931000000107'}
                        mustSupport: false
                        index: 683
                      display:
                        pattern: {type: String, value: Safety alerts}
                        mustSupport: false
                        index: 684
                      userSelected: {index: 685}
                    required: [display, system, code]
                  text: {index: 686}
                required: [coding]
              text:
                mustSupport: false
                index: 687
                elements:
                  status: {mustSupport: false, index: 688}
                  div: {mustSupport: false, index: 689}
              mode: {index: 690}
              orderedBy:
                index: 691
                elements:
                  coding:
                    elements:
                      system: {index: 692}
                      version: {index: 693}
                      code: {index: 694}
                      display: {index: 695}
                      userSelected: {index: 696}
                    required: [display, system, code]
                  text: {index: 697}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 698
                elements:
                  reference: {index: 699}
                required: [reference]
              emptyReason: {index: 700}
              section: {index: 701}
            required: [text, title, code]
        gpPracticeSection:
          match:
            code:
              coding: {code: '886711000000101'}
          schema:
            mustSupport: true
            index: 279
            elements:
              title:
                pattern: {type: String, value: GP practice}
                index: 280
              code:
                index: 281
                elements:
                  coding:
                    index: 282
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 283
                      version: {index: 284}
                      code:
                        pattern: {type: Code, value: '886711000000101'}
                        index: 285
                      display:
                        pattern: {type: String, value: GP practice}
                        index: 286
                      userSelected: {index: 287}
                    required: [display, system, code]
                  text: {index: 288}
                required: [coding]
              text: {index: 289}
              mode: {index: 290}
              orderedBy:
                index: 291
                elements:
                  coding:
                    elements:
                      system: {index: 292}
                      version: {index: 293}
                      code: {index: 294}
                      display: {index: 295}
                      userSelected: {index: 296}
                    required: [display, system, code]
                  text: {index: 297}
              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: 298
                elements:
                  reference: {index: 299}
                required: [reference]
              emptyReason: {index: 300}
              section: {index: 301}
            required: [entry, text, title, code]
        medicationsAndMedicalDevicesSection:
          match:
            code:
              coding: {code: '933361000000108'}
          schema:
            mustSupport: true
            index: 428
            elements:
              title:
                pattern: {type: String, value: Medications and medical devices}
                mustSupport: false
                index: 429
              code:
                index: 430
                elements:
                  coding:
                    index: 431
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 432
                      version: {index: 433}
                      code:
                        pattern: {type: Code, value: '933361000000108'}
                        mustSupport: false
                        index: 434
                      display:
                        pattern: {type: String, value: Medications and medical devices}
                        mustSupport: false
                        index: 435
                      userSelected: {index: 436}
                    required: [display, system, code]
                  text: {index: 437}
                required: [coding]
              text:
                index: 438
                elements:
                  status: {mustSupport: false, index: 439}
                  div: {mustSupport: false, index: 440}
              mode: {index: 441}
              orderedBy:
                mustSupport: false
                index: 442
                elements:
                  coding:
                    mustSupport: false
                    index: 443
                    elements:
                      system: {mustSupport: false, index: 444}
                      version: {index: 445}
                      code: {mustSupport: false, index: 446}
                      display: {mustSupport: false, index: 447}
                      userSelected: {index: 448}
                    required: [display, system, code]
                  text: {index: 449}
              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: 450
                elements:
                  reference: {mustSupport: false, index: 451}
                  display: {mustSupport: false, index: 452}
                required: [reference]
              emptyReason: {index: 453}
              section: {index: 454}
            required: [text, title, code]
        socialContextSection:
          match:
            code:
              coding: {code: '887051000000101'}
          schema:
            mustSupport: true
            index: 702
            elements:
              title:
                pattern: {type: String, value: Social context}
                mustSupport: false
                index: 703
              code:
                index: 704
                elements:
                  coding:
                    index: 705
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 706
                      version: {index: 707}
                      code:
                        pattern: {type: Code, value: '887051000000101'}
                        mustSupport: false
                        index: 708
                      display:
                        pattern: {type: String, value: Social context}
                        mustSupport: false
                        index: 709
                      userSelected: {index: 710}
                    required: [display, system, code]
                  text: {index: 711}
                required: [coding]
              text:
                index: 712
                elements:
                  status: {mustSupport: false, index: 713}
                  div: {mustSupport: false, index: 714}
              mode: {index: 715}
              orderedBy:
                index: 716
                elements:
                  coding:
                    elements:
                      system: {index: 717}
                      version: {index: 718}
                      code: {index: 719}
                      display: {index: 720}
                      userSelected: {index: 721}
                    required: [display, system, code]
                  text: {index: 722}
              entry:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Attachment-Binary-1']
                index: 723
                elements:
                  reference: {mustSupport: false, index: 724}
                required: [reference]
              emptyReason: {index: 725}
              section: {index: 726}
            required: [text, title, code]
        investigationResultsSection:
          match:
            code:
              coding: {code: '1082101000000102'}
          schema:
            mustSupport: true
            index: 379
            elements:
              title:
                pattern: {type: String, value: Investigation results}
                mustSupport: false
                index: 380
              code:
                index: 381
                elements:
                  coding:
                    index: 382
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: false
                        index: 383
                      version: {index: 384}
                      code:
                        pattern: {type: Code, value: '1082101000000102'}
                        mustSupport: false
                        index: 385
                      display:
                        pattern: {type: String, value: Investigation results}
                        mustSupport: false
                        index: 386
                      userSelected: {index: 387}
                    required: [display, system, code]
                  text: {index: 388}
                required: [coding]
              text:
                index: 389
                elements:
                  status: {mustSupport: false, index: 390}
                  div: {mustSupport: false, index: 391}
              mode: {index: 392}
              orderedBy:
                index: 393
                elements:
                  coding:
                    mustSupport: false
                    index: 394
                    elements:
                      system: {mustSupport: false, index: 395}
                      version: {index: 396}
                      code: {mustSupport: false, index: 397}
                      display: {mustSupport: false, index: 398}
                      userSelected: {index: 399}
                    required: [display, system, code]
              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: 400
                elements:
                  reference: {mustSupport: false, index: 401}
                  display: {mustSupport: false, index: 402}
                required: [reference]
              emptyReason: {index: 403}
              section: {index: 404}
            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-OPL-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-OPL-Composition-1
base: http://hl7.org/fhir/StructureDefinition/Composition
version: 1.3.1
required: [section, identifier]