PackagesCanonicalsLogsProblems
    Packages
    NHSD.Assets.STU3@1.0.0
    https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Emergency-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 an emergency care attendance, to support the Digital Child Health project.
package_name: NHSD.Assets.STU3
derivation: constraint
name: CareConnect-DCH-Emergency-Encounter-1
type: Encounter
elements:
  appointment: {index: 38}
  diagnosis:
    index: 50
    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: 51
  serviceProvider:
    type: Reference
    refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1']
    index: 84
    elements:
      reference: {index: 85}
    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: 52}
  classHistory:
    index: 16
    elements:
      class: {short: Classification of the encounter, index: 17}
  incomingReferral: {index: 36}
  reason:
    short: Reason the emergency care attendance takes place
    index: 42
    elements:
      coding:
        index: 43
        elements:
          system:
            pattern: {type: Uri, value: 'http://snomed.info/sct'}
            index: 44
          version: {index: 45}
          code: {index: 46}
          display: {index: 47}
          userSelected: {index: 48}
        required: [display, system, code]
      text: {index: 49}
    required: [coding]
  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}
          min: 1
  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: 54
        elements:
          url:
            pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-AdmissionMethod-1'}
            index: 55
      dischargeMethod:
        url: h
        type: Extension
        index: 56
        elements:
          url:
            pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-DischargeMethod-1'}
            index: 57
    elements:
      dischargeDisposition:
        index: 79
        elements:
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'http://snomed.info/sct'}
                index: 80
      preAdmissionIdentifier:
        index: 58
        elements:
          system: {index: 59}
          value: {index: 60}
          assigner:
            type: Reference
            refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1']
            index: 61
        required: [value, system]
      specialArrangement: {index: 77}
      dietPreference: {index: 75}
      admitSource:
        index: 63
        elements:
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'https://fhir.nhs.uk/STU3/CodeSystem/DCH-ReferralSourceEmergencyCare-1'}
                index: 64
      specialCourtesy: {index: 76}
      extension:
        index: 53
        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: 54
                elements:
                  url:
                    pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-AdmissionMethod-1'}
                    index: 55
            dischargeMethod:
              match: {url: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-DischargeMethod-1'}
              schema:
                type: Extension
                url: h
                index: 56
                elements:
                  url:
                    pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-DischargeMethod-1'}
                    index: 57
      reAdmission:
        index: 65
        elements:
          coding:
            index: 66
            slicing:
              rules: open
              ordered: false
              discriminator:
              - {path: system, type: value}
              min: null
              slices:
                snomedCT:
                  match: {system: 'http://snomed.info/sct'}
                  schema:
                    index: 67
                    extensions:
                      snomedCTDescriptionID:
                        url: h
                        type: Extension
                        index: 69
                        elements:
                          url:
                            pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'}
                            index: 70
                    elements:
                      extension:
                        index: 68
                        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: 69
                                elements:
                                  url:
                                    pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'}
                                    index: 70
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 71
                      version: {index: 72}
                      code: {index: 73}
                      display: {index: 74}
                    required: [display, system, code]
      origin:
        type: Reference
        refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Location-1']
        index: 62
      destination:
        type: Reference
        refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Location-1']
        index: 78
    required: [dischargeDisposition]
  period:
    index: 39
    elements:
      start: {index: 40}
    required: [start]
  partOf:
    type: Reference
    refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Encounter-1']
    index: 86
  location:
    index: 81
    elements:
      location:
        type: Reference
        refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Location-1']
        index: 82
        elements:
          reference: {index: 83}
        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, min: 1, type: Extension, index: 5}
class: profile
kind: resource
url: https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Emergency-Encounter-1
base: http://hl7.org/fhir/StructureDefinition/Encounter
version: 1.1.0
required: [serviceProvider, location, subject, reason, period]