Athenahealth Connector

1. Feature Overview

Athenahealth is an Electronic Health Record (EHR) system offering solutions for practice management, patient engagement, revenue cycle management, and more. LeadSquared’s no-code Athena connectors sync leads and activities (patients and appointments) between your Athena and LeadSquared accounts. The following Athena connectors are available –

Athena Create Patient
When a new lead is created in your LeadSquared account, the create patient connector creates a corresponding new patient in your Athena account in real-time.

LeadSquared Healthcare Integrations

Athena Update patient
When a lead’s details are updated on LeadSquared, the update patient connector updates those details for the corresponding patient in your Athena account in real-time.

LeadSquared Healthcare Integrations

Athena Lead Sync
Syncs all patients from your Athena account and creates corresponding leads in LeadSquard. The sync occurs at configurable periodic intervals.

Athena LeadSquared Integration

Athena Appointment Sync
Syncs all appointments from your Athena account and creates corresponding activities in LeadSquard. The sync occurs at configurable periodic intervals.

Note: This connector is only available for healthcare domain customers in the US.

LeadSquared Healthcare Integrations

 

2. Prerequisites

  • You must be the Administrator of your LeadSquared account to install and configure this connector.
  • This is a paid connector. To enable it, reach out to your account manager, or write to support@leadsquared.com.
  • From your Athena account, you’ll require the following information (contact your Athena account representative for details) –
    • Department Id
    • Practice Id
    • Security Token
  • For the Athena Create Patient connector, Lapps must be enabled on your account. Create a LeadSquared Lapp for the Athena Create Patient and Update Patient connectors. In the connector configuration, you’ll be required to provide –
    • lappBaseUrl
    • x-api-key

 

3. How it Works

Once the connector access is enabled on your account, install the connector. Then, configure the connector with the relevant details, and ensure the field mappings between your LeadSquared and Athena accounts are accurate.

For the Athena Create Patient and Athena Update Patient connectors, a webhook URL is generated. Use this URL to set up a webhook in your LeadSquared account to post data to Athena for the required events (lead create, lead update, lead stage change, etc.).

 

4. Install the Athena Connector(s)

Note: We’ve used the Athena Lead Sync connector to demonstrate the installation process. The steps listed below are the same for all the Athena connectors.

  1. Navigate to Apps>Apps Marketplace.
  2. Search for Athena Lead Sync, and click Install.
  3. Once installed, hover your cursor over , and click Configure. On the Configure Athena Lead Sync pop-up, you can configure which users can access the connector configurations. We recommend you –
    1. Set Connector Access to Based on Role.
    2. Select User Roles as Administrator only.
  4. Click Save Details. This completes the connector set-up process.

Note:

  • Only Admin users can install the connector.
  • You don’t have to provide Connector Access to your sales managers and sales users here. Connector access only grants access to the connector configurations screen. Once installed, by default, all users will be able to create and view leads and activities synced through the connector.

LeadSquared EHR Integrations

 

5. Admin Configuration – Athena Create Patient

When leads are created in your LeadSquared account, this connector creates patients in your Athena account in real-time.

Navigate to Apps>Athena Create Patient.

LeadSquared Healthcare Integrations

5.1 Basic Settings

Enter the following details for the Athena Create Patient connector –

PropertyDescription
baseUrlThe baseUrl for the Athena API used to sync appointments from Athena to LeadSquared – https://api.preview.platform.athenahealth.com
PracticeIdEnter the Practice Id associated with the department, available in your Athena account… (contact your Athena account representative for more information)
LSQAPIURLEnter your LeadSquared account’s Host URL, Access Key, and Secret Key. To obtain these, refer to Where can I find my LeadSquared API Host URL, Access Key and Secret Key?
x-LSQ-AccessKey
x-LSQ-SecretKey
lappBaseUrlThe base Url of the Lapp and the x-api-key to authenticate calls to the Lapp.
To get these details, please contact your LeadSquared account manager or write to support@leadsquared.com.
x-api-key
Lead SourceEnter the lead source through which the leads were captured (e.g., email campaign, etc.).
Default Country CodeIf the lead’s mobile number is captured without a country code, then the default country code that’s selected from the dropdown will be added to the lead’s mobile number.
Select Time ZoneThe time zone that’s followed in your Athena account.
Lead Capture Search By CriteriaThe identifier used to push leads to your Athena account.
Lead Capture Secondary Search By CriteriaIf lead identification and transfer through the primary Search By criteria fails, it will be re-attempted using the secondary Search By criteria.
Select User to Notify on FailureIf there is an error identifying and pushing leads, the selected user will receive a failure message via email. You can select a user from the list of all the users available in your LeadSquared account.

To know more about the type of errors, please refer to Error Notifications.

Enable NotificationEnable the Checkbox checkbox to ensure notification emails are sent to the selected user when there’s a failed query.

