2. The coordinator checks the appointments and validates slot status

GET https://api-{{tenant-id}}.developer.commure.com/api/v1/r4/Schedule?actor={{practitioner-id}}&_revinclude=Slot:schedule

The client application gets the Schedule resources linked to the Practitioner resource along with the Slot resource for the Schedule. A reference to the Schedule resource is found in the Slot resource, on the schedule field. Every Schedule will have a different Slot.

We are going to retrieve both the Schedule resource and the Slot for a Practitioner

Request Params

KeyDatatypeRequiredDescription
actorstring
_revincludestring

RESPONSES

status: OK

{"resourceType":"Bundle","type":"searchset","link":[{"relation":"self","url":"Schedule?actor=cbe538c4-6784-4903-bad5-bfc3f6a56ce9\u0026_revinclude=Slot%3Aschedule\u0026_count=50"}],"entry":[{"fullUrl":"https://api-53914125.developer.commure.com/api/v1/r4/Schedule/57cfde1c-e043-471e-94b6-3a0f9498bdfd","resource":{"resourceType":"Schedule","id":"57cfde1c-e043-471e-94b6-3a0f9498bdfd","meta":{"extension":[{"extension":[{"url":"clientname","valueString":"dashboard"},{"url":"person","valueReference":{"reference":"Person/bea178a0-6ea4-4b47-99af-e4021bba8f99"}}],"url":"https://commure.com/fhir/provenance/StructureDefinition/creator-structure-map"}],"versionId":"9095aa82-c9d1-4168-a7c2-73d071f64fe0","lastUpdated":"2020-11-02T12:21:25.278322+00:00"},"active":true,"actor":[{"reference":"Practitioner/cbe538c4-6784-4903-bad5-bfc3f6a56ce9"}]},"search":{"mode":"match"}},{"fullUrl":"https://api-53914125.developer.commure.com/api/v1/r4/Slot/55d83682-cf8a-48f7-9341-fae956fcf3a8","resource":{"resourceType":"Slot","id":"55d83682-cf8a-48f7-9341-fae956fcf3a8","meta":{"extension":[{"extension":[{"url":"clientname","valueString":"dashboard"},{"url":"person","valueReference":{"reference":"Person/bea178a0-6ea4-4b47-99af-e4021bba8f99"}}],"url":"https://commure.com/fhir/provenance/StructureDefinition/creator-structure-map"}],"versionId":"5c16c9fd-5d41-4915-80b3-18a9032668b5","lastUpdated":"2020-11-02T12:21:25.313184+00:00"},"schedule":{"reference":"Schedule/57cfde1c-e043-471e-94b6-3a0f9498bdfd"},"status":"free","start":"2020-01-01T13:00:00+00:00","end":"2020-01-01T15:00:00+00:00","overbooked":false,"comment":"Comments on the slot"},"search":{"mode":"include"}}]}