PackagesCanonicalsLogsProblems
    Packages
    NHSDigital.FHIR.STU3@1.0.0
    https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Encounter-1
description: The encounter resource represents an encounter between a care professional and the patient (or patient's record) with further constraints applied to support the Digital Child Health project.
package_name: NHSDigital.FHIR.STU3
derivation: constraint
name: CareConnect-DCH-Encounter-1
type: Encounter
elements:
  appointment: {index: 38}
  diagnosis:
    index: 52
    elements:
      condition:
        type: Reference
        refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Procedure-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Condition-1']
        index: 53
  serviceProvider:
    type: Reference
    refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1']
    index: 86
    elements:
      reference: {index: 87}
    required: [reference]
  episodeOfCare: {index: 35}
  type:
    elements:
      coding:
        index: 18
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: system, type: value}
          min: null
          slices:
            snomedCT:
              match: {system: 'http://snomed.info/sct'}
              schema:
                index: 19
                extensions:
                  snomedCTDescriptionID:
                    url: h
                    type: Extension
                    index: 21
                    elements:
                      url:
                        pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'}
                        index: 22
                elements:
                  extension:
                    index: 20
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: null
                      slices:
                        snomedCTDescriptionID:
                          match: {url: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'}
                          schema:
                            type: Extension
                            url: h
                            index: 21
                            elements:
                              url:
                                pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'}
                                index: 22
                  system:
                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                    index: 23
                  version: {index: 24}
                  code: {index: 25}
                  display: {index: 26}
                required: [display, system, code]
            childHealthEncounterType:
              match: {system: 'https://fhir.nhs.uk/STU3/CodeSystem/DCH-ChildHealthEncounterType-1'}
              schema:
                _required: true
                index: 27
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://fhir.nhs.uk/STU3/CodeSystem/DCH-ChildHealthEncounterType-1'}
                    index: 28
                  version: {index: 29}
                  display: {index: 30}
                  userSelected: {index: 31}
                required: [display, system]
  participant:
    elements:
      individual:
        type: Reference
        refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Practitioner-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/DCH-RelatedPerson-1']
        index: 37
  account: {index: 54}
  classHistory:
    index: 16
    elements:
      class: {short: Classification of the encounter, index: 17}
  incomingReferral: {index: 36}
  reason:
    index: 42
    elements:
      coding:
        index: 43
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: system, type: value}
          min: null
          max: 1
          slices:
            snomedCT:
              match: {system: 'http://snomed.info/sct'}
              schema:
                index: 44
                extensions:
                  snomedCTDescriptionID:
                    url: h
                    type: Extension
                    index: 46
                    elements:
                      url:
                        pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'}
                        index: 47
                elements:
                  extension:
                    index: 45
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: null
                      slices:
                        snomedCTDescriptionID:
                          match: {url: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'}
                          schema:
                            type: Extension
                            url: h
                            index: 46
                            elements:
                              url:
                                pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'}
                                index: 47
                  system:
                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                    index: 48
                  version: {index: 49}
                  code: {index: 50}
                  display: {index: 51}
                required: [display, system, code]
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        encounterTransport:
          match: {url: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-EncounterTransport-1'}
          schema:
            type: Extension
            url: h
            index: 1
            elements:
              url:
                pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-EncounterTransport-1'}
                index: 2
        outcomeOfAttendance:
          match: {url: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-OutcomeOfAttendance-1'}
          schema:
            type: Extension
            url: h
            index: 3
            elements:
              url:
                pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-OutcomeOfAttendance-1'}
                index: 4
        emergencyCareDischargeStatus:
          match: {url: null}
          schema: {type: Extension, url: h, index: 5}
          max: 0
  priority: {index: 32}
  status:
    pattern: {type: Code, value: finished}
    index: 13
  class: {short: Classification of the encounter, index: 15}
  length: {index: 41}
  identifier:
    index: 6
    elements:
      use: {index: 7}
      type: {index: 8}
      system: {index: 9}
      value: {index: 10}
      period: {index: 11}
      assigner:
        type: Reference
        refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1']
        index: 12
    required: [value, system]
  hospitalization:
    extensions:
      admissionMethod:
        url: h
        type: Extension
        index: 56
        elements:
          url:
            pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-AdmissionMethod-1'}
            index: 57
      dischargeMethod:
        url: h
        type: Extension
        index: 58
        elements:
          url:
            pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-DischargeMethod-1'}
            index: 59
    elements:
      dischargeDisposition:
        index: 81
        elements:
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/CodeSystem/CareConnect-DischargeDestination-1'}
                index: 82
      preAdmissionIdentifier:
        index: 60
        elements:
          system: {index: 61}
          value: {index: 62}
          assigner:
            type: Reference
            refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1']
            index: 63
        required: [value, system]
      specialArrangement: {index: 79}
      dietPreference: {index: 77}
      admitSource:
        index: 65
        elements:
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/CodeSystem/CareConnect-SourceOfAdmission-1'}
                index: 66
      specialCourtesy: {index: 78}
      extension:
        index: 55
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            admissionMethod:
              match: {url: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-AdmissionMethod-1'}
              schema:
                type: Extension
                url: h
                index: 56
                elements:
                  url:
                    pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-AdmissionMethod-1'}
                    index: 57
            dischargeMethod:
              match: {url: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-DischargeMethod-1'}
              schema:
                type: Extension
                url: h
                index: 58
                elements:
                  url:
                    pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-DischargeMethod-1'}
                    index: 59
      reAdmission:
        index: 67
        elements:
          coding:
            index: 68
            slicing:
              rules: open
              ordered: false
              discriminator:
              - {path: system, type: value}
              min: null
              slices:
                snomedCT:
                  match: {system: 'http://snomed.info/sct'}
                  schema:
                    index: 69
                    extensions:
                      snomedCTDescriptionID:
                        url: h
                        type: Extension
                        index: 71
                        elements:
                          url:
                            pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'}
                            index: 72
                    elements:
                      extension:
                        index: 70
                        slicing:
                          rules: open
                          discriminator:
                          - {path: url, type: value}
                          min: null
                          slices:
                            snomedCTDescriptionID:
                              match: {url: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'}
                              schema:
                                type: Extension
                                url: h
                                index: 71
                                elements:
                                  url:
                                    pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'}
                                    index: 72
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 73
                      version: {index: 74}
                      code: {index: 75}
                      display: {index: 76}
                    required: [display, system, code]
      origin:
        type: Reference
        refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Location-1']
        index: 64
      destination:
        type: Reference
        refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Location-1']
        index: 80
  period:
    index: 39
    elements:
      start: {index: 40}
    required: [start]
  partOf:
    type: Reference
    refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Encounter-1']
    index: 88
  location:
    index: 83
    elements:
      location:
        type: Reference
        refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Location-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Delivery-Location-1']
        index: 84
        elements:
          reference: {index: 85}
        required: [reference]
  subject:
    type: Reference
    short: The patient present at the encounter
    refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Patient-1']
    index: 33
    elements:
      reference: {index: 34}
    required: [reference]
  statusHistory: {index: 14}
package_version: 1.0.0
extensions:
  encounterTransport:
    url: h
    type: Extension
    index: 1
    elements:
      url:
        pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-EncounterTransport-1'}
        index: 2
  outcomeOfAttendance:
    url: h
    type: Extension
    index: 3
    elements:
      url:
        pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-OutcomeOfAttendance-1'}
        index: 4
  emergencyCareDischargeStatus: {url: h, max: 0, type: Extension, index: 5}
class: profile
kind: resource
url: https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Encounter-1
base: http://hl7.org/fhir/StructureDefinition/Encounter
version: 1.2.0
required: [serviceProvider, location, subject, period]