<StructureDefinition xmlns="http://hl7.org/fhir">
  <meta>
    <lastUpdated value="2018-09-06T09:40:06.019+01:00" />
  </meta>
  <url value="https://fhir.nhs.uk/STU3/StructureDefinition/GPConnect-Schedule-1" />
  <version value="1.6.0" />
  <name value="GPConnect-Schedule-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="Schedule" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Schedule" />
  <derivation value="constraint" />
  <differential>
    <element id="Schedule.extension">
      <path value="Schedule.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Schedule.extension:practitionerRole">
      <path value="Schedule.extension" />
      <sliceName value="practitionerRole" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.nhs.uk/STU3/StructureDefinition/Extension-GPConnect-PractitionerRole-1" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Schedule.identifier.use">
      <path value="Schedule.identifier.use" />
      <max value="0" />
    </element>
    <element id="Schedule.identifier.type">
      <path value="Schedule.identifier.type" />
      <max value="0" />
    </element>
    <element id="Schedule.identifier.system">
      <path value="Schedule.identifier.system" />
      <min value="1" />
      <example>
        <label value="General" />
        <valueUri value="https://fhir.nhs.uk/Id/gpconnect-schedule-identifier" />
      </example>
    </element>
    <element id="Schedule.identifier.value">
      <path value="Schedule.identifier.value" />
      <min value="1" />
    </element>
    <element id="Schedule.identifier.period">
      <path value="Schedule.identifier.period" />
      <max value="0" />
    </element>
    <element id="Schedule.identifier.assigner">
      <path value="Schedule.identifier.assigner" />
      <max value="0" />
    </element>
    <element id="Schedule.active">
      <path value="Schedule.active" />
      <max value="0" />
    </element>
    <element id="Schedule.serviceType">
      <path value="Schedule.serviceType" />
      <max value="0" />
    </element>
    <element id="Schedule.specialty">
      <path value="Schedule.specialty" />
      <max value="1" />
    </element>
    <element id="Schedule.actor">
      <path value="Schedule.actor" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Location-1" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Practitioner-1" />
      </type>
    </element>
    <element id="Schedule.planningHorizon.start">
      <path value="Schedule.planningHorizon.start" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>