PackagesCanonicalsLogsProblems
    Packages
    rs/gpc.stu3.fhir@assets-1.0.0
    https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Encounter-1
description: The encounter resource represents an encounter between a care professional and the patient (or patient's record).
package_name: rs/gpc.stu3.fhir
derivation: constraint
name: CareConnect-GPC-Encounter-1
type: Encounter
elements:
  diagnosis:
    elements:
      condition:
        type: Reference
        refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Condition-1', 'https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Procedure-1']
        index: 40
  meta:
    elements:
      profile: {index: 0}
    required: [profile]
  serviceProvider:
    type: Reference
    refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1']
    index: 63
  type:
    index: 14
    elements:
      coding:
        index: 15
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: system, type: value}
          min: null
          max: 1
          slices:
            snomedCT:
              match: {system: 'http://snomed.info/sct'}
              schema:
                index: 16
                extensions:
                  snomedCTDescriptionID:
                    url: h
                    type: Extension
                    index: 18
                    elements:
                      url:
                        pattern: {type: uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'}
                        type: uri
                        index: 19
                elements:
                  extension:
                    index: 17
                    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: 18
                            elements:
                              url:
                                pattern: {type: uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'}
                                type: uri
                                index: 19
                  system:
                    pattern: {type: uri, value: 'http://snomed.info/sct'}
                    type: uri
                    index: 20
                  code: {index: 21}
                  display: {index: 22}
                required: [code, display, system]
      text: {short: Plain text representation of the consultation type as displayed by system, index: 23}
  participant:
    index: 26
    elements:
      type: {index: 27}
      individual:
        type: Reference
        refers: ['http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Practitioner-1']
        index: 28
    required: [individual]
  classHistory:
    elements:
      class: {short: Classification of the encounter, index: 13}
  incomingReferral:
    type: Reference
    refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-ReferralRequest-1']
    index: 25
  reason:
    elements:
      coding:
        index: 32
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: system, type: value}
          min: null
          slices:
            snomedCT:
              match: {system: 'http://snomed.info/sct'}
              schema:
                index: 33
                extensions:
                  snomedCTDescriptionID:
                    url: h
                    type: Extension
                    index: 35
                    elements:
                      url:
                        pattern: {type: uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'}
                        type: uri
                        index: 36
                elements:
                  extension:
                    index: 34
                    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: 35
                            elements:
                              url:
                                pattern: {type: uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'}
                                type: uri
                                index: 36
                  system:
                    pattern: {type: uri, value: 'http://snomed.info/sct'}
                    type: uri
                    index: 37
                  code: {index: 38}
                  display: {index: 39}
                required: [code, display, system]
  extension:
    index: 1
    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: 2
            elements:
              url:
                pattern: {type: uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-EncounterTransport-1'}
                type: uri
                index: 3
        outcomeOfAttendance:
          match: {url: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-OutcomeOfAttendance-1'}
          schema:
            type: Extension
            url: h
            index: 4
            elements:
              url:
                pattern: {type: uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-OutcomeOfAttendance-1'}
                type: uri
                index: 5
        emergencyCareDischargeStatus:
          match: {url: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-EmergencyCareDischargeStatus-1'}
          schema:
            type: Extension
            url: h
            index: 6
            elements:
              url:
                pattern: {type: uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-EmergencyCareDischargeStatus-1'}
                type: uri
                index: 7
  identifier:
    index: 8
    elements:
      system: {index: 9}
      value: {index: 10}
      assigner:
        type: Reference
        refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1']
        index: 11
    required: [system, value]
  hospitalization:
    extensions:
      admissionMethod:
        url: h
        type: Extension
        index: 42
        elements:
          url:
            pattern: {type: uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-AdmissionMethod-1'}
            type: uri
            index: 43
      dischargeMethod:
        url: h
        type: Extension
        index: 44
        elements:
          url:
            pattern: {type: uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-DischargeMethod-1'}
            type: uri
            index: 45
    elements:
      extension:
        index: 41
        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: 42
                elements:
                  url:
                    pattern: {type: uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-AdmissionMethod-1'}
                    type: uri
                    index: 43
            dischargeMethod:
              match: {url: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-DischargeMethod-1'}
              schema:
                type: Extension
                url: h
                index: 44
                elements:
                  url:
                    pattern: {type: uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-DischargeMethod-1'}
                    type: uri
                    index: 45
      preAdmissionIdentifier:
        elements:
          system: {index: 46}
          value: {index: 47}
          assigner:
            type: Reference
            refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1']
            index: 48
        required: [system, value]
      origin:
        type: Reference
        refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Location-1']
        index: 49
      admitSource: {index: 50}
      reAdmission:
        elements:
          coding:
            index: 51
            slicing:
              rules: open
              ordered: false
              discriminator:
              - {path: system, type: value}
              min: null
              slices:
                snomedCT:
                  match: {system: 'http://snomed.info/sct'}
                  schema:
                    index: 52
                    extensions:
                      snomedCTDescriptionID:
                        url: h
                        type: Extension
                        index: 54
                        elements:
                          url:
                            pattern: {type: uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'}
                            type: uri
                            index: 55
                    elements:
                      extension:
                        index: 53
                        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: 54
                                elements:
                                  url:
                                    pattern: {type: uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'}
                                    type: uri
                                    index: 55
                      system:
                        pattern: {type: uri, value: 'http://snomed.info/sct'}
                        type: uri
                        index: 56
                      code: {index: 57}
                      display: {index: 58}
                    required: [code, display, system]
      dietPreference: {index: 59}
      destination:
        type: Reference
        refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Location-1']
        index: 60
      dischargeDisposition: {index: 61}
  period:
    mustSupport: true
    index: 29
    elements:
      start: {index: 30}
      end: {index: 31}
    required: [start]
  partOf:
    type: Reference
    refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Encounter-1']
    index: 64
  location:
    elements:
      location:
        type: Reference
        refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Location-1']
        index: 62
  subject:
    type: Reference
    short: Reference to Patient resource representing the Patient against whom the source consultation/encounter was recorded.
    refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1']
    index: 24
  statusHistory: {index: 12}
package_version: assets-1.0.0
extensions:
  encounterTransport:
    url: h
    type: Extension
    index: 2
    elements:
      url:
        pattern: {type: uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-EncounterTransport-1'}
        type: uri
        index: 3
  outcomeOfAttendance:
    url: h
    type: Extension
    index: 4
    elements:
      url:
        pattern: {type: uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-OutcomeOfAttendance-1'}
        type: uri
        index: 5
  emergencyCareDischargeStatus:
    url: h
    type: Extension
    index: 6
    elements:
      url:
        pattern: {type: uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-EmergencyCareDischargeStatus-1'}
        type: uri
        index: 7
class: profile
kind: resource
url: https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Encounter-1
base: http://hl7.org/fhir/StructureDefinition/Encounter
version: 1.5.0
required: [identifier, participant, subject, type]