Need help? Contact us:
...
The AthenaHealth Athenahealth adapter is designed to provide a template for getting started with Athenahealth API integrations, including:
Authenticating with the Athenahealth API Server via OAuth2.0 using the OAUTH Library.
Demo AthenaOne APIs Integration: saerchPatient and createPatient
Demo FHIR APIs Integration: searchPatientsFhir
This component can be customized and adapted according to your workflow needs.
How to use it:
Expand | ||
---|---|---|
| ||
Refer to Setup Athenahealth Sandbox for the sign up process, creating and client and gathering the authentication details needed for the Athenahealth Adapter. |
Expand | ||
---|---|---|
| ||
See Create a Component if this is your first time! |
Expand | ||||
---|---|---|---|---|
| Enter the ClientId and PrivateKey certificate path.
| |||
Manual Populated Configurations
You can get ClientId, Client Secret, and Scopes from App Setup: Setup Athenahealth Sandbox System Auth Configurations
|
Expand | ||
---|---|---|
| ||
Auto Populate Key and KeyExpiry Check Patient in Sandbox You can verify P |
How the ATHENA Library works:
Expand | ||
---|---|---|
| ||
Sets up the ATHENA adapter framework, adding the various method modules to a metatable and storing the configurations added to the custom fields. |
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. For resiliency, the Retry Library is used to retry any failed attempts and the response is handled and returned |
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. |
Expand | ||
---|---|---|
| ||
ATHENAsearchPatientsFhir prepares the arguments, including the FHIR-specific API string, and calls ATHENAcustom to search for a FHIR patient in Athenahealth. |