athenahealth is a cloud-based healthcare software company. Its athenaOne platform helps medical practices manage their scheduling, clinical records, and medical billing.
Hevo uses the athenahealth Platform API and its FHIR R4 API to replicate the departments, appointments, claims, claim transactions, and clinical records of your athenaOne practice to the Destination of your choice. To ingest data, you must provide Hevo with the practice ID of your practice, and the client ID and client secret of an athenahealth API app that has access to the practice. Hevo uses these credentials to obtain an access token from athenahealth and reads the data of your practice with it.
Supported Features
| Feature Name |
Supported |
| Capture deletes |
Yes (only for the departments object) |
| History mode |
No |
| Custom data (user-configured tables & fields) |
No |
| Data blocking (skip objects and fields) |
Yes |
| Resync (objects and Pipelines) |
Yes |
| API configurable |
Yes |
Prerequisites
-
An active athenaOne practice exists from which data is to be ingested.
-
A 2-legged OAuth API app exists in the athenahealth Developer Portal, and it has access to your practice.
-
The practice ID of your athenaOne practice is available.
-
The required credentials are available to provide Hevo access to your athenahealth data.
Obtain the athenahealth Credentials
Hevo connects to athenahealth through a 2-legged OAuth (system-to-system) API app that you create in the athenahealth Developer Portal. The app uses the client credentials flow, so Hevo reads the data of your practice without signing in as a user.
athenahealth issues separate apps and credentials for the Preview (sandbox) and Production environments. Credentials of one environment do not work in the other.
Create an API app
Perform the following steps to create an API app and obtain its client ID and client secret:
-
Sign up for or log in to the athenahealth Developer Portal.
-
Click Create a New App.
-
Select 2-Legged OAuth as the type of app, as Hevo reads data from a backend service without a user signing in.
-
Specify the name and description of the app, and create it.
-
Copy the Client ID and the Client Secret of the app, and save them securely like any other password. Use these values while configuring your athenahealth Source in Hevo.
An app in the Preview environment has access to the athenahealth sandbox practices, such as the practice 195900. To read the data of your live practice, the app needs access to the Production environment. athenahealth grants production access after it reviews the app, and your practice must enable the app in its athenaOne practice settings before the app can read the practice data. The claims APIs are not part of the athenahealth certified APIs, so reading the claims and claim_transactions objects also requires an athenahealth Platform Services contract. Contact your athenahealth Customer Success Manager to request production access for the app.
Obtain the Practice ID
The practice ID identifies your athenaOne practice in every API request. Perform the following steps to obtain it:
-
Log in to athenaOne.
-
Click your user name in the top-right corner. The number shown in parentheses next to your practice name is your practice ID.
Scopes required by Hevo
Hevo requests the scopes that you specify in the OAuth scopes field. The app must be granted each of these scopes. The following table lists the scope required for each object:
| Scope |
Objects |
| athena/service/Athenanet.MDP.* |
departments, appointments, claims, claim_transactions, and patient_index. Hevo also uses this scope to test the connection. |
| system/Patient.read |
fhir_patient |
| system/Encounter.read |
fhir_encounter |
| system/Condition.read |
fhir_condition |
| system/Observation.read |
fhir_observation |
| system/DiagnosticReport.read |
fhir_diagnostic_report |
| system/Procedure.read |
fhir_procedure |
| system/Immunization.read |
fhir_immunization |
| system/MedicationRequest.read |
fhir_medication_request |
| system/MedicationDispense.read |
fhir_medication_dispense |
| system/Coverage.read |
fhir_coverage |
| system/ServiceRequest.read |
fhir_service_request |
| system/DocumentReference.read |
fhir_document_reference |
Note: Add the FHIR scopes only for the FHIR objects that you want to ingest, and deselect the other FHIR objects while creating the Pipeline.
If the client secret configured in the Pipeline is changed or revoked in athenahealth, Hevo cannot authenticate with the Source. As a result, all active jobs for the Pipeline fail, and no data is replicated. To resume data replication, modify the Source configuration in the Pipeline with a valid client secret.
Perform the following steps to configure your athenahealth Source:
-
Click Pipelines in the Navigation Bar.
-
Click + Create Pipeline in the Pipelines List View.
-
On the Select Source Type page, select Athena Health.
-
On the Select Destination Type page, select the type of Destination you want to use.
-
In the Configure Source screen, specify the following:

-
Source Name: A unique name for your Source, not exceeding 255 characters. For example, Athena Health Source.
-
In the Connect to your Athena Health practice section, specify the following:
-
Environment: The athenahealth API environment from which you want to ingest data. Select Production for your live practice, or Preview (sandbox) for the athenahealth test practice. You cannot change this value after the Pipeline is created.
-
Practice ID: The ID of your athenaOne practice. You cannot change this value after the Pipeline is created.
-
Client ID: The client ID of your athenahealth API app.
-
Client Secret: The client secret of your athenahealth API app. This value is masked in the UI, and you can update it after the Pipeline is created.
-
Start date (yyyy-MM-dd): The date from which Hevo ingests data, in the yyyy-MM-dd format. For example, 2026-01-01. Hevo ingests the appointments dated on or after this date, the claims created on or after this date, and the FHIR records of the patients of these appointments.
-
OAuth scopes: The scopes that Hevo requests for the access token, separated by spaces. The default value, athena/service/Athenanet.MDP.*, is enough for the departments, appointments, claims, and claim transactions. To also ingest FHIR objects, add the scope of each FHIR object that you want to ingest. For example, athena/service/Athenanet.MDP.* system/Patient.read system/Encounter.read. Every scope that you specify must be granted to your app. Otherwise, athenahealth rejects the connection.
-
Click Connect Account. Hevo obtains an access token from athenahealth using the client ID, client secret, and scopes that you specified.
-
Click Test & Continue to test the connection to your athenahealth Source. Once the test is successful, you can proceed to set up your Destination.
When you click Test & Continue, Hevo calls the athenahealth ping API of your practice with the access token. The test fails if the credentials are not valid, if the app does not have access to the practice, or if the environment does not match your practice.
Data Replication
Hevo replicates data for all the objects selected on the Configure Objects page during Pipeline creation. By default, all supported objects and their available fields are selected. However, you can modify this selection while creating or editing the Pipeline.
Hevo ingests the following types of data from your Source objects:
-
Historical Data: The first run of the Pipeline ingests the data of the selected objects from the start date that you specified, and loads it into the Destination.
-
Incremental Data: Once the historical load is complete, new and updated records for objects are ingested as per the sync frequency.
The following table lists how Hevo ingests data for each object in subsequent Pipeline runs:
| Ingestion Type |
Objects |
| Incremental |
- appointments (detected using the time each appointment was last modified) |
| Full Load |
- departments
|
| All records from the start date, in each run |
- claims - claim_transactions - patient_index - All the FHIR objects |
For the objects that Hevo ingests from the start date in each run, Hevo updates the existing records in the Destination and adds the new ones.
Hevo reads the appointments, claims, and FHIR data of each department of your practice. Hevo reads the FHIR records of each object separately for the patient of every appointment in the patient_index object. As a result, each Pipeline run makes one API request for each appointment and each selected FHIR object.
athenahealth limits the number of API calls that an app can make in a day. If this limit is exceeded, athenahealth returns a rate limit error until the limit resets. For other rate limit errors and temporary server errors, Hevo waits five seconds and tries the request up to five times in total. To understand how Hevo handles such scenarios, read Handling Rate Limit Exceptions.
Note: You can create a Pipeline with this Source only using the Merge load mode.
Schema and Primary Keys
Hevo uses the following schema to upload the records in the Destination. For a detailed view of the objects, fields, and relationships, click the ERD.
Data Model
The following is the list of tables (objects) that are created at the Destination when you run the Pipeline:
| Object |
Description |
| appointments |
Contains the appointments booked in each department of your practice, including the cancelled appointments, such as the patient, provider, appointment type, status, date, start time, duration, and encounter details of each appointment. |
| claims |
Contains the claims created in each department of your practice, such as the patient, appointment, providers, service date, creation date, and charge amount of each claim.
This object has a child object, claim_transactions. |
| claim_transactions |
Contains the transactions of each claim, such as the transaction type, dates, procedure code, units, payer, amount, payments, adjustments, and outstanding amount. |
| departments |
Contains the departments of your practice, such as the name, address, contact details, time zone, provider group, and place of service of each department. |
| patient_index |
Contains the appointment ID, patient ID, department ID, and date of each appointment that is not cancelled. Hevo uses this object to read the FHIR records of each patient.
This object has the FHIR objects as its child objects. |
| fhir_patient |
Contains the demographic details of each patient, such as the name, gender, birth date, and contact details. |
| fhir_encounter |
Contains the encounters of each patient from the start date. |
| fhir_condition |
Contains the conditions, problems, and diagnoses of each patient. |
| fhir_observation |
Contains the laboratory results, vital signs, and social history observations of each patient from the start date. |
| fhir_diagnostic_report |
Contains the diagnostic reports of each patient from the start date. |
| fhir_procedure |
Contains the procedures performed on each patient from the start date. |
| fhir_immunization |
Contains the immunizations of each patient from the start date. |
| fhir_medication_request |
Contains the medication orders of each patient authored on or after the start date. |
| fhir_medication_dispense |
Contains the medications dispensed to each patient from the start date. |
| fhir_coverage |
Contains the insurance coverage details of each patient. |
| fhir_service_request |
Contains the service requests, such as orders and referrals, of each patient authored on or after the start date. |
| fhir_document_reference |
Contains the references to the clinical documents of each patient from the start date. |
Each FHIR object contains the ID, resource type, last updated time, and status of each record, and the complete FHIR resource in the resource field in the JSON format.
Read the detailed Hevo documentation for the following related topics:
Handling of Deletes
Hevo uses a full data refresh approach to capture delete actions for the departments object. During each Pipeline run, Hevo compares the data fetched from the Source object with the data present in the Destination table. If a record exists in the Destination but is no longer returned by the Source, the record is marked as deleted by setting the value of the metadata column __hevo__marked_deleted to True.
The other objects do not support capturing deletes. Records deleted in athenahealth remain unchanged in the Destination. Cancelled appointments are not deleted in athenahealth. Hevo ingests them with their cancelled status in the appointments object, and does not add them to the patient_index object.
Source Considerations
-
athenahealth limits the number of API calls that each app can make in a day. As each Pipeline run makes one API request for each appointment and each selected FHIR object, a Pipeline with many appointments and FHIR objects can use up this limit. When the limit is used up, the Pipeline cannot ingest data until athenahealth resets it. To reduce the number of API calls, select only the FHIR objects that you need, and use a less frequent sync schedule. The API calls of all the applications that use the same app count toward this limit.
-
If the app does not have access to a FHIR resource of a patient, athenahealth returns an error for it. Hevo does not load any record for that patient in the FHIR object, and continues with the other patients and objects.
-
Hevo ingests the FHIR records of only the patients who have an appointment, that is not cancelled, on or after the start date.
Limitations
- Hevo does not ingest the patients of your practice from the athenahealth Platform API. Patient details are available only in the fhir_patient object, for the patients who have an appointment on or after the start date.