Once you’re done entering all the details, click Save & Next.

LeadSquared Healthcare Integrations

5.2 Entity Options – Athena Create Patient

Define the sync behaviour of the connector when patients are created and/or updated in your Athena account.

Lead/Contact Entity
Based on the Lead Capture Search By criteria (email Id, phone number, etc.), LeadSquared identifies and pushes leads to your Athena account. Since the create patient functionality is handled by the Lapp, under Sync Behaviour, select Do Nothing.

LeadSquared Healthcare Integrations

5.3 Actions

Configure the actions performed when the connector is configured.

  • createpatient – When enabled, patient details are transferred to your Athena account.
  • Update PatId – This must be enabled to update the patient Id (created by Athena) in the relevant LeadSquared lead field.

5.4 Mapping

When you click Edit Mapping, on the Mapping pop-up, the Athena system fields mapped to the corresponding LeadSquared lead/activity fields are visible. This mapping is carried out by default. If required, you can change or update the default field mapping. Once you’re done, click Save & Close.

LeadSquared Healthcare Integrations

5.5 Generate Webhook URL

After you provide basic details and finish field mapping, a custom webhook URL is generated. Copy this URL and use it to create a webhook in your LeadSquared account.

After you’ve set up the webhook, click More Actions, and enable the sync job. This ensures that through the webhook, lead data from LeadSquared is pushed to Athena.

Note: To view logs of all the sync jobs that have taken place, from the More Actions dropdown, click View Logs.

LeadSquared Healthcare Integrations

5.6 Create a Webhook

Once the URL is generated, use it to create a webhook in your LeadSquared account –

  1. Copy the webhook URL.
  2. Navigate to  My Account>Settings>API and Webhooks>Webhooks.
  3. Click Create, and enter the following details –
    • Type – Select Webhook.
    • Event – Select Lead Creation
      • Notify on Failure – Select if you want to be notified if the webhook fails.
    • Webhook URL – Select the method as https://, and paste the connector’s webhook URL that was generated in the previous step. Before you paste the URL, ensure you remove “https://” from the URL.
    • Content Type – Select application/json.
    • Execution Delays – If required, set a delay (in seconds) between the time the event occurs and the data is pushed to your Athena account.
    • Custom Headers – You can skip this step.
    • Description – If required, enter a description for the webhook.
  4. Once you’re done, click Save. The webhook will now push lead data from your LeadSquared account to your Athena account.

LeadSquared Healthcare Integrations

 

6. Admin Configuration – Athena Update Patient

When lead details are updated in your LeadSquared account, this connector updates the corresponding patient data in real-time in your Athena account in real-time.

Navigate to Apps>Athena Create Patient.

LeadSquared Healthcare Integrations

6.1 Basic Settings

Enter the following details for the Athena Update Patient connector –

PropertyDescription
baseUrlThe baseUrl for the Athena API used to sync appointments from Athena to LeadSquared – https://api.preview.platform.athenahealth.com
PracticeIdEnter the Practice Id associated with the department, available in your Athena account… (contact your Athena account representative for more information)
SecurityTokenEnter the Security token available in your Athena account (contact your Athena account representative for more information).
DepartmentIdEnter the Department Id available in your Athena account (contact your Athena account representative for more information). Only leads from the specified department will be synced in LeadSquared…
Lead SourceEnter the lead source through which the leads were captured (e.g., Athena, email campaign, etc.).
Default Country CodeIf the lead’s mobile number is captured without a country code, then the default country code that’s selected from the dropdown will be added to the lead’s mobile number.
Select Time ZoneThe time zone that’s followed in your Athena account.
Lead Capture Search By CriteriaThe identifier used to push leads to your Athena account.
Lead Capture Secondary Search By CriteriaIf lead identification and transfer through the primary Search By criteria fails, it will be re-attempted using the secondary Search By criteria.
Select User to Notify on FailureIf there is an error identifying and pushing leads, the selected user will receive a failure message via email. You can select a user from the list of all the users available in your LeadSquared account.

To know more about the type of errors, please refer to Error Notifications.

Enable NotificationEnable the Checkbox checkbox to ensure notification emails are sent to the selected user when there’s a failed query.

LeadSquared Healthcare Integrations

6.2 Actions

updatePatient – Enable this action to update patient data in your Athena account.

6.3 Mapping

When you click Edit Mapping, on the Mapping pop-up, the Athena system fields mapped to the corresponding LeadSquared lead/activity fields are visible. This mapping is carried out by default. If required, you can change or update the default field mapping. Once you’re done, click Save & Close.

6.4 Generate Webhook URL

After you provide basic details and finish field mapping, a custom webhook URL is generated. Copy this URL and use it to create a webhook in your LeadSquared account. After you’ve set up the webhook, click More Actions, and enable the sync job. This ensures that through the webhook, lead data from LeadSquared is pushed to Athena.

