v1

latestOpenAPI 3.0.0Apache 2.02026-07-143533191.6 KB
Slots

Get slots

Get available slots

A call to Slots is for querying a target endpoint for suitable slots to book a new Appointment into for a patient. A request for slots support various filter parameters but requires the service identifier, slot status(es) and a timeframe to limit the search.

As documented in the NHS Booking Standard, a receiver assigns the service identifier to groups of slots, under a schedule, which ties schedules together for a particular service.

get/Slot

Query parameters

statusstring[] required

Status values that need to be considered for filter.

If attempting to filter by multiple status' they must be separated with commas as opposed to defining the query parameter twice as defined in FHIR Guidance

For example "GET [base]/Slot?status=free,busy".

startstring datetime required
Example:2022-03-01T12:00:00+00:00

Slot start date/time (yyyy-mm-ddThh:mm:ss+00:00). To search for time windows within which Slots must start, use "greater than" and "less than" searching.

For example "GET [base]/Slot?start=ge2022-03-01T12:00:00+00:00&start=le2022-03-01T13:30:00+00:00". The definition of the time window within which Slots are requested is provided by using this parameter twice. The values must include an offset indicating UTC in the FHIR dateTime format. This is the case for all dateTimes in the BaRS standard.

Schedule.actor:HealthcareServicestring
Example:2000099999

A single service ID can be provided to indicate the service for which appointment slots are returned for.

_includestring[] required

Inclusions that drive the rescusive depth of the search. There is a minimum of the following _include parameters required for current Applications.

  • Slot:schedule
  • Schedule:actor:HealthcareService

Note: Both _include and _revinclude share the same syntax - up to three components, separated by colon characters (:). Unlike search queries, this is not a FHIRPath expression

The full list of applicable _includes are shown below. If any cannot be honored the Receiver will respond, ignoring the unsupported _include(s), with the URL reflecting this omission in the responses Bundle.link.url.

ExpressionInclusionDescription
Slot:scheduleScheduleInclude Schedule Resources referenced within the Slot Resources
Schedule:actor:PractitionerPractitionerInclude Practitioner Resources referenced within the Schedule Resources
Schedule:actor:PractitionerRolePractitionerRoleInclude Practitioner Role Resources referenced within the Schedule Resources
Schedule:actor:HealthcareServiceHealthcareServiceInclude HealthcareService Resources referenced within the Schedule Resources
HealthcareService:providedByProvidedByInclude Organization Resources referenced within the HealthcareService Resources
HealthcareService:locationLocationInclude Location Resources referenced within the HealthcareService Resources

Response

Success. A full example of a Slot Searchset response can be found here.