/epic-callback.html which imports your clinical records.Epic is the clinical chart behind most large U.S. health systems (the "MyChart" backend). Its SMART-on-FHIR patient-access API returns the data a clinician sees — distinct from KP's payer/claims (EOB) API:
One Epic app works across thousands of Epic health systems. The member picks their org from Epic's endpoint directory; you authenticate against that org's FHIR server.
Auth: SMART on FHIR — OAuth 2.0 Authorization Code + PKCE (public client, no secret). Endpoints auto-discovered from {fhirBaseUrl}/.well-known/smart-configuration; Epic requires aud={fhirBaseUrl}.
Complement to KP: Epic gives the clinical truth (lab values, diagnoses, prescription orders); KP's EOB gives the claims/cost + fill history view.
openid fhirUser launch/patient offline_access patient/Patient.read patient/MedicationRequest.read patient/Observation.read patient/Condition.read patient/AllergyIntolerance.read patient/Immunization.readhttps://beyondmychart.com/epic-callback.html epic-config.js (replace REPLACE_WITH_EPIC_SANDBOX_CLIENT_ID); the Production Client ID goes to Netlify env EPIC_CLIENT_ID when wired.https://fhir.epic.com/interconnect-fhir-oauth/api/FHIR/R4 — test with Epic's sandbox patients (e.g. Camila Lopez, Derrick Lin; credentials in Epic's sandbox docs).