# athenahealth integration

> Build workflow automations with 36 public athenahealth actions.

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

## Available actions

36 actions. Connection types: athenahealth.

### [Add Insurance Authorization](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_add_patient_authorization.md)

- Handler: `athena_add_patient_authorization`
- Connection type: `athenahealth`
- External effect: `write`
- Inputs: `patient_id`, `chart_id`, `patient_insurance_id`, `authorization_type`, `authorization_number`, `effective_from`, `effective_to`, `visits_approved`, `visits_remaining`, `units_type`, `icd10_codes`, `procedure_codes`, `additional_information`, `notes`, `referred_to_provider_id`, `referring_provider_id`, `referred_to_referring_provider_id`, `specialty_id`, `department_id`, `notes_to_provider`, `source_document_id`, `write_enabled`
- Outputs: `success`, `submitted`, `write_skipped`, `skip_reason`, `authorization_id`, `already_present`, `matched_by`, `listed_type`, `listed_as`, `patient_id`, `chart_id`, `patient_insurance_id`, `insurance_package_name`, `insurance_sequence_number`, `department_id`, `department_name`, `referring_provider_source`, `authorization_preview`, `authorization`, `athena`, `submitted_field_count`, `mismatched_fields`, `codes_verified`, `error`, `error_message`, `failure_phase`, `error_code`, `retryable`

Perform Add Insurance Authorization through athenahealth.

### [Add Insurance Policy](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_add_patient_insurance.md)

- Handler: `athena_add_patient_insurance`
- Connection type: `athenahealth`
- External effect: `write`
- Inputs: `patient_id`, `insurance_package_id`, `id_number`, `sequence_number`, `policy_number`, `issue_date`, `expiration_date`, `insurance_product_type_id`, `copay_type_id`, `copay`, `coinsurance_percent`, `notes`, `relationship_to_insured_id`, `insured_entity_type_id`, `insured_id_number`, `insured_first_name`, `insured_last_name`, `insured_middle_initial`, `insured_name_suffix`, `insured_date_of_birth`, `insured_sex`, `insured_ssn`, `insured_address_line_1`, `insured_address_line_2`, `insured_city`, `insured_state`, `insured_zip`, `insured_country_id`, `eligibility_mode`, `eligibility_service_date`, `eligible`, `eligibility_reason_id`, `additional_form_fields`, `write_enabled`
- Outputs: `success`, `submitted`, `write_skipped`, `skip_reason`, `patient_insurance_id`, `patient_id`, `insurance_package_id`, `insurance_package_name`, `sequence_number`, `athena`, `submitted_field_count`, `error`, `error_message`, `failure_phase`, `error_code`, `retryable`

Perform Add Insurance Policy through athenahealth.

### [Add Self-Pay Cash Plan](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_add_self_pay_plan.md)

- Handler: `athena_add_self_pay_plan`
- Connection type: `athenahealth`
- External effect: `write`
- Inputs: `patient_id`, `cash_plan_package_id`, `cash_plan_member_id`, `product_type_id`, `sliding_fee_program_id`, `sliding_fee_plan_id`, `noninsurance_type_id`, `program_poverty_based`, `sequence_number`, `notes`, `family_size`, `yearly_income`, `income_per_pay_period`, `pay_period`, `issue_date`, `expiration_date`, `write_enabled`, `confirm_unverified_write`
- Outputs: `success`, `submitted`, `write_skipped`, `patient_insurance_id`, `patient_id`, `cash_plan_package_id`, `sequence_number`, `submitted_field_count`, `cash_plan_previewed`, `sliding_fee_program_id`, `sliding_fee_program_label`, `sliding_fee_plan_id`, `sliding_fee_plan_label`, `noninsurance_type_id`, `preview_field_count`, `program_plan_pair_verified`, `selection_status`, `verified`, `submission_status`, `manual_review_required`, `readback_status`, `retryable`, `error`, `error_message`

Perform Add Self-Pay Cash Plan through athenahealth.

### [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`
- Connection type: `athenahealth`
- 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](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_create_patient.md)

