1upHealth makes it possible to query doctor (FHIR Practitioner) and provider resources that are generated from open data sources. We have done the work to parse and format open data from the US government and online sources and make them available via the standard FHIR API so you can incorporate that information seamlessly into your application. This is a better doctor API experience as 1upHealth does all the work to keep information up to date behind the scenes.
To query any open data just append _public=true
parameter to any FHIR endpoint. Like any other request against our platform, you must have a valid access_token to query our public data. Here's an example of how you could find a doctor (FHIR provider) by name.
curl -XGET 'https://api.1up.health/fhir/dstu2/Practitioner?_public=true&name=Sonia' \
-H 'Authorization: Bearer access_token'
The response is a FHIR Bundle with all the matching providers.
If you have the NPI of a doctor or practitioner you can also look it up using that npi number as the resource id.
curl -XGET 'https://api.1up.health/fhir/dstu2/Practitioner/1234567890?_public=true' \
-H 'Authorization: Bearer access_token'
Any other doctor or practitioner FHIR search parameters are allowed for these queries. If you query without the _public=true
parameter, then you'll only get those resources that your user has connected from external systems or your app has posted to store on 1up's FHIR server.