<StructureDefinition xmlns="http://hl7.org/fhir">
  <meta>
    <lastUpdated value="2018-09-21T11:54:31.69+01:00" />
  </meta>
  <url value="https://fhir.nhs.uk/STU3/StructureDefinition/GPConnect-Slot-1" />
  <version value="1.5.0" />
  <name value="GPConnect-Slot-1" />
  <status value="active" />
  <date value="2024-01-22T11:39:06.3872207+00:00" />
  <publisher value="NHS Digital" />
  <contact>
    <name value="Interoperability Team" />
    <telecom>
      <system value="email" />
      <value value="interoperabilityteam@nhs.net" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="The Slot resource provides time-slots on a schedule that may be available to book for an appointment." />
  <copyright value="Copyright © 2019 NHS Digital" />
  <fhirVersion value="3.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Slot" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Slot" />
  <derivation value="constraint" />
  <differential>
    <element id="Slot.extension">
      <path value="Slot.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Slot.extension:deliveryChannel">
      <path value="Slot.extension" />
      <sliceName value="deliveryChannel" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.nhs.uk/STU3/StructureDefinition/Extension-GPConnect-DeliveryChannel-2" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Slot.identifier.use">
      <path value="Slot.identifier.use" />
      <max value="0" />
    </element>
    <element id="Slot.identifier.type">
      <path value="Slot.identifier.type" />
      <max value="0" />
    </element>
    <element id="Slot.identifier.system">
      <path value="Slot.identifier.system" />
      <min value="1" />
    </element>
    <element id="Slot.identifier.value">
      <path value="Slot.identifier.value" />
      <min value="1" />
    </element>
    <element id="Slot.identifier.period">
      <path value="Slot.identifier.period" />
      <max value="0" />
    </element>
    <element id="Slot.identifier.assigner">
      <path value="Slot.identifier.assigner" />
      <max value="0" />
    </element>
    <element id="Slot.serviceCategory">
      <path value="Slot.serviceCategory" />
      <max value="0" />
    </element>
    <element id="Slot.specialty">
      <path value="Slot.specialty" />
      <max value="1" />
    </element>
    <element id="Slot.appointmentType">
      <path value="Slot.appointmentType" />
      <max value="0" />
    </element>
    <element id="Slot.schedule">
      <path value="Slot.schedule" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/GPConnect-Schedule-1" />
      </type>
    </element>
    <element id="Slot.schedule.reference">
      <path value="Slot.schedule.reference" />
      <min value="1" />
      <example>
        <label value="General" />
        <valueString value="Schedule/b57e1f37-e88e-43ad-a9e9-79eeed7531dd" />
      </example>
    </element>
    <element id="Slot.schedule.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Slot.schedule.display" />
      <example>
        <label value="General" />
        <valueString value="Appointment Schedule - Out of Hours GP Clinic" />
      </example>
    </element>
    <element id="Slot.status">
      <path value="Slot.status" />
      <example>
        <label value="General" />
        <valueCode value="free" />
      </example>
    </element>
    <element id="Slot.comment">
      <path value="Slot.comment" />
      <example>
        <label value="General" />
        <valueString value="This slot is only to be used for Out of Hours GP Clinic appointments." />
      </example>
    </element>
  </differential>
</StructureDefinition>