<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="UKCore-Encounter" />
  <url value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Encounter" />
  <version value="2.5.0" />
  <name value="UKCoreEncounter" />
  <title value="UK Core Encounter" />
  <status value="active" />
  <date value="2023-12-12" />
  <publisher value="HL7 UK" />
  <contact>
    <name value="HL7 UK" />
    <telecom>
      <system value="email" />
      <value value="ukcore@hl7.org.uk" />
      <use value="work" />
      <rank value="1" />
    </telecom>
  </contact>
  <description value="This profile defines the UK constraints and extensions on the International FHIR resource [Encounter](https://hl7.org/fhir/R4/Encounter.html)." />
  <purpose value="This profile allows exchange of information about an interaction between an individual and healthcare providers for the purpose of providing healthcare services or assessing the health status of an individual." />
  <copyright value="Copyright © 2021+ HL7 UK Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); you may not use this file except in compliance with the License. You may obtain a copy of the License at  http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. HL7® FHIR® standard Copyright © 2011+ HL7 The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at  https://www.hl7.org/fhir/license.html." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Encounter" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Encounter" />
  <derivation value="constraint" />
  <differential>
    <element id="Encounter.extension:dischargeMethod">
      <path value="Encounter.extension" />
      <sliceName value="dischargeMethod" />
      <short value="An extension to support the method of discharge from a hospital." />
      <definition value="This extension has been developed to demonstrate the representation of the method by which a patient was discharged from hospital." />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-DischargeMethod" />
      </type>
    </element>
    <element id="Encounter.extension:emergencyCareDischargeStatus">
      <path value="Encounter.extension" />
      <sliceName value="emergencyCareDischargeStatus" />
      <short value="An extension to support the status of an individual on discharge from an Emergency Care Department." />
      <definition value="This extension has been developed to demonstrate the representation of the status of a patient on discharge from an Emergency Care Department." />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-EmergencyCareDischargeStatus" />
      </type>
    </element>
    <element id="Encounter.extension:legalStatus">
      <path value="Encounter.extension" />
      <sliceName value="legalStatus" />
      <short value="Information relating to a patient's legal status on admission or discharge." />
      <definition value="Information relating to a patient's legal status on admission or discharge." />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-LegalStatus" />
      </type>
    </element>
    <element id="Encounter.extension:OutcomeOfAttendance">
      <path value="Encounter.extension" />
      <sliceName value="OutcomeOfAttendance" />
      <short value="An extension to support the outcome of an Outpatient attendance." />
      <definition value="This extension has been developed to demonstrate the representation of the outcome of an Outpatient attendance." />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-OutcomeOfAttendance" />
      </type>
    </element>
    <element id="Encounter.identifier">
      <path value="Encounter.identifier" />
      <short value="Identifier(s) by which this encounter is known." />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.status">
      <path value="Encounter.status" />
      <short value="The status of this encounter: planned | arrived | triaged | in-progress | onleave | finished | cancelled | entered-in-error | unknown" />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.class">
      <path value="Encounter.class" />
      <short value="Concepts representing classification of patient encounter such as ambulatory (outpatient), inpatient, emergency, home health or others due to local variations." />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.type">
      <path value="Encounter.type" />
      <binding>
        <strength value="preferred" />
        <description value="A code from the SNOMED Clinical Terminology UK coding system that describes an encounter between a care professional and the patient (or patient's record)." />
        <valueSet value="https://fhir.hl7.org.uk/ValueSet/UKCore-EncounterType" />
      </binding>
    </element>
    <element id="Encounter.serviceType">
      <path value="Encounter.serviceType" />
      <binding>
        <strength value="preferred" />
        <description value="Any code from the SNOMED CT UK Refset with fully specified name 'Services simple reference set (foundation metadata concept)' with Refset Id 1127531000000102." />
        <valueSet value="https://fhir.hl7.org.uk/ValueSet/UKCore-CareSettingType" />
      </binding>
    </element>
    <element id="Encounter.subject">
      <path value="Encounter.subject" />
      <short value="The patient or group present at the encounter." />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.participant">
      <path value="Encounter.participant" />
      <short value="The list of people responsible for providing the service." />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.reasonCode">
      <path value="Encounter.reasonCode" />
      <short value="Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis." />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.reasonReference">
      <path value="Encounter.reasonReference" />
      <short value="Reason the encounter takes place, expressed as a reference to a Condition, Procedure, Observation, or ImmunizationRecommendation." />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.hospitalization.extension:admissionMethod">
      <path value="Encounter.hospitalization.extension" />
      <sliceName value="admissionMethod" />
      <short value="An extension to support the method by which an individual was admitted into hospital." />
      <definition value="This extension has been developed to demonstrate the representation of the method by which a patient was admitted to hospital." />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-AdmissionMethod" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Encounter.hospitalization.admitSource">
      <path value="Encounter.hospitalization.admitSource" />
      <binding>
        <strength value="preferred" />
        <description value="The source of admission to a Hospital Provider Spell or a Nursing Episode when the Patient is in a Hospital Site or a Care Home." />
        <valueSet value="https://fhir.hl7.org.uk/ValueSet/UKCore-SourceOfAdmission" />
      </binding>
    </element>
    <element id="Encounter.hospitalization.dischargeDisposition">
      <path value="Encounter.hospitalization.dischargeDisposition" />
      <binding>
        <strength value="preferred" />
        <description value="The destination of a Patient on completion of a Hospital Provider Spell, or a note that the Patient died or was a still birth." />
        <valueSet value="https://fhir.hl7.org.uk/ValueSet/UKCore-DischargeDestination" />
      </binding>
    </element>
    <element id="Encounter.location.physicalType">
      <path value="Encounter.location.physicalType" />
      <binding>
        <strength value="preferred" />
        <description value="A set of codes that define the physical type of location where an encounter takes place." />
        <valueSet value="https://fhir.hl7.org.uk/ValueSet/UKCore-EncounterLocationType" />
      </binding>
    </element>
  </differential>
</StructureDefinition>