- Handler: `athena_create_patient`
- Connection type: `athenahealth`
- External effect: `write`
- Inputs: `first_name`, `last_name`, `date_of_birth`, `middle_initial`, `name_suffix`, `preferred_name`, `sex`, `ssn`, `marital_status`, `assigned_sex_at_birth`, `gender_identity`, `sexual_orientation`, `preferred_pronouns`, `address_line_1`, `address_line_2`, `city`, `state`, `zip_code`, `email`, `mobile_phone`, `home_phone`, `work_phone`, `contact_preference`, `privacy_notice_given`, `patient_signature_on_file`, `insured_signature_on_file`, `medication_history_consent`, `consent_to_call`, `consent_to_text`, `registration_date`, `registration_department_id`, `primary_provider_id`, `referral_source_id`, `referral_source_other`, `notes`, `guarantor_is_self`, `additional_form_fields`, `duplicate_check`, `registration_mode`, `classic_fallback`, `write_enabled`
- Outputs: `success`, `submitted`, `write_skipped`, `skip_reason`, `patient_id`, `athena`, `previous_operation`, `duplicate_found`, `duplicate_patient_ids`, `duplicate_count`, `submitted_field_count`, `registration_mode_used`, `fallback_reason`, `post_create_updated_fields`, `error`, `error_message`, `failure_phase`, `error_code`, `retryable`

