SSoma HealthFHIR API
API reference

GETSlot

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/_searchSearch with the parameters in a form body.

Search parameters

ParameterTypeDescription
_idtokenThe resource id. Comma-separate for several.
schedulereferenceSchedule/{id}.
startdateSlot start date (FHIR date, with prefixes). Defaults to the next 7 days; at most 31 days per search.
statustokenStatus code; comma-separate for several.
appointment-typetokenAppointment type id or name: slots are sized to its length.
_countnumberResults per page (default 50, at most 200). See paging.

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
curl "https://qa3.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)
{
  "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.