Skip to main content
Find open appointment slots across every SMART Scheduling Links publisher the platform aggregates: by provider, place, service, specialty or time. You get back FHIR Slot resources, each as its publisher published it, and, when you ask, each Slot’s Schedule and the Location and provider the Schedule names, in the same Bundle. To list providers at places instead, search Schedule. Every parameter this service serves is declared in its CapabilityStatement. If you send one it does not serve, you get a 400 naming it, so a search never comes back quietly unfiltered. The open-source SDKs for TypeScript, Python and Go call every operation of this service, and each operation in the API reference has a sample in all three and in cURL. Each SDK also has a search helper that sends every include a search serves, and a slot view that hands you each Slot with its Schedule, Locations and provider side by side (Slots and schedules on the SDKs page). Calls on this page are shown in cURL.

Service base

Everything hangs off that base, exactly as the FHIR REST specification describes. /v1/ is the version of the haau3 platform API contract, not a FHIR version. The FHIR release is r4, and every response says so:
You never have to ask for a release. A plain Accept: application/fhir+json, or no Accept header at all, works fine. If you do ask for one we do not serve, or for a format other than JSON (in Accept or _format), you get a 406 rather than a silent substitution. Every error on this base is a FHIR OperationOutcome, including the 401 you get without a key and a 429, so a FHIR client only ever has one error shape to parse. Errors, limits and request ids lists the statuses every service shares.
The uppercase form /v1/fhir/R4/... redirects to the lowercase base with a 308, which preserves the method and body so a POST is not quietly turned into a GET.
The provider directory, Terminology service, Medical Benefits and the other services use this same base and the same CapabilityStatement. How the aggregator gathers and checks its publishers’ feeds is on SMART Scheduling Links.

What is served

A Slot and a Schedule have ids of 32 hexadecimal characters. A publisher’s Location, Practitioner, PractitionerRole or HealthcareService arrives as an included resource in a Slot or Schedule search and is read by its id; searching those four types is the provider directory’s, and a publisher’s records are not merged with the directory’s.

Find slots

Slots of one provider, found by NPI, with each Slot’s Schedule, its Location and the provider:
You get a searchset Bundle: the matching Slots (search.mode match) in order of start and then id, then the resources you included (search.mode include), each once. total counts the Slots only. The NPI above belongs to a test practitioner in haau3’s own synthetic feed.

Search parameters

A token takes any of FHIR’s forms: code, system|code, |code (a code with no system) or system| (any code in that system). Commas separate alternatives within one parameter, at most 100, and different parameters must all match. _count sets the page size, from 1 to 100, 25 by default. provider-specialty, provider-identifier, patient-type, location-address-city, location-address-state and location-physical-type are haau3’s own parameters, where FHIR R4 has none or reaches the value by more than one path. The others mean exactly what FHIR R4 defines, and schedule.service-type is FHIR’s chained form of schedule and the Schedule’s service-type, the one chain served. Most publishers state a service type on the Schedule and a specialty on the provider, not on each Slot, so schedule.service-type and provider-specialty are usually the ones to send.

Codes to search with

Two value sets on the terminology service list every code these searches can be sent, as the publishers send them. Expand one with ValueSet/$expand to fill a pick-list, then send an entry as system|code:
Each code stays in its publisher’s own code system, and none is mapped to another, so a search for one publisher’s code finds that publisher’s Slots. To reach several publishers, send several codes, separated by commas. Every code comes back when count is not sent; a code with no system is not listed, and a search still finds it as |code.

When you say less

With no status, a search returns free Slots, and with no start, Slots starting from now. Each applies on its own: status=busy still means from now. The self link shows both as the search applied them. A Slot marked as not accepting patients is never served: no search returns one, and a read of one answers 404.

Including the Schedule, Location and provider

A Slot search’s matches are Slots, so only Slot:schedule applies to them; the other three follow what the Bundle already holds and are sent with :iterate. Sent without it, each returns a 400 saying so. An include naming its target’s type, such as Schedule:actor:Location, returns a 400 naming the include to send, which brings every type. Any other include, and _revinclude, is refused by name.

Paging

For the next page, follow the next link exactly as it is given. Its page cursor is opaque and belongs to the one search: sent with other parameters, it returns a 400. Pages are cut by the last Slot’s start and id, so a page neither skips nor repeats a Slot when a feed changes between requests. _sort, _total, _summary and _elements are refused by name.

Find schedules

A Schedule is one provider at one place for one service: the thing a publisher’s Slots belong to. Schedules of one provider, found by NPI, with each Schedule’s Location and provider:
You get a searchset Bundle: the matching Schedules (search.mode match) in order of id, then the resources you included, each once. total counts the Schedules only. Paging works as for Slots, cut by the last Schedule’s id. A Schedule search does not look at its Slots. A Schedule matches whether or not it has a free Slot ahead, and there is no slot count or next available time on it. To find open Slots, search Slot, with _include=Slot:schedule for each one’s Schedule; to list one Schedule’s Slots, search Slot with schedule=Schedule/{id}. status, start, appointment-type, patient-type and schedule are a Slot’s parameters, and on a Schedule search each returns a 400 saying so. service-type, specialty and _source mean exactly what FHIR R4 defines; the others are haau3’s own. actor, active and service-category are not served, and each returns a 400 saying what to send instead.

Read one

A Slot is read the same way, at Slot/{id}, and a publisher’s Location at Location/Location-scheduling-{32 hexadecimal characters}, as an included resource’s fullUrl names it. A Slot is served while its publisher lists it, whatever its status or start.

Several lookups in one request

Slot and Schedule searches and reads can be sent in a batch Bundle to the base, beside any other service’s, each entry answered as it would be alone. A batch carries at most 100 entries and has 60 seconds. An entry’s 503 carries no Retry-After: send that entry again after a few seconds.

Errors

Every error is a FHIR OperationOutcome. The statuses every service shares, among them 401, 405, 406, 429 and 500, are on Errors, limits and request ids. An empty result means no Slot or Schedule matched. Its total is 0 and it has no entry, as FHIR’s JSON has no empty arrays. It never means the store could not be asked: then you get a 503.

Data source

Every resource is a SMART Scheduling Links publisher’s own, as it passed the guide’s profiles, with a new id, the publisher’s own id kept in identifier under the address its feed is published at, and that address with the type and id in meta.source. A reference to a resource not served here, such as a publisher’s Organization, points back to the publisher’s feed. Each resource carries meta.lastUpdated, when its content last changed, and the lastSourceSync extension on meta, the last time its publisher’s feed was confirmed current. Everything else on meta is the publisher’s, including a test-data label. Scheduling data is about providers and their availability, never patients.