SSoma HealthFHIR API
API reference

GETSchedule

One schedule per provider and location where the provider sees patients.

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

GET[base]/Schedule/{id}Read one Schedule.
GET[base]/Schedule?{parameters}Search Schedule. Returns a Bundle.
POST[base]/Schedule/_searchSearch with the parameters in a form body.

Search parameters

ParameterTypeDescription
_idtokenThe resource id. Comma-separate for several.
actorreferencePatient/{id}, Practitioner/{id} or Location/{id}.
activetokentrue or false.
_countnumberResults per page (default 50, at most 200). See paging.

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

There's one Schedule for each provider at each location where they have office hours. Its actor is the Practitioner and the Location. Use its id to search Slot.

Example

Search request
curl "https://dev3.somahealth.com/api/fhir/r4/your-practice/Schedule?actor=Practitioner/5c1a9e44-7b2d-4f30-8e6a-0d9b3f2c1a77" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Accept: application/fhir+json"
Schedule (an entry in the response Bundle)
{
  "resourceType": "Schedule",
  "id": "5c1a9e447b2d4f308e6a0d9b3f2c1a77-a7f3e210",
  "active": true,
  "actor": [
    { "reference": "Practitioner/5c1a9e44-7b2d-4f30-8e6a-0d9b3f2c1a77", "display": "Dana Example, MD" },
    { "reference": "Location/a7f3e210-6c4b-4d8e-9f15-2b0c8d7e6a53", "display": "Springfield Office" }
  ],
  "comment": "Dana Example, MD at Springfield Office"
}

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