Perform Create Patient 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`
- Connection type: `athenahealth`
- 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.

### [Download Referral Document](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_download_referral_document.md)

- Handler: `athena_download_referral_document`
- Connection type: `athenahealth`
- External effect: `write`
- Inputs: `document_id`, `document_class`, `document_type`, `apply_rotation`
- Outputs: `success`, `document_id`, `athena_document_id`, `athena_document_class`, `athena_document_sub_class`, `athena_document_status`, `page_count`, `rotated_page_count`, `size`, `sha256`, `was_existing`, `error`, `error_message`

Perform Download Referral Document through athenahealth.

### [Link Referral Document to Patient](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_link_referral_document_to_patient.md)

- Handler: `athena_link_referral_document_to_patient`
- Connection type: `athenahealth`
- External effect: `write`
- Inputs: `document_id`, `patient_id`, `chart_id`, `write_enabled`
- Outputs: `success`, `write_skipped`, `linked`, `already_linked`, `verified`, `submitted`, `retryable`, `outcome`, `document_id`, `patient_id`, `chart_id`, `error`, `error_message`

Perform Link Referral Document to Patient through athenahealth.

### [List Chart Documents](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_list_chart_documents.md)

- Handler: `athena_list_chart_documents`
- Connection type: `athenahealth`
- External effect: `read`
- Inputs: `patient_id`, `department_id`, `document_class`, `document_subclass`, `chart_date_from`, `chart_date_to`, `max_documents`
- Outputs: `success`, `patient_id`, `chart_id`, `department_id`, `count`, `documents`, `contains_all_items`, `truncated`, `error`, `error_message`

Perform List Chart Documents through athenahealth.

### [List Referral Documents](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_list_referral_documents.md)

- Handler: `athena_list_referral_documents`
- Connection type: `athenahealth`
- External effect: `read`
- Inputs: `bucket_name`, `assigned_to`, `subject_types`, `document_classes`, `document_sub_classes`, `statuses`, `exclude_urgent`, `per_page`, `max_items`, `start_page`, `max_pages`, `sort_column`, `sort_direction`, `sort_field`
- Outputs: `success`, `bucket_name`, `assigned_to`, `source_context`, `documents`, `document_count`, `count`, `document_ids`, `scanned_count`, `filtered_out_count`, `bucket_total_count`, `start_page`, `pages_read`, `truncated`, `has_previous_pages`, `window_limited`, `subject_types_seen`, `document_classes_seen`, `document_sub_classes_seen`, `statuses_seen`, `error`, `error_message`

Perform List Referral Documents through athenahealth.

### [Look Up Insurance Policy](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_policy_lookup.md)

- Handler: `athena_policy_lookup`
- Connection type: `athenahealth`
- External effect: `write`
- Inputs: `patient_id`, `insurance_names`, `member_id`, `state`, `check_eligibility`, `max_results`
- Outputs: `success`, `patient_id`, `insurance_names`, `search_terms`, `eligibility_checked`, `eligibility_confirmed`, `eligibility_status`, `eligibility`, `identified_attributes`, `member_id_entities`, `result_count`, `total_result_count`, `truncated`, `results`, `top_result`, `error`, `error_message`

Perform Look Up Insurance Policy through athenahealth.

### [Process CCDA Document](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_process_ccda_document.md)

- Handler: `athena_process_ccda_document`
- Connection type: `athenahealth`
- External effect: `write`
- Inputs: `document_id`, `patient_id`, `chart_id`, `link_patient`, `internal_note`, `urgent`, `order_type_id`, `assigned_to`, `provider_username`, `action`, `action_note`, `write_enabled`
- Outputs: `success`, `write_skipped`, `submitted`, `verified`, `outcome`, `document_id`, `patient_id`, `chart_id`, `status_before`, `status`, `priority`, `order_type_id`, `assigned_to`, `provider_username`, `internal_note_written`, `patient_linked`, `error`, `error_message`

Perform Process CCDA Document through athenahealth.

### [Process Document Page Range](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_process_document_page_range.md)

- Handler: `athena_process_document_page_range`
- Connection type: `athenahealth`
- External effect: `write`
- Inputs: `document_id`, `document_class`, `operation`, `parts`, `first_page_num`, `last_page_num`, `document_label`, `order_type`, `order_type_name`, `internal_note`, `part_action`, `review_reason`, `assigned_to`, `require_all_pages`, `patient_id`, `chart_id`, `provider_username`, `action_note`, `urgent`, `action_group_id`, `action_reason_id`, `action_reason_index`, `confirm_delete`, `write_enabled`
- Outputs: `success`, `write_skipped`, `submitted`, `verified`, `outcome`, `document_id`, `operation`, `document_class`, `document_sub_class`, `patient_id`, `chart_id`, `page_count_before`, `page_count_after`, `first_page_num`, `last_page_num`, `resulting_document_ids`, `parts`, `completed_parts`, `failed_part_index`, `next_document_id`, `remainder_document_id`, `error`, `error_message`

Perform Process Document Page Range through athenahealth.

### [Process Existing Document](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_process_existing_document.md)

- Handler: `athena_process_existing_document`
- Connection type: `athenahealth`
- External effect: `write`
- Inputs: `document_id`, `document_class`, `document_sub_class`, `document_label`, `order_type`, `provider_username`, `action_note`, `urgent`, `skip_if_urgent`, `review_action_reason_id`, `assigned_to`, `bucket_name`, `expected_patient_id`, `chart_id`, `projection_timeout_seconds`, `write_enabled`
- Outputs: `success`, `write_skipped`, `skipped`, `submitted`, `verified`, `projection_verified`, `outcome`, `document_id`, `document_class`, `document_sub_class`, `order_type_id`, `order_type_name`, `patient_id`, `chart_id`, `provider_username`, `priority`, `status`, `note_verified`, `assigned_to`, `bucket_name`, `attempts`, `retryable`, `error`, `error_message`

Perform Process Existing Document through athenahealth.

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

- Handler: `athena_read_ccda_document`
- Connection type: `athenahealth`
- External effect: `read`
- Inputs: `document_id`
- Outputs: `success`, `outcome`, `document_id`, `document_class`, `document_sub_class`, `status`, `source`, `priority`, `patient_linked`, `patient_id`, `chart_id`, `version_token`, `assigned_to`, `order_type_id`, `source_interface_message_id`, `available_actions`, `ccda_document_code`, `patient_first_name`, `patient_middle_name`, `patient_last_name`, `patient_dob`, `patient_sex`, `patient_address_line1`, `patient_address_line2`, `patient_city`, `patient_state`, `patient_zip`, `patient_home_phone`, `patient_mobile_phone`, `patient_email`, `referral_count`, `referral_id`, `referral_priority`, `referral_reason`, `referring_provider_first_name`, `referring_provider_last_name`, `referring_provider_credential`, `referring_provider_npi`, `referring_organization_name`, `referred_to_provider_first_name`, `referred_to_provider_last_name`, `referred_to_provider_credential`, `referred_to_provider_npi`, `referred_to_specialty`, `diagnosis_codes`, `diagnoses`, `referrals`, `insurance_count`, `primary_payer_name`, `primary_payer_address`, `primary_member_id`, `primary_group_number`, `primary_plan_type`, `insurances`, `problem_codes`, `parse_warnings`, `error`, `error_message`

Perform Read CCDA Document through athenahealth.

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

- Handler: `athena_read_document_history`
- Connection type: `athenahealth`
- External effect: `read`
- Inputs: `document_id`, `document_class`, `patient_id`, `chart_id`, `actor_username`, `include_action_notes`
- Outputs: `success`, `entries`, `entry_count`, `touched_by_actor`, `last_actor_action`, `error`, `error_message`

Perform Read Document History through athenahealth.

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

- Handler: `athena_read_document_pages`
- Connection type: `athenahealth`
- External effect: `read`
- Inputs: `document_id`, `document_class`
- Outputs: `success`, `document_id`, `document_class`, `document_sub_class`, `status`, `department_id`, `scan_id`, `page_count`, `rotated_page_count`, `pages`, `error`, `error_message`

Perform Read Document Pages 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`
- Connection type: `athenahealth`
- 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`
- Connection type: `athenahealth`
- 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`
- Connection type: `athenahealth`
- 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`
- Connection type: `athenahealth`
- External effect: `read`
- Inputs: `document_id`, `patient_id`, `chart_id`, `note_marker`
- 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`, `note_marker_present`, `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`
- Connection type: `athenahealth`
- External effect: `read`
- Inputs: `patient_id`, `chart_id`, `department_id`, `expected_subject`, `expected_note_marker`, `expected_owner_marker`
- Outputs: `success`, `patient_id`, `chart_id`, `case_count`, `count`, `patient_cases`, `matching_case_count`, `matching_document_id`, `note_marker_present`, `owner_marker_present`, `marker_read_status`, `error`, `error_message`

Perform Read Patient Cases through athenahealth.

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

- Handler: `athena_read_patient_demographics`
- Connection type: `athenahealth`
- External effect: `read`
- Inputs: `patient_id`, `department_id`, `chart_id`
- Outputs: `success`, `verified`, `patient_id`, `chart_id`, `chart_id_matches`, `first_name`, `last_name`, `birth_date`, `unverified_fields`, `manual_review_reasons`, `error`, `error_message`

Perform Read Patient Demographics through athenahealth.

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

- Handler: `athena_read_patient_insurance`
- Connection type: `athenahealth`
- 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`
- Connection type: `athenahealth`
- 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.

### [Reassign Document](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_reassign_document.md)

- Handler: `athena_reassign_document`
- Connection type: `athenahealth`
- External effect: `write`
- Inputs: `document_id`, `assigned_to`, `bucket_name`, `document_class`, `chart_id`, `projection_timeout_seconds`, `write_enabled`
- Outputs: `success`, `write_skipped`, `submitted`, `verified`, `projection_verified`, `outcome`, `document_id`, `document_class`, `document_sub_class`, `assigned_to`, `bucket_name`, `status`, `patient_is_unknown`, `attempts`, `retryable`, `error`, `error_message`

Perform Reassign Document through athenahealth.

### [Resolve Carrier](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_resolve_carrier.md)

- Handler: `athena_resolve_carrier`
- Connection type: `athenahealth`
- External effect: `read`
- Inputs: `carrier_text`, `patient_state`, `plan_type_hint`, `claims_address`, `minimum_confidence`, `allow_llm`
- Outputs: `success`, `matched`, `ready`, `search_text`, `package_id`, `package_name`, `product_type`, `is_super_package`, `resolver`, `confidence`, `requires_review`, `review_reason`, `candidate_count`, `mapping_settings_url`, `candidates`, `claims_address_checked`, `error_message`, `error`

Perform Resolve Carrier 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`
- Connection type: `athenahealth`
- External effect: `read`
- Inputs: `patient_id`, `department_id`
- Outputs: `success`, `patient_id`, `chart_id`, `department_id`, `athena`, `error`, `error_message`