Note: To view logs of all the sync jobs that have taken place, from the More Actions dropdown, click View Logs.

LeadSquared Healthcare Integrations

6.5 Create a Webhook

Once the URL is generated, use it to create a webhook in your LeadSquared account –

  1. Copy the webhook URL.
  2. Navigate to  My Account>Settings>API and Webhooks>Webhooks.
  3. Click Create, and enter the following details –
    • Type – Select Webhook.
    • Event – Depending on your use case, select Lead Update, Lead Stage Change, etc.
      • Notify on Failure – Select if you want to be notified if the webhook fails.
    • Webhook URL – Select the method as https://, and paste the connector’s webhook URL that was generated in the previous step. Before you paste the URL, ensure you remove “https://” from the URL.
    • Content Type – Select application/json.
    • Execution Delays – If required, set a delay (in seconds) between the time the event occurs and the data is pushed to your Athena account.
    • Custom Headers – You can skip this step.
    • Description – If required, enter a description for the webhook.
  4. Once you’re done, click Save. The webhook will now push lead data from your LeadSquared account to your Athena account.

LeadSquared Healthcare Integrations

 

7. Admin Configuration – Athena Lead Sync

The Athena Lead Sync connector periodically syncs patient data from your Athena account to your LeadSquared account.

Navigate to Apps>Athena Lead Sync.

LeadSquared Healthcare Integrations

7.1 Basic Details

PropertyDescription
DepartmentIdEnter the Department Id available in your Athena account (contact your Athena account representative for more information). Only leads from the specified department will be synced in LeadSquared…
PracticeIdEnter the Practice Id associated with the department, available in your Athena account… (contact your Athena account representative for more information).
SecurityTokenEnter the Security token available in your Athena account (contact your Athena account representative for more information).
Lead SourceEnter the lead source through which the leads were captured (e.g., Athena, email campaign, etc.). The lead source will be displayed on the Lead Details page, under Lead Source.
Default Country CodeIf the lead’s mobile number is captured without a country code, then the default country code that’s selected from the dropdown will be added to the lead’s mobile number.
Select Time ZoneThe time zone that’s followed in your Athena account.
Lead Capture Search By CriteriaThis is used to identify whether the lead being synced from Athena already exists in your LeadSquared account.

This is also used to avoid creating duplicate leads. You must select one unique lead field (e.g., patient Id, email Id, mobile number, etc.) as the search key.

Lead Capture Secondary Search By CriteriaIf lead identification and capture through the primary Search By criteria fails, it will be re-attempted using the secondary Search By criteria.
Select User to Notify on FailureIf there is an error identifying and capturing leads, the selected user will receive a failure message via email. You can select a user from the list of all the users available in your LeadSquared account.

To know more about the type of errors, please refer to Error Notifications.

Enable NotificationEnable the Checkbox checkbox to ensure notification emails are sent to the selected user when there’s a failed query.
Sync FrequencyBy default, patient data will be synced from Athena to LeadSquared every 15 mins. You can use the ‘Hours’ and ‘Minutes’ dropdowns to select a custom interval.

LeadSquared Healthcare Integrations

7.2 Entity Options

Define the behaviour of the connector when patients from Athena to LeadSquared.

Lead/Contact Entity
Based on the Lead Capture Search By criteria (patient Id, email Id, phone number, etc.), LeadSquared captures data from your Athena account. Lead capture is enabled by default, and it cannot be disabled.  The following options are available to configure the connector’s Sync Behaviour –

  • Capture (Create and Update existing) Record – Leads not existing in your LeadSquared account will be created. Leads that currently exist in your LeadSquared and Athena accounts will get updated.
  • Create only new record – Leads that do not exist in your LeadSquared account will be created.
  • Update only existing record – Leads that currently exist in your LeadSquared account will get updated.

7.3 Mapping

When you click Edit Mapping, on the Mapping pop-up, the Athena system fields mapped to the corresponding LeadSquared lead/activity fields are visible. This mapping is carried out by default. If required, you can change or update the default field mapping. Once you’re done, click Save & Close.

On the Entity Options tab, click Save to continue. Then, click More Actions, and enable the connector sync. This will begin transferring lead data to your LeadSquared account.

Note: New or existing leads are identified based on the Lead Capture Search By Criteria you selected in the previous section.

LeadSquared Healthcare Integrations

 

8. Admin Configuration – Athena Appointment Sync

The Athena Appointment Sync connector periodically syncs appointment data from your Athena account to your LeadSquared account (as activities posted on corresponding leads).

Navigate to Apps>Athena Lead Sync.

LeadSquared Healthcare Integrations

8.1 Basic Details

