Skip to content

Guides

Getting started

Which API to use, and the first call against each one.

Which API?

SunCharts EHR API SunCharts Connect API
Use it to Work with one practice's own EHR: charts, visits, scheduling, billing, FHIR. Build a branded app across clinics, with sign-in and clinical reads through a connected EHR.
Where it runs On each installation, at that practice's address. Hosted by SunCharts: sandbox and production.
Who grants access The practice owner registers your app; staff approve it. You create a sandbox app yourself. Production is issued after review.
Status Preview. Changes with the product. Version 1, additive changes only.

SunCharts EHR API

  1. Run an installation with synthetic data, or work with a practice that runs one. See Sandbox and test data.
  2. Have the practice owner register your application. They receive a client ID and a client secret, shown once.
  3. Send a staff member through the consent screen and exchange the code for a token. See Authentication.
  4. Call the API. A good first request is GET /fhir/metadata, which needs no token, then GET /fhir/Patient?_count=10.

Browse the endpoints in the EHR API reference.

SunCharts Connect API Partners

  1. Open the partner console at sandbox-api.suncharts.app/partners and create a sandbox account. Sign-in is by email link.
  2. Choose Create app and copy the client ID and client secret. The secret is shown once.
  3. Ask for a token and make a call:
curl https://sandbox-api.suncharts.app/oauth/token \
  -u "$CLIENT_ID:$CLIENT_SECRET" \
  -d grant_type=client_credentials -d scope="partner.read tenants.read"

curl https://sandbox-api.suncharts.app/api/v1/partner/me \
  -H "Authorization: Bearer $ACCESS_TOKEN"

Browse the endpoints in the Connect API reference, or use one of the SDKs listed on the overview.