# Slot

> Open (bookable) times on a schedule, worked out from the provider's hours and existing bookings.

Conforms to the FHIR R4 base `Slot` resource. Scope: `system/Slot.rs` (or `system/Slot.read`).

`GET [base]/Slot/{id}` — Read one Slot.

`GET [base]/Slot?{parameters}` — Search Slot. Returns a `Bundle`.

`POST [base]/Slot/_search` — Search with the parameters in a form body.

## Search parameters

| Parameter | Type | Description |
| --- | --- | --- |
| `_id` | token | The resource id. Comma-separate for several. |
| `schedule` | reference | `Schedule/{id}`. |
| `start` | date | Slot start date (FHIR date, with prefixes). Defaults to the next 7 days; at most 31 days per search. |
| `status` | token | Status code; comma-separate for several. |
| `appointment-type` | token | Appointment type id or name: slots are sized to its length. |
| `_count` | number | Results per page (default 50, at most 200). See [paging](/paging.md). |

Repeat a parameter to AND its values; separate values with commas to OR them.

## How slots work

- Slots are worked out live from the provider's office hours, blocked time and existing appointments; only `free` slots are returned.
- Pass `appointment-type` to get slots sized to that visit type; otherwise slots are 15 minutes.
- `start` defaults to the next 7 days and covers at most 31 days per search.
- Slot ids look like `{schedule}-{yyyyMMddHHmm}-{minutes}` and stay valid while the slot is free.

## Example

*Search request*

```bash
curl "https://dev3.somahealth.com/api/fhir/r4/your-practice/Slot?schedule=Schedule/{id}&start=ge2026-12-14&start=lt2026-12-16&appointment-type=New%20patient" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Accept: application/fhir+json"
```

*Slot (an entry in the response Bundle)*

```json
{
  "resourceType": "Slot",
  "id": "5c1a9e447b2d4f308e6a0d9b3f2c1a77-a7f3e210-202612141000-30",
  "appointmentType": { "text": "New patient" },
  "schedule": { "reference": "Schedule/5c1a9e447b2d4f308e6a0d9b3f2c1a77-a7f3e210" },
  "status": "free",
  "start": "2026-12-14T10:00:00-05:00",
  "end": "2026-12-14T10:30:00-05:00"
}
```

Examples use made-up data. Elements appear only when the practice has recorded them.

---
Last updated 2026-12-04 · Soma Health FHIR API
