# athenahealth integration

> Build workflow automations with 15 public athenahealth actions.

Source: [https://genhealth.ai/docs/workflows/integrations/athenahealth](https://genhealth.ai/docs/workflows/integrations/athenahealth)

## Available actions

15 actions. Connection types: None required.

### [Attach Document To Patient Case](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_attach_document_to_patient_case.md)

- Handler: `athena_attach_document_to_patient_case`

- External effect: `write`
- Inputs: `document_id`, `patient_id`, `chart_id`, `attachment_document_id`, `write_enabled`
- Outputs: `success`, `submitted`, `write_skipped`, `skip_reason`, `document_id`, `document_class`, `patient_id`, `chart_id`, `attachment_document_id`, `attached`, `status`, `assigned_to`, `subject`, `error`, `error_message`

Perform Attach Document To Patient Case through athenahealth.

### [Create Patient Case Note](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_create_patient_case_note.md)

- Handler: `athena_create_patient_case_note`

- External effect: `write`
- Inputs: `patient_id`, `chart_id`, `note_text`, `subject`, `append_signature`, `write_enabled`
- Outputs: `success`, `submitted`, `write_skipped`, `skip_reason`, `document_id`, `document_class`, `patient_id`, `chart_id`, `status`, `assigned_to`, `subject`, `signed_note_length`, `max_note_length`, `failure_phase`, `error_code`, `retryable`, `error`, `error_message`

Perform Create Patient Case Note through athenahealth.

### [Read Document Timeline Items](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_read_document_timeline_items.md)

- Handler: `athena_read_document_timeline_items`

- External effect: `read`
- Inputs: `document_id`, `chart_id`, `department_id`, `categories`, `briefing`
- Outputs: `success`, `document_id`, `chart_id`, `department_id`, `timeline_item_count`, `count`, `timeline_items`, `categories`, `briefing`, `error`, `error_message`

Perform Read Document Timeline Items through athenahealth.

### [Read Document View Data](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_read_document_view_data.md)

- Handler: `athena_read_document_view_data`

- External effect: `read`
- Inputs: `document_id`, `document_class`, `chart_id`
- Outputs: `success`, `document_id`, `document_class`, `patient_id`, `chart_id`, `status`, `assigned_to`, `document_present`, `error`, `error_message`

Perform Read Document View Data through athenahealth.

### [Read Historical Document](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_read_historical_document.md)

- Handler: `athena_read_historical_document`

- External effect: `read`
- Inputs: `document_id`, `document_class`
- Outputs: `success`, `document_id`, `document_class`, `patient_id`, `chart_id`, `status`, `assigned_to`, `document_present`, `error`, `error_message`, `document_count`, `documents`, `payload_present`

Perform Read Historical Document through athenahealth.

### [Read Patient Case](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_read_patient_case.md)

- Handler: `athena_read_patient_case`

- External effect: `read`
- Inputs: `document_id`, `patient_id`, `chart_id`
- Outputs: `success`, `document_id`, `document_class`, `patient_id`, `chart_id`, `athena`, `status`, `assigned_to`, `subject`, `provider_note_present`, `provider_note_length`, `provider_note_has_genhealth_signature`, `patient_id_matches`, `chart_id_matches`, `error`, `error_message`

Perform Read Patient Case through athenahealth.

### [Read Patient Cases](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_read_patient_cases.md)

- Handler: `athena_read_patient_cases`

- External effect: `read`
- Inputs: `patient_id`, `chart_id`, `department_id`
- Outputs: `success`, `patient_id`, `chart_id`, `case_count`, `count`, `patient_cases`, `error`, `error_message`

Perform Read Patient Cases through athenahealth.

### [Read Patient Insurance](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_read_patient_insurance.md)

- Handler: `athena_read_patient_insurance`

- External effect: `read`
- Inputs: `patient_id`, `chart_id`, `department_id`, `include_sensitive_fields`
- Outputs: `success`, `patient_id`, `chart_id`, `athena`, `policy_count`, `count`, `policies`, `insurance_cards`, `insurance_source`, `has_insurance_policy`, `primary_policy`, `secondary_policy`, `tertiary_policy`, `primary_payer_name`, `primary_payer_id`, `secondary_payer_name`, `secondary_payer_id`, `insurance_removal_request_count`, `error`, `error_message`

Perform Read Patient Insurance through athenahealth.

### [Read Referral Attachments](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_read_referral_attachments.md)

- Handler: `athena_read_referral_attachments`

- External effect: `read`
- Inputs: `document_id`, `chart_id`, `patient_id`, `document_class`, `target_document_id`
- Outputs: `success`, `document_id`, `document_class`, `patient_id`, `chart_id`, `attachment_count`, `attached_count`, `attachments`, `target_document_id`, `target_attachment_found`, `target_attachment_attached`, `error`, `error_message`

Perform Read Referral Attachments through athenahealth.

### [Resolve Patient Chart Context](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_resolve_patient_chart_context.md)

- Handler: `athena_resolve_patient_chart_context`

- External effect: `read`
- Inputs: `patient_id`, `department_id`
- Outputs: `success`, `patient_id`, `chart_id`, `department_id`, `athena`, `error`, `error_message`

Perform Resolve Patient Chart Context through athenahealth.

### [Save Patient Case Note](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_save_patient_case_note.md)

- Handler: `athena_save_patient_case_note`

- External effect: `write`
- Inputs: `document_id`, `patient_id`, `chart_id`, `note_text`, `subject`, `append_signature`, `write_enabled`
- Outputs: `success`, `submitted`, `write_skipped`, `skip_reason`, `document_id`, `document_class`, `patient_id`, `chart_id`, `status`, `assigned_to`, `subject`, `signed_note_length`, `max_note_length`, `failure_phase`, `error_code`, `retryable`, `error`, `error_message`

Perform Save Patient Case Note through athenahealth.

### [Search Patients](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_search_patients.md)

- Handler: `athena_search_patients`

- External effect: `read`
- Inputs: `query`, `filter_type`, `max_results`
- Outputs: `success`, `query`, `filter_type`, `result_count`, `count`, `matches`, `single_match`, `patient_id`, `chart_id`, `first_patient_id`, `first_chart_id`, `response_length`, `error`, `error_message`

Perform Search Patients through athenahealth.

### [Upload Document To Chart](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_upload_document_to_chart.md)

- Handler: `athena_upload_document_to_chart`

- External effect: `write`
- Inputs: `patient_id`, `chart_id`, `file_path`, `file_name`, `document_class`, `content_type`, `close_document`, `write_enabled`
- Outputs: `success`, `submitted`, `write_skipped`, `skip_reason`, `document_id`, `attachment_document_id`, `document_class`, `patient_id`, `chart_id`, `department_id`, `file_path`, `filename`, `content_type`, `close_document`, `error`, `error_message`

Perform Upload Document To Chart through athenahealth.

### [Upsert Patient Case Attachment](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_upsert_patient_case_attachment.md)

- Handler: `athena_upsert_patient_case_attachment`

- External effect: `write`
- Inputs: `document_id`, `patient_id`, `chart_id`, `file_path`, `s3_path`, `source_document_id`, `document_class`, `content_type`, `idempotency_key`, `close_document`, `max_pdf_pages_per_attachment`, `write_enabled`
- Outputs: `success`, `submitted`, `write_skipped`, `skip_reason`, `document_id`, `attachment_document_id`, `attachment_document_ids`, `attachment_count`, `part_count`, `uploaded`, `uploaded_count`, `reused`, `reused_count`, `attached`, `attached_count`, `attach_call_count`, `document_complete`, `match_count`, `failure_phase`, `error_code`, `retryable`, `error`, `error_message`

Perform Upsert Patient Case Attachment through athenahealth.

### [Upsert Patient Case Note](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_upsert_patient_case_note.md)

- Handler: `athena_upsert_patient_case_note`

- External effect: `write`
- Inputs: `patient_id`, `chart_id`, `note_text`, `subject`, `append_signature`, `write_enabled`
- Outputs: `success`, `submitted`, `write_skipped`, `skip_reason`, `document_id`, `document_class`, `patient_id`, `chart_id`, `status`, `assigned_to`, `subject`, `signed_note_length`, `max_note_length`, `failure_phase`, `error_code`, `retryable`, `error`, `error_message`, `created`, `reused`, `match_count`

Perform Upsert Patient Case Note through athenahealth.
