Schedule
A container for slots of time that may be available for booking appointments
http://hl7.org/fhir/R4/schedule.html
Staff availability is denoted separately at each practice location associated with the organization record. The schedule id obtained from a Schedule search is used to search for bookable time slots for appointments.
Endpoints
Schedule search
Returns a list of location/practitioner combinations that is necessary for identifying open slots when booking appointments. This endpoint does not include any parameters.
Response Payload Attributes
The FHIR Resource name.
This element and value designate that the bundle is a search response. Search result bundles will always have the Bundle.type of searchset .
The number of resources that match the search parameter.
Attributes relevant to pagination, see our Pagination page for more detail.
The relation of the page search
The search url for the specific relation
The results bundle that lists out each object returned in the search
The attributes specific to the resource type, see the Attributes section below
Attributes
The FHIR Resource name.
The identifier of the schedule.
Text summary of the resource, for human interpretation.
The status of the narrative.
Limited xhtml content that contains the human readable text of the Schedule.
Resource(s) that availability information is being provided for.
The reference string of the practitioner in the format of "Practitioner/a39cafb9d1b445be95a2e2548e12a787"
.
Type the reference refers to (e.g. “Practitioner”).
Comments on availability. Currently the format for this comment will be Schedule for <practitioner credentialed name> at <location>
Responses
Errors
curl --request GET \ --url 'https://fumage-example.canvasmedical.com/Schedule' \ --header 'Authorization: Bearer <token>' \ --header 'accept: application/json'
import requests url = "https://fumage-example.canvasmedical.com/Schedule" headers = { "accept": "application/json", "Authorization": "Bearer <token>" } response = requests.get(url, headers=headers) print(response.text)
{ "resourceType": "Bundle", "type": "searchset", "total": 8, "entry": [ { "resource": { "resourceType": "Schedule", "id": "Location.1-Staff.e766816672f34a5b866771c773e38f3c", "text": { "status": "generated", "div": "<div>Schedule for Youta Priti MD at California</div>" }, "actor": [ { "reference": "Practitioner/e766816672f34a5b866771c773e38f3c", "type": "Practitioner" } ], "comment": "Schedule for Youta Priti MD at California" } }, { "resource": { "resourceType": "Schedule", "id": "Location.1-Staff.77bd177f81b14c9f943e1e30ed3dd989", "text": { "status": "generated", "div": "<div>Schedule for Breanna Heller LMFT at California</div>" }, "actor": [ { "reference": "Practitioner/77bd177f81b14c9f943e1e30ed3dd989", "type": "Practitioner" } ], "comment": "Schedule for Breanna Heller LMFT at California" } }, { "resource": { "resourceType": "Schedule", "id": "Location.1-Staff.f65c2bed0d8643cc808e25d5cfcf5070", "text": { "status": "generated", "div": "<div>Schedule for Patrick van Nieuwenhuizen MD at California</div>" }, "actor": [ { "reference": "Practitioner/f65c2bed0d8643cc808e25d5cfcf5070", "type": "Practitioner" } ], "comment": "Schedule for Patrick van Nieuwenhuizen MD at California" } }, { "resource": { "resourceType": "Schedule", "id": "Location.2-Staff.e766816672f34a5b866771c773e38f3c", "text": { "status": "generated", "div": "<div>Schedule for Youta Priti MD at Tennessee</div>" }, "actor": [ { "reference": "Practitioner/e766816672f34a5b866771c773e38f3c", "type": "Practitioner" } ], "comment": "Schedule for Youta Priti MD at Tennessee" } }, { "resource": { "resourceType": "Schedule", "id": "Location.2-Staff.3a182f42885645e0bc3d608e7c02aad8", "text": { "status": "generated", "div": "<div>Schedule for Nikhil Krishnan MD at Tennessee</div>" }, "actor": [ { "reference": "Practitioner/3a182f42885645e0bc3d608e7c02aad8", "type": "Practitioner" } ], "comment": "Schedule for Nikhil Krishnan MD at Tennessee" } }, { "resource": { "resourceType": "Schedule", "id": "Location.2-Staff.77bd177f81b14c9f943e1e30ed3dd989", "text": { "status": "generated", "div": "<div>Schedule for Breanna Heller LMFT at Tennessee</div>" }, "actor": [ { "reference": "Practitioner/77bd177f81b14c9f943e1e30ed3dd989", "type": "Practitioner" } ], "comment": "Schedule for Breanna Heller LMFT at Tennessee" } }, { "resource": { "resourceType": "Schedule", "id": "Location.2-Staff.f65c2bed0d8643cc808e25d5cfcf5070", "text": { "status": "generated", "div": "<div>Schedule for Patrick van Nieuwenhuizen MD at Tennessee</div>" }, "actor": [ { "reference": "Practitioner/f65c2bed0d8643cc808e25d5cfcf5070", "type": "Practitioner" } ], "comment": "Schedule for Patrick van Nieuwenhuizen MD at Tennessee" } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "invalid", "details": { "text": "Bad request" } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "unknown", "details": { "text": "Authentication failed" } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "forbidden", "details": { "text": "Authorization failed" } } ] }