curl "https://api.haau3.com/v1/fhir/r4/Schedule?provider-identifier=http://hl7.org/fhir/sid/us-npi%7C2900000227&_include=Schedule:actor&_include:iterate=PractitionerRole:practitioner&_include:iterate=HealthcareService:location" \
-H "Authorization: Bearer $HAAU3_API_KEY"import { Haau3 } from "@haau3/sdk";
const haau3 = new Haau3(); // reads HAAU3_API_KEY
const bundle = await haau3.searchSchedule({
"provider-identifier": "http://hl7.org/fhir/sid/us-npi|2900000227",
_include: "Schedule:actor",
"_include:iterate": ["PractitionerRole:practitioner", "HealthcareService:location"],
});
console.log(bundle.entry?.length ?? 0);
from haau3 import Haau3
client = Haau3() # reads HAAU3_API_KEY
bundle = client.search_schedule(
provider_identifier="http://hl7.org/fhir/sid/us-npi|2900000227",
include="Schedule:actor",
include_iterate=["PractitionerRole:practitioner", "HealthcareService:location"],
)
print(len(bundle.get("entry", [])))
package main
import (
"context"
"fmt"
"log"
"github.com/haau3/haau3-go"
)
func main() {
ctx := context.Background()
client, err := haau3.NewClient() // reads HAAU3_API_KEY
if err != nil {
log.Fatal(err)
}
bundle, err := client.SearchSchedule(ctx, haau3.SearchScheduleParams{ProviderIdentifier: new("http://hl7.org/fhir/sid/us-npi|2900000227"), Include: []string{"Schedule:actor"}, IncludeIterate: []string{"PractitionerRole:practitioner", "HealthcareService:location"}})
if err != nil {
log.Fatal(err)
}
fmt.Println(len(bundle.Entry))
}
{
"resourceType": "Bundle",
"type": "searchset",
"total": 1,
"link": [
{
"relation": "self",
"url": "https://api.haau3.com/v1/fhir/r4/Schedule?provider-identifier=http%3A%2F%2Fhl7.org%2Ffhir%2Fsid%2Fus-npi%7C2900000227&_include=Schedule%3Aactor&_include:iterate=PractitionerRole%3Apractitioner&_include:iterate=HealthcareService%3Alocation&_count=25"
}
],
"entry": [
{
"fullUrl": "https://api.haau3.com/v1/fhir/r4/Schedule/e859c18cc8cc1a6ab1c9b7b63c5c60a1",
"resource": {
"id": "e859c18cc8cc1a6ab1c9b7b63c5c60a1",
"meta": {
"source": "https://api.haau3.com/scheduling/Schedule/sched-haau3-radiology",
"security": [
{
"code": "HTEST",
"system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
"display": "test health data"
}
],
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/lastSourceSync",
"valueDateTime": "2026-11-24T00:01:47.571Z"
}
],
"lastUpdated": "2026-11-23T03:58:55.936Z"
},
"actor": [
{
"reference": "Location/Location-scheduling-a6c987ccde51c74f24d100fffbc7124d"
},
{
"reference": "PractitionerRole/PractitionerRole-scheduling-c56a5082f9e86dd25a0325e925d6bf82"
}
],
"identifier": [
{
"value": "sched-haau3-radiology",
"system": "https://api.haau3.com/scheduling/"
}
],
"serviceType": [
{
"text": "Diagnostic Radiology/Xray/CT/Fluoroscopy",
"coding": [
{
"code": "209",
"system": "http://terminology.hl7.org/CodeSystem/service-type",
"display": "Diagnostic Radiology/Xray/CT/Fluoroscopy"
}
]
}
],
"resourceType": "Schedule"
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://api.haau3.com/v1/fhir/r4/Location/Location-scheduling-a6c987ccde51c74f24d100fffbc7124d",
"resource": {
"id": "Location-scheduling-a6c987ccde51c74f24d100fffbc7124d",
"meta": {
"source": "https://api.haau3.com/scheduling/Location/loc-haau3-imaging",
"security": [
{
"code": "HTEST",
"system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
"display": "test health data"
}
],
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/lastSourceSync",
"valueDateTime": "2026-11-24T00:01:47.571Z"
}
],
"lastUpdated": "2026-11-23T03:58:55.936Z"
},
"name": "haau3 Cambridge Imaging Center",
"status": "active",
"address": {
"city": "Cambridge",
"line": [
"55 Kendall Square"
],
"state": "MA",
"postalCode": "02142"
},
"telecom": [
{
"value": "+1-617-555-0188",
"system": "phone"
},
{
"value": "https://haau3.com/locations/imaging",
"system": "url"
}
],
"position": {
"latitude": 42.362611,
"longitude": -71.0876102
},
"identifier": [
{
"value": "loc-haau3-imaging",
"system": "https://haau3.com/synthetic/location"
},
{
"value": "loc-haau3-imaging",
"system": "https://api.haau3.com/scheduling/"
}
],
"description": "Ground floor, with a step-free entrance.",
"physicalType": {
"coding": [
{
"code": "ph",
"system": "http://hl7.org/fhir/uv/smart-scheduling-links/CodeSystem/temporary",
"display": "Physical"
}
]
},
"resourceType": "Location"
},
"search": {
"mode": "include"
}
},
{
"fullUrl": "https://api.haau3.com/v1/fhir/r4/Practitioner/Practitioner-scheduling-9e042d6421d98d92b6944395e7d1ae8d",
"resource": {
"id": "Practitioner-scheduling-9e042d6421d98d92b6944395e7d1ae8d",
"meta": {
"source": "https://api.haau3.com/scheduling/Practitioner/sample-dr-wei-example",
"profile": [
"http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner",
"http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner|6.1.0"
],
"security": [
{
"code": "HTEST",
"system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
"display": "test health data"
}
],
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/lastSourceSync",
"valueDateTime": "2026-11-24T00:01:47.571Z"
}
],
"lastUpdated": "2026-11-23T03:58:55.936Z"
},
"name": [
{
"text": "Dr. Wei Example",
"given": [
"Wei"
],
"family": "Example",
"prefix": [
"Dr."
]
}
],
"active": true,
"gender": "female",
"extension": [
{
"url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race",
"extension": [
{
"url": "ombCategory",
"valueCoding": {
"code": "2028-9",
"system": "urn:oid:2.16.840.1.113883.6.238",
"display": "Asian"
}
},
{
"url": "text",
"valueString": "Asian"
}
]
},
{
"url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity",
"extension": [
{
"url": "ombCategory",
"valueCoding": {
"code": "2186-5",
"system": "urn:oid:2.16.840.1.113883.6.238",
"display": "Not Hispanic or Latino"
}
},
{
"url": "text",
"valueString": "Not Hispanic or Latino"
}
]
}
],
"identifier": [
{
"value": "sample-dr-wei-example",
"system": "https://haau3.com/synthetic/practitioner"
},
{
"value": "2900000227",
"system": "http://hl7.org/fhir/sid/us-npi"
},
{
"value": "sample-dr-wei-example",
"system": "https://api.haau3.com/scheduling/"
}
],
"resourceType": "Practitioner",
"communication": [
{
"text": "English",
"coding": [
{
"code": "en",
"system": "urn:ietf:bcp:47",
"display": "English"
}
]
},
{
"text": "Chinese",
"coding": [
{
"code": "zh",
"system": "urn:ietf:bcp:47",
"display": "Chinese"
}
]
}
],
"qualification": [
{
"code": {
"text": "Doctor of Medicine",
"coding": [
{
"code": "MD",
"system": "http://terminology.hl7.org/CodeSystem/v2-0360",
"display": "Doctor of Medicine"
}
]
}
}
]
},
"search": {
"mode": "include"
}
},
{
"fullUrl": "https://api.haau3.com/v1/fhir/r4/PractitionerRole/PractitionerRole-scheduling-c56a5082f9e86dd25a0325e925d6bf82",
"resource": {
"id": "PractitionerRole-scheduling-c56a5082f9e86dd25a0325e925d6bf82",
"meta": {
"source": "https://api.haau3.com/scheduling/PractitionerRole/prole-haau3-radiology",
"security": [
{
"code": "HTEST",
"system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
"display": "test health data"
}
],
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/lastSourceSync",
"valueDateTime": "2026-11-24T00:01:47.571Z"
}
],
"lastUpdated": "2026-11-23T03:58:55.936Z"
},
"active": true,
"location": [
{
"reference": "Location/Location-scheduling-a6c987ccde51c74f24d100fffbc7124d"
}
],
"specialty": [
{
"text": "Diagnostic Radiology Physician",
"coding": [
{
"code": "2085R0202X",
"system": "http://nucc.org/provider-taxonomy",
"display": "Diagnostic Radiology Physician"
}
]
}
],
"identifier": [
{
"value": "prole-haau3-radiology",
"system": "https://api.haau3.com/scheduling/"
}
],
"practitioner": {
"display": "Dr. Wei Example",
"reference": "Practitioner/Practitioner-scheduling-9e042d6421d98d92b6944395e7d1ae8d"
},
"resourceType": "PractitionerRole"
},
"search": {
"mode": "include"
}
}
]
}Find schedules
Search the Schedules of SMART Scheduling Links publishers: each the provider, the place and the service a publisher’s Slots belong to. The answer is a FHIR searchset Bundle whose matches are Schedules, each as its publisher published it (the guide’s Schedule profile), in order of id. Each Schedule’s Location and provider come in the same Bundle when asked for: _include=Schedule:actor, then _include:iterate=PractitionerRole:practitioner and _include:iterate=HealthcareService:location. Each included resource comes once, and total counts the Schedules only.
A Schedule search does not reach its Slots: a Schedule matches whether or not it has a free Slot ahead, and nothing here filters by a Slot’s time, status or patient type. To find open Slots, search Slots, with _include=Slot:schedule for each one’s Schedule. Follow the next link to continue: its cursor belongs to the one search.
Every other parameter is refused by name rather than ignored, so a search never quietly answers a different question than the one asked. _sort, _total, _summary, _elements and _revinclude are not served.
curl "https://api.haau3.com/v1/fhir/r4/Schedule?provider-identifier=http://hl7.org/fhir/sid/us-npi%7C2900000227&_include=Schedule:actor&_include:iterate=PractitionerRole:practitioner&_include:iterate=HealthcareService:location" \
-H "Authorization: Bearer $HAAU3_API_KEY"import { Haau3 } from "@haau3/sdk";
const haau3 = new Haau3(); // reads HAAU3_API_KEY
const bundle = await haau3.searchSchedule({
"provider-identifier": "http://hl7.org/fhir/sid/us-npi|2900000227",
_include: "Schedule:actor",
"_include:iterate": ["PractitionerRole:practitioner", "HealthcareService:location"],
});
console.log(bundle.entry?.length ?? 0);
from haau3 import Haau3
client = Haau3() # reads HAAU3_API_KEY
bundle = client.search_schedule(
provider_identifier="http://hl7.org/fhir/sid/us-npi|2900000227",
include="Schedule:actor",
include_iterate=["PractitionerRole:practitioner", "HealthcareService:location"],
)
print(len(bundle.get("entry", [])))
package main
import (
"context"
"fmt"
"log"
"github.com/haau3/haau3-go"
)
func main() {
ctx := context.Background()
client, err := haau3.NewClient() // reads HAAU3_API_KEY
if err != nil {
log.Fatal(err)
}
bundle, err := client.SearchSchedule(ctx, haau3.SearchScheduleParams{ProviderIdentifier: new("http://hl7.org/fhir/sid/us-npi|2900000227"), Include: []string{"Schedule:actor"}, IncludeIterate: []string{"PractitionerRole:practitioner", "HealthcareService:location"}})
if err != nil {
log.Fatal(err)
}
fmt.Println(len(bundle.Entry))
}
{
"resourceType": "Bundle",
"type": "searchset",
"total": 1,
"link": [
{
"relation": "self",
"url": "https://api.haau3.com/v1/fhir/r4/Schedule?provider-identifier=http%3A%2F%2Fhl7.org%2Ffhir%2Fsid%2Fus-npi%7C2900000227&_include=Schedule%3Aactor&_include:iterate=PractitionerRole%3Apractitioner&_include:iterate=HealthcareService%3Alocation&_count=25"
}
],
"entry": [
{
"fullUrl": "https://api.haau3.com/v1/fhir/r4/Schedule/e859c18cc8cc1a6ab1c9b7b63c5c60a1",
"resource": {
"id": "e859c18cc8cc1a6ab1c9b7b63c5c60a1",
"meta": {
"source": "https://api.haau3.com/scheduling/Schedule/sched-haau3-radiology",
"security": [
{
"code": "HTEST",
"system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
"display": "test health data"
}
],
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/lastSourceSync",
"valueDateTime": "2026-11-24T00:01:47.571Z"
}
],
"lastUpdated": "2026-11-23T03:58:55.936Z"
},
"actor": [
{
"reference": "Location/Location-scheduling-a6c987ccde51c74f24d100fffbc7124d"
},
{
"reference": "PractitionerRole/PractitionerRole-scheduling-c56a5082f9e86dd25a0325e925d6bf82"
}
],
"identifier": [
{
"value": "sched-haau3-radiology",
"system": "https://api.haau3.com/scheduling/"
}
],
"serviceType": [
{
"text": "Diagnostic Radiology/Xray/CT/Fluoroscopy",
"coding": [
{
"code": "209",
"system": "http://terminology.hl7.org/CodeSystem/service-type",
"display": "Diagnostic Radiology/Xray/CT/Fluoroscopy"
}
]
}
],
"resourceType": "Schedule"
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://api.haau3.com/v1/fhir/r4/Location/Location-scheduling-a6c987ccde51c74f24d100fffbc7124d",
"resource": {
"id": "Location-scheduling-a6c987ccde51c74f24d100fffbc7124d",
"meta": {
"source": "https://api.haau3.com/scheduling/Location/loc-haau3-imaging",
"security": [
{
"code": "HTEST",
"system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
"display": "test health data"
}
],
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/lastSourceSync",
"valueDateTime": "2026-11-24T00:01:47.571Z"
}
],
"lastUpdated": "2026-11-23T03:58:55.936Z"
},
"name": "haau3 Cambridge Imaging Center",
"status": "active",
"address": {
"city": "Cambridge",
"line": [
"55 Kendall Square"
],
"state": "MA",
"postalCode": "02142"
},
"telecom": [
{
"value": "+1-617-555-0188",
"system": "phone"
},
{
"value": "https://haau3.com/locations/imaging",
"system": "url"
}
],
"position": {
"latitude": 42.362611,
"longitude": -71.0876102
},
"identifier": [
{
"value": "loc-haau3-imaging",
"system": "https://haau3.com/synthetic/location"
},
{
"value": "loc-haau3-imaging",
"system": "https://api.haau3.com/scheduling/"
}
],
"description": "Ground floor, with a step-free entrance.",
"physicalType": {
"coding": [
{
"code": "ph",
"system": "http://hl7.org/fhir/uv/smart-scheduling-links/CodeSystem/temporary",
"display": "Physical"
}
]
},
"resourceType": "Location"
},
"search": {
"mode": "include"
}
},
{
"fullUrl": "https://api.haau3.com/v1/fhir/r4/Practitioner/Practitioner-scheduling-9e042d6421d98d92b6944395e7d1ae8d",
"resource": {
"id": "Practitioner-scheduling-9e042d6421d98d92b6944395e7d1ae8d",
"meta": {
"source": "https://api.haau3.com/scheduling/Practitioner/sample-dr-wei-example",
"profile": [
"http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner",
"http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner|6.1.0"
],
"security": [
{
"code": "HTEST",
"system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
"display": "test health data"
}
],
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/lastSourceSync",
"valueDateTime": "2026-11-24T00:01:47.571Z"
}
],
"lastUpdated": "2026-11-23T03:58:55.936Z"
},
"name": [
{
"text": "Dr. Wei Example",
"given": [
"Wei"
],
"family": "Example",
"prefix": [
"Dr."
]
}
],
"active": true,
"gender": "female",
"extension": [
{
"url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race",
"extension": [
{
"url": "ombCategory",
"valueCoding": {
"code": "2028-9",
"system": "urn:oid:2.16.840.1.113883.6.238",
"display": "Asian"
}
},
{
"url": "text",
"valueString": "Asian"
}
]
},
{
"url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity",
"extension": [
{
"url": "ombCategory",
"valueCoding": {
"code": "2186-5",
"system": "urn:oid:2.16.840.1.113883.6.238",
"display": "Not Hispanic or Latino"
}
},
{
"url": "text",
"valueString": "Not Hispanic or Latino"
}
]
}
],
"identifier": [
{
"value": "sample-dr-wei-example",
"system": "https://haau3.com/synthetic/practitioner"
},
{
"value": "2900000227",
"system": "http://hl7.org/fhir/sid/us-npi"
},
{
"value": "sample-dr-wei-example",
"system": "https://api.haau3.com/scheduling/"
}
],
"resourceType": "Practitioner",
"communication": [
{
"text": "English",
"coding": [
{
"code": "en",
"system": "urn:ietf:bcp:47",
"display": "English"
}
]
},
{
"text": "Chinese",
"coding": [
{
"code": "zh",
"system": "urn:ietf:bcp:47",
"display": "Chinese"
}
]
}
],
"qualification": [
{
"code": {
"text": "Doctor of Medicine",
"coding": [
{
"code": "MD",
"system": "http://terminology.hl7.org/CodeSystem/v2-0360",
"display": "Doctor of Medicine"
}
]
}
}
]
},
"search": {
"mode": "include"
}
},
{
"fullUrl": "https://api.haau3.com/v1/fhir/r4/PractitionerRole/PractitionerRole-scheduling-c56a5082f9e86dd25a0325e925d6bf82",
"resource": {
"id": "PractitionerRole-scheduling-c56a5082f9e86dd25a0325e925d6bf82",
"meta": {
"source": "https://api.haau3.com/scheduling/PractitionerRole/prole-haau3-radiology",
"security": [
{
"code": "HTEST",
"system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
"display": "test health data"
}
],
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/lastSourceSync",
"valueDateTime": "2026-11-24T00:01:47.571Z"
}
],
"lastUpdated": "2026-11-23T03:58:55.936Z"
},
"active": true,
"location": [
{
"reference": "Location/Location-scheduling-a6c987ccde51c74f24d100fffbc7124d"
}
],
"specialty": [
{
"text": "Diagnostic Radiology Physician",
"coding": [
{
"code": "2085R0202X",
"system": "http://nucc.org/provider-taxonomy",
"display": "Diagnostic Radiology Physician"
}
]
}
],
"identifier": [
{
"value": "prole-haau3-radiology",
"system": "https://api.haau3.com/scheduling/"
}
],
"practitioner": {
"display": "Dr. Wei Example",
"reference": "Practitioner/Practitioner-scheduling-9e042d6421d98d92b6944395e7d1ae8d"
},
"resourceType": "PractitionerRole"
},
"search": {
"mode": "include"
}
}
]
}Authorizations
A live platform API key (haau3_sk_live_…), sent as Authorization: Bearer <key>. It works for every service outside the Sandbox. Create one on the API keys page at https://platform.haau3.com.
Headers
An id of your own for this request, as a UUID. It comes back in the X-Correlation-Id header and is kept with haau3's record of the request. Any value that is not a UUID is ignored. See https://docs.haau3.com/errors#request-ids.
Query Parameters
The Schedule's own specialty, FHIR's Schedule.specialty. For a specialty the SMART Scheduling Links schedule-specialty extension or the provider states, use provider-specialty. Any of FHIR's token forms: code, system|code, |code (a code with no system) or system| (any code in that system), several separated by commas for any of them.
A specialty of the provider, as the Schedule states it (its own specialty or the SMART Scheduling Links schedule-specialty extension) or as the provider itself does (a PractitionerRole or HealthcareService the Schedule names). Any of FHIR's token forms: code, system|code, |code (a code with no system) or system| (any code in that system), several separated by commas for any of them.
An identifier, such as an NPI (http://hl7.org/fhir/sid/us-npi|1234567890), of the provider the Schedule names: a Practitioner, a PractitionerRole or the Practitioner behind it, or a HealthcareService, whichever the publisher used. Any of FHIR's token forms: code, system|code, |code (a code with no system) or system| (any code in that system), several separated by commas for any of them.
The physicalType of a Location the Schedule names, or of the Location of a HealthcareService it names: vi for a virtual one, from http://terminology.hl7.org/CodeSystem/location-physical-type. Any of FHIR's token forms: code, system|code, |code (a code with no system) or system| (any code in that system), several separated by commas for any of them.
PractitionerRole:practitioner adds the Practitioner behind each included role, and HealthcareService:location the Location of each included HealthcareService. Each needs _include=Schedule:actor, which may be sent here too.
1 - 3 elementsSchedule:actor, PractitionerRole:practitioner, HealthcareService:location Response
A searchset Bundle with total set: the matching Schedules, then the resources _include asked for.
A FHIR R4 Bundle.