Epic FHIR API for Research Teams: How Data Access Works

The Epic FHIR API lets approved applications read structured clinical data from Epic electronic health records using the Fast Healthcare Interoperability Resources (FHIR) standard. For research teams, access works in three steps: register an app through Epic’s developer program, get each healthcare organization to approve and activate it, then pull data through user-facing SMART on FHIR launches, backend system access or bulk export, all under the organization’s own governance rules.
Why the Epic FHIR API matters for research
Epic is one of the most widely used electronic health record (EHR) systems in US hospitals, so its APIs shape how much clinical data research teams can reach in a standard way. US rules that followed the 21st Century Cures Act require certified EHRs to offer standardized FHIR APIs for individual and population-level access, built around the United States Core Data for Interoperability (USCDI). That has made FHIR the default route for structured data out of many health systems.
For researchers, this is a shift away from one-off database extracts that differ at every site. A study that relies on FHIR resources can, in principle, use the same data definitions across many Epic hospitals. In practice, access still depends on each organization’s approval, configuration and data quality, so it pays to understand how the pieces fit before planning a study around them.
How access to the Epic FHIR API works
Step 1: Register the application
Developers register their application through Epic’s developer resources, describe the data it needs and choose the access type. During registration you list the FHIR resources and scopes the app requests. Ask only for what the study needs; organizations review scope requests closely.
Step 2: Organization approval and activation
Registration alone does not grant access to any patient data. Each healthcare organization that runs Epic decides whether to enable the app in its own environment. Expect security reviews, data use agreements and sometimes an institutional review board or ethics approval for the study itself. This step usually takes longer than the technical work.
Step 3: Connect and authorize
Once activated, the app authenticates with OAuth 2.0. The choice of flow depends on who is using it:
- SMART on FHIR app launch. A clinician or patient launches the app and grants access in context. Useful for tools used during care, less so for population research.
- Backend services. A server-to-server connection with no user present, authorized with signed credentials. This suits scheduled research data pulls.
- Bulk data export. The FHIR Bulk Data Access specification lets an authorized client request all resources of chosen types for a defined group of patients as files. This is the most efficient way to build research cohorts.
What data you can get
Epic’s FHIR APIs expose common clinical resources that line up with USCDI. Typical research-relevant resources include Patient, Encounter, Condition, MedicationRequest, Observation (labs and vital signs), Procedure, AllergyIntolerance, Immunization and DiagnosticReport. Availability of each resource, and of specific fields, depends on the organization’s Epic version and configuration.
Some data is harder to reach through standard FHIR: free-text notes in full, imaging, detailed oncology staging, research-specific flowsheet rows and data created by custom local builds. Plan for gaps and confirm with each site which elements are populated before committing to a study design.
Comparing Epic data access routes for research
| Route | How it works | Strengths | Limits for research |
|---|---|---|---|
| SMART on FHIR launch | User launches app, grants access in context | Real-time, patient or clinician facing | One patient at a time; not built for cohorts |
| Backend FHIR access | Server-to-server calls with signed credentials | Automated, scheduled pulls | Many calls for large groups; rate limits apply |
| Bulk FHIR export | Export all chosen resources for a patient group as files | Efficient for cohorts and refreshes | Needs a defined group and site configuration |
| Site database extract | Organization’s analysts extract from its reporting database | Can reach data FHIR does not expose | Formats differ by site; harder to reuse |
| Federated analysis at the site | Analysis runs inside the organization’s environment | Data never leaves the source; same code at every site | Needs a secure environment deployed at each site |
Refreshes, limits and change over time
A research data pull is rarely a one-time event. Cohorts grow, follow-up continues and new results arrive, so plan how often data is refreshed and how changes are detected. Bulk export can be repeated on a schedule, and many FHIR servers support requesting only resources changed since a given time, which keeps refreshes light. Confirm with each site which options it supports.
Expect limits. Organizations set rate limits and schedule large exports outside busy clinical hours to protect system performance. Build retry logic and monitoring into your pipeline, and agree a refresh window with each site rather than pulling whenever it suits the study.
Finally, keep track of change on the source side. Epic upgrades, local configuration changes and new coding practices can shift what a resource contains. Version your mappings, record the date of each extract and rerun quality checks after every refresh.
Security controls on the research side
Once data leaves an Epic organization, your team is responsible for protecting it. Store credentials in a managed secrets service, restrict who can run extracts, encrypt data at rest and in transit, and keep a log of every access. Limit copies: each extra copy of patient-level data is another place that has to be secured, audited and eventually deleted. The safest copy is the one that is never made.
Turning FHIR output into research-ready data
FHIR is designed for exchanging records, not for cohort analysis. Most research teams convert FHIR output into a research model such as the OMOP Common Data Model, where conditions, drugs and measurements sit in tables built for population queries. The conversion is also where terminology work happens: mapping local codes to SNOMED CT, LOINC and RxNorm so results compare across sites. Our OMOP CDM guide explains the target model, and our comparison of FHIR, HL7 v2 and CDA covers the older formats some sites still use alongside FHIR.
Check data quality at each site. Units, coding habits and completeness vary between Epic organizations because each one configures its system differently. Track coverage of required elements per site and treat low coverage as a reason to adjust the study, not as noise to ignore.
Governance: the part that decides timelines
Technical access is rarely the bottleneck. The questions that take time are legal and ethical: what is the legal basis for use, who approves the study, what leaves the organization and in what form. Organizations are more willing to say yes when raw patient records stay inside their walls.
A federated design addresses that directly. Instead of exporting records from each Epic site to a central store, the analysis runs inside each organization’s environment, next to its FHIR data, and only approved aggregate results come back after an output check. A Trusted Research Environment built for federation supports this model and keeps a full audit trail of every analysis.
Practical next steps for research teams
- Define the minimum data set. List the FHIR resources and fields the study needs, and nothing more.
- Talk to sites early. Ask each organization about its approval process, API access types and bulk export support.
- Prefer backend or bulk access for cohorts. SMART launches suit clinical tools, not population studies.
- Plan the conversion. Decide how FHIR output becomes analysis-ready data and who owns terminology mapping.
- Design for data staying put. Where sites cannot export records, plan analyses that run at each site and return only approved results.
Frequently asked questions
Can researchers use the Epic FHIR API?
Yes, with approval. An app must be registered and then enabled by each healthcare organization, which also approves the study and how data is used.
Does registering an app give access to patient data?
No. Registration only describes the app. Each organization decides whether to activate it in its own Epic environment.
What is the best access route for population research?
Bulk FHIR export or backend services. SMART on FHIR launches work one patient at a time and suit clinical tools better.
Which version of FHIR does Epic support?
Epic’s current APIs are based on FHIR R4, in line with US interoperability requirements. Check each organization’s configuration for specific resources.
Is all Epic data available through FHIR?
No. Core clinical data is available, but free-text notes, imaging and custom local data may not be. Confirm coverage with each site.
Can we analyze Epic data without exporting it?
Yes. In a federated setup the analysis runs inside each organization’s environment and only approved aggregate results leave it.