Resolve a known athenahealth patient ID to chart and department context for provider workflows across specialties. Requires an organization-configured athenahealth connection. patient_id is the vendor ID, not the local GenHealth patient UUID. An omitted department_id uses the connection's default department. Check success before using chart_id in insurance reads or Patient Case writeback. This action does not create a Patient Case or write a note. Missing input or connection failure returns an error; route the node's error output with fail_branch for explicit review.

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

- Handler: `athena_save_patient_case_note`
- Connection type: `athenahealth`
- External effect: `write`
- Inputs: `document_id`, `patient_id`, `chart_id`, `note_text`, `subject`, `append_signature`, `write_enabled`, `append_text`, `dedupe_marker`
- 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`, `append_mode`, `append_status`, `appended`, `deduplicated`, `marker_present`, `verified`

Perform Save Patient Case Note through athenahealth.

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

- Handler: `athena_search_patients`
- Connection type: `athenahealth`
- External effect: `read`
- Inputs: `query`, `filter_type`, `date_of_birth`, `first_name`, `last_name`, `max_results`
- Outputs: `success`, `query`, `filter_type`, `search_mode`, `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.

### [Update Patient](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_update_patient.md)

- Handler: `athena_update_patient`
- Connection type: `athenahealth`
- External effect: `write`
- Inputs: `patient_id`, `note_to_append`, `email`, `address_line_1`, `address_line_2`, `city`, `state`, `zip_code`, `home_phone`, `mobile_phone`, `work_phone`, `contact_preference`, `consent_to_call`, `consent_to_text`, `timezone`, `update_mode`, `classic_fallback`, `write_enabled`
- Outputs: `success`, `submitted`, `write_skipped`, `verified`, `patient_id`, `changed_fields`, `note_appended`, `notes_mode_used`, `fallback_reason`, `error`, `error_message`, `failure_phase`, `error_code`

Perform Update Patient through athenahealth.

### [Update Patient Usual Provider](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_update_patient_primary_provider.md)

- Handler: `athena_update_patient_primary_provider`
- Connection type: `athenahealth`
- External effect: `write`
- Inputs: `patient_id`, `provider_id`, `expected_current_provider_id`, `update_mode`, `classic_fallback`, `write_enabled`
- Outputs: `success`, `submitted`, `write_skipped`, `verified`, `patient_id`, `previous_provider_id`, `provider_id`, `update_mode_used`, `fallback_reason`, `error`, `error_message`, `failure_phase`, `error_code`

Perform Update Patient Usual Provider 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`
- Connection type: `athenahealth`
- External effect: `write`
- Inputs: `patient_id`, `chart_id`, `file_path`, `s3_path`, `source_document_id`, `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`, `source_document_id`, `filename`, `content_type`, `close_document`, `error`, `error_message`

Perform Upload Document To Chart through athenahealth.

### [Upload Patient Document](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_upload_patient_document.md)

- Handler: `athena_upload_patient_document`
- Connection type: `athenahealth`
- External effect: `write`
- Inputs: `patient_id`, `chart_id`, `file_path`, `s3_path`, `source_document_id`, `file_name`, `content_type`, `document_label`, `provider_username`, `order_type`, `assigned_to`, `department_id`, `action_note`, `close_document`, `write_enabled`
- Outputs: `success`, `document_id`, `document_class`, `document_sub_class`, `document_label`, `document_label_name`, `patient_id`, `chart_id`, `department_id`, `provider_username`, `assigned_to`, `order_type_id`, `order_type_name`, `labeling_applied`, `filename`, `source_document_id`, `write_skipped`, `skip_reason`, `error`, `error_message`

Perform Upload Patient Document 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`
- Connection type: `athenahealth`
- 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`
- Connection type: `athenahealth`
- External effect: `write`
- Inputs: `patient_id`, `chart_id`, `note_text`, `subject`, `append_signature`, `write_enabled`, `preserve_existing_note`
- 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`, `preserved_existing_note`

Perform Upsert Patient Case Note through athenahealth.