PropertyDescription
baseUrlThe baseUrl for the Athena API used to sync appointments from Athena to LeadSquared. – https://api.preview.platform.athenahealth.com
DepartmentIdEnter the Department Id available in your Athena account (contact your Athena account representative for more information). Only leads from the specified department will be synced in LeadSquared…
PracticeIdEnter the Practice Id associated with the department, available in your Athena account… (contact your Athena account representative for more information).
SecurityTokenEnter the Security token available in your Athena account (contact your Athena account representative for more information).
Lead SourceEnter the lead source through which the leads were captured (e.g., Athena, email campaign, etc.). The lead source will be displayed on the Lead Details page, under Lead Source.
Default Country CodeIf the lead’s mobile number is captured without a country code, then the default country code that’s selected from the dropdown will be added to the lead’s mobile number.
Select Time ZoneThe time zone that’s followed in your Athena account.
Lead Capture Search By CriteriaThis is used to identify whether the lead being synced from Athena already exists in your LeadSquared account.

This is also used to avoid creating duplicate leads. You must select one unique lead field (e.g., patient Id, email Id, mobile number, etc.) as the search key.

Lead Capture Secondary Search By CriteriaIf lead identification and capture through the primary Search By criteria fails, it will be re-attempted using the secondary Search By criteria.
Select User to Notify on FailureIf there is an error identifying and capturing leads, the selected user will receive a failure message via email. You can select a user from the list of all the users available in your LeadSquared account.

To know more about the type of errors, please refer to Error Notifications.

Enable NotificationEnable the Checkbox checkbox to ensure notification emails are sent to the selected user when there’s a failed query.
Sync FrequencyBy default, patient data will be synced from Athena to LeadSquared every 15 mins. You can use the ‘Hours’ and ‘Minutes’ dropdowns to select a custom interval.

LeadSquared Healthcare Integrations

8.2 Entity Options

Define the behaviour of the connector when syncing appointments from Athena to LeadSquared. Appointments synced from Athena are created as new activities on corresponding leads in your LeadSquared account.

Lead/Contact Entity
Based on the Lead Capture Search By criteria (patient Id, email Id, phone number, etc.), LeadSquared captures data from your Athena account. Lead capture is enabled by default, and it cannot be disabled.  The following options are available to configure the connector’s Sync Behaviour –

  • Capture (Create and Update existing) Record – Leads not existing in your LeadSquared account will be created. Leads that currently exist in your LeadSquared and Athena accounts will get updated.
  • Create only new record – Leads that do not exist in your LeadSquared account will be created.
  • Update only existing record – Leads that currently exist in your LeadSquared account will get updated.

Activity Entity
Alongside Activity Entity, click to enable the slider Zoom. The following options are available to configure the connector’s Sync Behaviour for activities (appointments in Athena) created in LeadSquared –

  • Capture (Create and Update existing) Record – Activities not existing in your LeadSquared account (for the corresponding appointments in Athena) will be created in LeadSquared. Activities that currently exist in your in LeadSquared will get updated.
  • Create only new record –Activities (leads) not existing in LeadSquared will get created.
  • Update only existing record – Activities that currently exist in your LeadSquared account will get updated.

8.3 Mapping

When you click Edit Mapping, on the Mapping pop-up, the Athena system fields mapped to the corresponding LeadSquared lead/activity fields are visible. This mapping is carried out by default. If required, you can change or update the default field mapping. Once you’re done, click Save & Close.

On the Entity Options tab, click Save to continue. Then, click More Actions, and enable the connector sync. This will begin transferring lead data to your LeadSquared account.

Note: New or existing leads are identified based on the Lead Capture Search By Criteria you selected in the previous section.

LeadSquared Healthcare Integrations

 

9. Create Leads

Once you’ve installed and configured the Athena Create Patient, the leads you create in LeadSquared are created as patients in your Athena account. If the Athena Update Patient connector is also installed, when you update leads in LeadSquared, the updates are synced to the corresponding patients on Athena (based on the event you configured the webhook on – lead update, lead stage change, etc.).
To know how to create leads, refer to How to Create Leads.

 

10. View Leads

Once installed the Athena Lead Sync connector, to view the leads captured in your LeadSquared account –

  1. Navigate to Leads>Manage Leads.
  2. Click on a lead that’s been captured/updated from your Athena account.
  3. On the Lead Details page, you can view the lead’s information.
Note: To configure the lead source for the leads captured through this connector (e.g., Athena, Healthcare leads, etc.), contact your account manager, or write to support@leadsquared.com.

LeadSquared Healthcare Integrations

 

11. View Activities

If you’ve installed the Athena Appointment Sync connector, appointments created in Athena are synced as activities on the corresponding leads in LeadSquared.

LeadSquared Healthcare Integrations

 

Any Questions?

Did you find this article helpful? Please let us know any feedback you may have in the comments section below. We’d love to hear from you and help you out!

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments