Need help? Contact us:
...
The Athenahealth adapter is designed to provide a template for getting started with Athenahealth API integrations, including. It leverages the ATHENA Library to:
Authenticating Authenticate with the Athenahealth API Server via OAuth2.0
Demo AthenaOne APIs Integration: searchPatient and createPatient
Demo FHIR APIs Integration: searchPatientsFhir
...
Expand | ||
---|---|---|
| ||
Expand | ||
| ||
Manual Populated Component Configurations
You can get ClientId, Client Secret, and Scopes from App Setup: Setup Athenahealth Sandbox System Auth Configurations Using the information providedUpon start up, the component will run through the authentication workflow and set the Key and KeyExpiry value of the obtained access token automatically. | ||
Expand | ||
|
How the ATHENA Library works:
Sets up the ATHENA adapter framework, adding the various method modules to a metatable and storing the configurations added to the custom fieldstake the provided credentials to retrieve an access token from Athenahealth and store it in an encrypted file for use on subsequent API requests. |
Expand | ||
---|---|---|
Expand | ||
| ||
| ||
The ATHENAauth function builds and makes the HTTP POST token request to obtain the access token required for interacting with the AthenaHealth API. If the token request is successful (HTTP 200 response), the token and token expiry returned are set to the Key and KeyExpiry custom fields respectively. |
Expand | ||
---|---|---|
| ||
ATHENAcustom takes in any API requests and parameters to make the API call and return the response.
|
Expand | ||
---|---|---|
| ||
ATHENAcreatePatient prepares the arguments, including populating the path parameters (ex. practice ID) in the API string and loading the required header. It then calls ATHENAcustom to create a patient in Athenahealth via HTTP POST request. |
Expand | ||
---|---|---|
| ||
ATHENAsearchPatients prepares the arguments, including populating the path parameters (ex. practice ID) in the API string. It then calls ATHENAcustom to search for a patient in Athenahealth. |
| |
Click Edit > Make a Copy and Edit to open the Translator. You can verify the connection from the Translator by clicking on the results of the patient searches in the annotations. You can also verify the created patient by starting the component, checking the logs for the newly created patient’s ID, and checking the Athenahealth sandbox How to use Athenahealth Sandbox or the updated search results in the Translator. |