# Brightree integration

> Build workflow automations with 149 public Brightree actions.

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

## Available actions

149 actions. Connection types: brightree.

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

- Handler: `brightree_add_insurance_policy`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `carrier_id`, `payor_level`, `subscriber_first_name`, `subscriber_last_name`, `subscriber_state`, `start_date`
- Outputs: `success`, `policy_key`, `message`, `error`

Perform Add Insurance Policy through Brightree.

### [Add Sales Order Diagnosis Batches](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_add_sales_order_diagnosis_batches.md)

- Handler: `brightree_add_sales_order_diagnosis_batches`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `diagnosis_batches`
- Outputs: `success`, `results`, `updated_count`, `failed_count`, `error_message`

Perform Add Sales Order Diagnosis Batches through Brightree.

### [Adjust Item Quantity](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_adjust_item_quantity.md)

- Handler: `brightree_adjust_item_quantity`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `sales_order_key`, `proc_code`, `quantity`, `billing_quantity`, `dry_run`

Perform Adjust Item Quantity through Brightree.

### [Append Order Note](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_append_order_note.md)

- Handler: `brightree_append_order_note`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `sales_order_key`, `note_text`, `condition_value`, `condition_expected_value`, `guard_value`, `guard_expected_value`, `guard_label`, `skip_if_present_text`, `order_lease`, `dry_run`
- Outputs: `success`, `status`, `attempted`, `updated`, `already_present`, `sales_order_key`, `note_text`, `reason`, `message`, `order_lease`, `error`

Perform Append Order Note through Brightree.

### [Append Patient Custom Field Value](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_append_patient_custom_field_value.md)

- Handler: `brightree_append_patient_custom_field_value`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `field_label`, `value`, `delimiter`
- Outputs: `success`, `message`, `updated_fields`, `field_label`, `value`, `error`

Perform Append Patient Custom Field Value through Brightree.

### [Apply Fax Demographics](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_apply_fax_demographics.md)

- Handler: `brightree_apply_fax_demographics`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `document_id`, `include_insurance`
- Outputs: `success`, `document_id`, `address_updated`, `error`

Perform Apply Fax Demographics through Brightree.

### [Apply Invoice Payment](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_apply_invoice_payment.md)

- Handler: `brightree_apply_invoice_payment`
- Connection type: `brightree`
- External effect: `irreversible`
- Inputs: `deposit_key`, `receipt_key`, `invoice_key`, `amount`, `proc_line_index`, `payment_type`, `reason`, `note`, `expected_balance`, `dry_run`
- Outputs: `success`, `dry_run`, `invoice_key`, `invoice_number`, `payments_applied`, `observed_balance`, `gate_passed`, `message`, `error`

Perform Apply Invoice Payment through Brightree.

### [Apply Unapplied Payment](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_apply_unapplied_payment.md)

- Handler: `brightree_apply_unapplied_payment`
- Connection type: `brightree`
- External effect: `irreversible`
- Inputs: `invoice_key`, `unapplied_payment_key`, `invoice_detail_key`, `amount`, `pay_date`, `expected_balance`, `dry_run`
- Outputs: `success`, `dry_run`, `applied`, `verified`, `invoice_key`, `unapplied_payment_key`, `invoice_detail_key`, `amount_applied`, `unapplied_balance`, `remaining_unapplied`, `line_balance`, `observed_balance`, `balance_after`, `gate_passed`, `message`, `error`

Perform Apply Unapplied Payment through Brightree.

### [Assign Fax to User](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_assign_fax_to_user.md)

- Handler: `brightree_assign_fax_to_user`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `fax_key`, `user_name`, `user_key`, `received_date_from`, `received_date_to`, `work_status`, `show_unassigned`, `branch_offices`
- Outputs: `success`, `fax_key`, `error`

Perform Assign Fax to User through Brightree.

### [Backfill Order Cost Evidence](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_backfill_order_cost_evidence.md)

- Handler: `brightree_backfill_order_cost_evidence`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `date_from`, `date_to`, `max_orders`, `reobserve_nonvalid_after_days`, `continue_on_error`
- Outputs: `success`, `date_from`, `date_to`, `window_exhausted`, `days_completed`, `orders_seen`, `orders_processed`, `orders_skipped_observed`, `inserted`, `updated`, `valid_costs`, `missing_costs`, `invalid_costs`, `nonpositive_costs`, `order_errors`, `error`

Perform Backfill Order Cost Evidence through Brightree.

### [Calculate Resupply Dates](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_calculate_resupply_dates.md)

- Handler: `brightree_calculate_resupply_dates`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `carrier_name`, `task_date_needed`, `scheduled_date`, `source_so_key`
- Outputs: `new_so_actual_date`, `source_so_key`, `new_so_scheduled_date`, `next_task_date_needed`

Perform Calculate Resupply Dates through Brightree.

### [Cancel Sales Order POD](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_cancel_sales_order_pod.md)

- Handler: `brightree_cancel_sales_order_pod`
- Connection type: `brightree`
- External effect: `irreversible`
- Inputs: `sales_order_key`, `dry_run`
- Outputs: `success`, `cancelled`, `already_cancelled`, `dry_run`, `sales_order_key`, `previous_status`, `current_status`, `message`, `error`, `error_message`

Perform Cancel Sales Order POD through Brightree.

### [Cancel Sales Order POD Batches](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_cancel_sales_order_pod_batches.md)

- Handler: `brightree_cancel_sales_order_pod_batches`
- Connection type: `brightree`
- External effect: `irreversible`
- Inputs: `cancel_pod_requests`, `dry_run`
- Outputs: `success`, `results`, `cancelled_count`, `failed_count`, `dry_run`, `error_message`

Perform Cancel Sales Order POD Batches through Brightree.

### [Check Autoship](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_check_autoship.md)

- Handler: `brightree_check_autoship`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `patient_note_key`
- Outputs: `is_autoship`

Perform Check Autoship through Brightree.

### [Check CMN](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_check_cmn.md)

- Handler: `brightree_check_cmn`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`
- Outputs: `has_active`

Perform Check CMN through Brightree.

### [Check CMN Active](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_check_cmn_active.md)

- Handler: `brightree_check_cmn_active`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `items_records`
- Outputs: `is_valid`, `reason`

Perform Check CMN Active through Brightree.

### [Check Coverage Verified](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_check_coverage_verified.md)

- Handler: `brightree_check_coverage_verified`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `verification`
- Outputs: `is_verified`, `reason`

Perform Check Coverage Verified through Brightree.

### [Check Delivery Proof](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_check_delivery_proof.md)

- Handler: `brightree_check_delivery_proof`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `documents`, `delivery_proof_document_types`
- Outputs: `has_match`, `reason`

Perform Check Delivery Proof through Brightree.

### [Check Eligibility](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_check_eligibility.md)

- Handler: `brightree_check_eligibility`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `patient_note_key`, `check_secondary`

Perform Check Eligibility through Brightree.

### [Check Patient Exists](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_check_patient_exists.md)

- Handler: `brightree_check_patient_exists`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `document_id`, `force`
- Outputs: `success`, `document_id`, `patient_id`, `patient_name`, `birth_date`, `exists`, `ready_for_patient_create`, `external_id`, `patient_key`, `patient_url`, `status`, `error_message`

Match the extracted patient on an organization-owned document using the configured Brightree strategy. Requires extracted demographics and a strategy supporting patient search. Check success before exists: exists=null means unknown, not an absent patient. Create only when ready_for_patient_create=true. patient_id is a local GenHealth ID; patient_key identifies Brightree. Missing demographics or ambiguous matches require review. A returned error can fail the node; use an explicit fail_branch error route when review is required.

### [Check Sales Order Diagnosis Absence Batches](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_check_sales_order_diagnosis_absence_batches.md)

- Handler: `brightree_check_sales_order_diagnosis_absence_batches`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `guard_batches`
- Outputs: `success`, `results`, `verified_count`, `failed_count`, `error_message`

Perform Check Sales Order Diagnosis Absence Batches through Brightree.

### [Check Sales Order Messages](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_check_sales_order_messages.md)

- Handler: `brightree_check_sales_order_messages`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `sales_order_key`, `ignored_message_codes`
- Outputs: `has_blocking_messages`, `reason`

Perform Check Sales Order Messages through Brightree.

### [Check Unresolved Messages](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_check_unresolved_messages.md)

- Handler: `brightree_check_unresolved_messages`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `messages`
- Outputs: `has_unresolved`, `reason`

Perform Check Unresolved Messages through Brightree.

### [Claim Template Schedule Audit Slice](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_claim_template_schedule_audit_slice.md)

- Handler: `brightree_claim_template_schedule_audit_slice`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `account_key`, `workflow_route`, `interval_days`, `slice_size`, `lease_minutes`, `max_candidates`
- Outputs: `success`, `due`, `cycle_id`, `cycle_status`, `items`, `count`, `total_item_count`, `message`, `error`

Perform Claim Template Schedule Audit Slice through Brightree.

### [Clear Patient Inactivation Reason](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_clear_patient_inactivation_reason.md)

- Handler: `brightree_clear_patient_inactivation_reason`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `skip`, `skip_if_missing`, `dry_run`
- Outputs: `success`, `message`, `updated_fields`, `verification_details`, `skipped`, `error`

Perform Clear Patient Inactivation Reason through Brightree.

### [Complete Template Schedule Audit Item](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_complete_template_schedule_audit_item.md)

- Handler: `brightree_complete_template_schedule_audit_item`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `cycle_id`, `item_id`, `claim_token`, `audit_result`
- Outputs: `success`, `cycle_id`, `item_id`, `status`, `message`, `error`

Perform Complete Template Schedule Audit Item through Brightree.

### [Confirm Sales Order](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_confirm_sales_order.md)

- Handler: `brightree_confirm_sales_order`
- Connection type: `brightree`
- External effect: `irreversible`
- Inputs: `sales_order_key`, `dry_run`
- Outputs: `confirmed`, `error`

Perform Confirm Sales Order through Brightree.

### [Copy Billing Address to Insured](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_copy_billing_address_to_insured.md)

- Handler: `brightree_copy_billing_address_to_insured`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`
- Outputs: `success`, `message`, `error`

Perform Copy Billing Address to Insured through Brightree.

### [Copy Sales Order](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_copy_sales_order.md)

- Handler: `brightree_copy_sales_order`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `source_so_key`, `scheduled_date`, `actual_date`, `wip_state`, `classification`, `dry_run`
- Outputs: `new_so_key`

Perform Copy Sales Order through Brightree.

### [Create Doctor from NPI Registry](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_create_doctor_from_npi_registry.md)

- Handler: `brightree_create_doctor_from_npi_registry`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `first_name`, `last_name`, `npi`
- Outputs: `success`, `message`, `doctor_key`, `doctor_name`, `created`, `pecos_verified`, `error`, `error_message`

Perform Create Doctor from NPI Registry through Brightree.

### [Create Drop Ship PO](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_create_drop_ship_po.md)

- Handler: `brightree_create_drop_ship_po`
- Connection type: `brightree`
- External effect: `irreversible`
- Inputs: `sales_order_key`, `vendor`, `priority`, `ship_method`, `signature_required`, `submit_po`, `verification_max_wait_seconds`, `verification_poll_interval_seconds`, `workflow_outcome_mode`
- Outputs: `success`, `manual_review_required`, `outcome_category`, `message`, `purchase_requests`, `items_not_on_pr_count`, `url`, `failure_reason`, `failure_detail`, `error`, `error_message`

Perform Create Drop Ship PO through Brightree.

### [Create Facility](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_create_facility.md)

- Handler: `brightree_create_facility`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `name`, `address_1`, `address_2`, `city`, `state`, `postal_code`, `phone`, `fax`, `facility_group_value`, `marketing_rep_text`, `marketing_rep_value`, `country_value`
- Outputs: `success`, `message`, `facility`, `facility_key`, `error`

Perform Create Facility through Brightree.

### [Create or Reuse Fax Sales Order](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_create_or_reuse_fax_sales_order.md)

- Handler: `brightree_create_or_reuse_fax_sales_order`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `document_id`, `lookback_days`, `dry_run`
- Outputs: `success`, `patient_key`, `document_id`, `dry_run`, `saved`, `sales_order_key`, `reused`, `message`, `error`, `outcome`, `manual_review_required`, `dedupe_decision`, `document_url`, `matched_document_url`, `sales_order_url`, `candidate_links`

Perform Create or Reuse Fax Sales Order through Brightree.

### [Create Patient Address](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_create_patient_address.md)

- Handler: `brightree_create_patient_address`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `address_line_1`, `address_line_2`, `city`, `state`, `zip_code`
- Outputs: `success`, `message`, `error`

Perform Create Patient Address through Brightree.

### [Create Patient From Document](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_create_patient_from_document.md)

- Handler: `brightree_create_patient_from_document`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `document_id`
- Outputs: `success`, `document_id`, `patient_id`, `patient_name`, `birth_date`, `patient_key`, `external_id`, `created`, `message`, `error_message`

Create or reuse a Brightree patient from an organization-owned document's extracted first name, last name, and birth date. Requires configured Brightree credentials and an organization strategy supporting patient search/create. The action checks for an existing patient before creation. success=true with created=false means an existing patient was reused. patient_id is local; patient_key identifies Brightree. An unverified existing link or ambiguous match requires review. Use fail_branch with an error edge to handle failures. No dry run is declared. After a timeout or uncertain external write, reconcile the Brightree record before retrying; an existence check is not an exactly-once guarantee.

### [Create Patient Note](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_create_patient_note.md)

- Handler: `brightree_create_patient_note`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `note_reason`, `subject`, `description`, `severity`, `state`, `status`, `date_needed`, `assigned_to_key`, `assigned_to_name`, `dry_run`

Perform Create Patient Note through Brightree.

### [Create Patient Note (If Not Exists)](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_create_patient_note_if_not_exists.md)

- Handler: `brightree_create_patient_note_if_not_exists`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `note_reason`, `subject`, `description`, `severity`, `state`, `status`, `date_needed`, `assigned_to_key`, `assigned_to_name`, `condition_field`, `skip_if_match`, `description_prepend_if_exists`, `description_append_if_exists`, `skip_if_match_fields`, `skip_if_entry_present`, `dry_run`

Perform Create Patient Note (If Not Exists) through Brightree.

### [Create Sales Order for Document](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_create_sales_order_for_document.md)

- Handler: `brightree_create_sales_order_for_document`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `document_id`, `dry_run`
- Outputs: `success`, `patient_key`, `document_id`, `dry_run`, `saved`, `sales_order_key`, `reused`, `message`, `error`

Perform Create Sales Order for Document through Brightree.

### [Dispatch Sales Order Templates](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_dispatch_sales_order_templates.md)

- Handler: `brightree_dispatch_sales_order_templates`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `account_key`, `classification`, `confirm_date_after`, `confirm_date_lookback_days`, `report_limit`, `runs_per_order`, `target_queue_depth`, `max_dispatch_per_run`, `use_local_agent`, `http_only`
- Outputs: `success`, `job_id`, `orders_dispatched`, `order_keys`, `queue_depth_before`, `queue_headroom`, `target_queue_depth`, `message`, `error`

Perform Dispatch Sales Order Templates through Brightree.

### [Download Fax](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_download_fax.md)

- Handler: `brightree_download_fax`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `preserve_duplicate_content`, `fax_key`, `assign_owner_name`, `assign_owner_key`, `received_date_from`, `received_date_to`, `work_status`, `show_unassigned`, `branch_offices`
- Outputs: `success`, `document_id`, `fax_key`, `filename`, `display_status`, `skipped`, `resumed`, `should_process`, `error`

Perform Download Fax through Brightree.

### [Edit Coverage Verified](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_edit_coverage_verified.md)

- Handler: `brightree_edit_coverage_verified`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `sales_order_key`, `checked`, `expected_current_wip_state`, `expected_current_classification`, `dry_run`
- Outputs: `success`, `dry_run`, `checked`, `was_already_checked`, `sales_order_key`, `message`, `error`

Perform Edit Coverage Verified through Brightree.

### [Edit Delivery Dates](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_edit_delivery_dates.md)

- Handler: `brightree_edit_delivery_dates`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `sales_order_key`, `scheduled_date`, `actual_date`

Perform Edit Delivery Dates through Brightree.

### [Edit Patient Insurance Policy Batches](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_edit_patient_insurance_policy_batches.md)

- Handler: `brightree_edit_patient_insurance_policy_batches`

- External effect: `write`
- Inputs: `policy_edit_batches`, `stop_on_failure`
- Outputs: `success`, `results`, `updated_count`, `failed_count`, `error_message`

Perform Edit Patient Insurance Policy Batches through Brightree.

### [Edit WIP State](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_edit_wip_state.md)

- Handler: `brightree_edit_wip_state`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `sales_order_key`, `target_wip_state`, `dry_run`

Perform Edit WIP State through Brightree.

### [Enqueue Sales Order Template Processing](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_enqueue_sales_order_template_processing.md)

- Handler: `brightree_enqueue_sales_order_template_processing`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `sales_order_key`, `account_key`, `runs`, `use_local_agent`, `http_only`
- Outputs: `success`, `orders_dispatched`, `order_keys`, `message`, `error`

Perform Enqueue Sales Order Template Processing through Brightree.

### [Ensure Brightree Session](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_ensure_session.md)

- Handler: `brightree_ensure_session`
- Connection type: `brightree`
- External effect: `write`

- Outputs: `available`, `status`, `reason`, `announcement_decision`, `announcement_ids`, `matched_pattern_ids`, `announcement_capture_status`, `announcement_source_state_id`, `announcement_page_hash`, `announcement_warning_alert_sent`

Perform Ensure Brightree Session through Brightree.

### [Ensure Sales Order Items](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_ensure_sales_order_items.md)

- Handler: `brightree_ensure_sales_order_items`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `document_id`, `patient_key`, `sales_order_key`, `items`, `dry_run`
- Outputs: `success`, `document_id`, `verified`, `dry_run`, `changed`, `added_items`, `missing_items`, `error`

Perform Ensure Sales Order Items through Brightree.

### [Ensure Sales Order Status](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_ensure_sales_order_status.md)

- Handler: `brightree_ensure_sales_order_status`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `sales_order_key`, `current_status`, `target_status`, `dry_run`

Perform Ensure Sales Order Status through Brightree.

### [Fetch Sales Order Documents](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_fetch_sales_order_documents.md)

- Handler: `brightree_fetch_sales_order_documents`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `sales_order_key`, `document_types`, `document_types_expression`, `patient_id`
- Outputs: `success`, `document_ids`, `documents`, `missing_types`, `errors`, `error`

Perform Fetch Sales Order Documents through Brightree.

### [Fetch Sales Order Void Reasons](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_fetch_sales_order_void_reasons.md)

- Handler: `brightree_fetch_sales_order_void_reasons`

- External effect: `write`

- Outputs: `success`, `reasons`, `reason_count`, `raw_reasons`, `error`, `error_message`

Perform Fetch Sales Order Void Reasons through Brightree.

### [Finalize Template Schedule Audit Cycle](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_finalize_template_schedule_audit_cycle.md)

- Handler: `brightree_finalize_template_schedule_audit_cycle`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `account_key`, `cycle_id`, `max_candidates`
- Outputs: `success`, `cycle_id`, `completed`, `should_send_summary`, `cycle_status`, `total_item_count`, `correct_count`, `corrected_count`, `deferred_count`, `manual_review_count`, `failed_count`, `message`, `error`

Perform Finalize Template Schedule Audit Cycle through Brightree.

### [Find or Create Facility](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_ensure_facility.md)

- Handler: `brightree_ensure_facility`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `facility_name`, `address_1`, `city`, `state`, `postal_code`, `match_address_1`, `match_city`, `match_state`, `match_postal_code`, `match_address_source`, `phone`, `fax`, `create_if_missing`, `require_address`
- Outputs: `success`, `message`, `facility`, `facility_text`, `facility_value`, `facility_key`, `created`, `found`, `skipped`, `action_required`, `action_required_message`, `selection_reason`, `missing_fields`, `error`

Perform Find or Create Facility through Brightree.

### [Find Sales Orders in WIP State](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_search_sales_orders_by_wip_state.md)

- Handler: `brightree_search_sales_orders_by_wip_state`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `wip_states`, `order_statuses`, `classification`, `order_branches`, `created_within_days`, `max_orders_to_read`, `shard_count`, `shard_index`
- Outputs: `success`, `complete`, `orders`, `sales_order_keys`, `count`, `scanned_count`, `searched_count`, `searched_statuses`, `created_from`, `wip_states`, `shard_index`, `shard_count`, `message`, `error`, `error_message`

Perform Find Sales Orders in WIP State through Brightree.

### [Get Deposit Balance](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_get_deposit_balance.md)

- Handler: `brightree_get_deposit_balance`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `deposit_key`
- Outputs: `deposit_key`, `balance`, `is_balanced`, `reference`, `description`, `brightree_url`, `error`

Perform Get Deposit Balance through Brightree.

### [Get Documents from Patient](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_fetch_patient_documents.md)

- Handler: `brightree_fetch_patient_documents`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `document_types`, `document_types_expression`, `max_documents`, `patient_id`
- Outputs: `success`, `document_ids`, `documents`, `missing_types`, `available_types`, `errors`, `error`

Perform Get Documents from Patient through Brightree.

### [Get Latest Sales Order](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_get_latest_sales_order.md)

- Handler: `brightree_get_latest_sales_order`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `patient_key`, `status`, `created_date_from`, `created_date_to`, `read_detail`
- Outputs: `sales_order_key`, `scheduled_date`, `found`, `error`

Perform Get Latest Sales Order through Brightree.

### [Get Patient Notes](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_get_patient_notes.md)

- Handler: `brightree_get_patient_notes`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `patient_key`, `note_types`, `status`
- Outputs: `notes_by_type`, `notes`

Perform Get Patient Notes through Brightree.

### [Get Template Dispatch Batch Status](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_get_template_dispatch_batch_status.md)

- Handler: `brightree_get_template_dispatch_batch_status`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `job_id`
- Outputs: `success`, `job_id`, `dispatcher_status`, `dispatcher_finished`, `total_orders`, `settled`, `completed`, `failed`, `skipped`, `in_flight`, `not_started`, `is_complete`, `completed_order_keys`, `failed_order_keys`, `skipped_order_keys`, `in_flight_order_keys`, `not_started_order_keys`, `message`, `error`

Perform Get Template Dispatch Batch Status through Brightree.

### [Historical Margin Summary](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_historical_margin_summary.md)

- Handler: `brightree_historical_margin_summary`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `date_from`, `date_to`, `min_claim_age_days`, `min_group_orders`, `top_n`
- Outputs: `success`, `date_from`, `date_to`, `line_count`, `paid_line_count`, `unpaid_line_count`, `revenue`, `cost`, `gp_dollars`, `gp_pct`, `negative_pct`, `below_15_pct`, `below_30_pct`, `by_payer`, `by_hcpcs`, `sku_opportunities`, `error`

Perform Historical Margin Summary through Brightree.

### [Identify Vendor](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_identify_vendor.md)

- Handler: `brightree_identify_vendor`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `new_so_key`, `patient_key`, `patient_note_key`
- Outputs: `reason`, `status`, `has_vendor`, `vendor_name`

Perform Identify Vendor through Brightree.

### [List CMN Recertification Candidates](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_list_cmn_recertification_candidates.md)

- Handler: `brightree_list_cmn_recertification_candidates`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `branch_name`, `as_of_date`, `window_days`, `exclude_faxed_this_cycle`, `maximum_faxes_per_run`, `maximum_candidates`
- Outputs: `success`, `report_id`, `as_of_date`, `window_end_date`, `window_days`, `export_row_count`, `scoped_row_count`, `candidate_count`, `distinct_patient_count`, `distinct_provider_count`, `multi_cmn_patient_count`, `maximum_cmns_per_patient`, `zero_to_seven_day_count`, `eight_to_thirty_day_count`, `thirty_one_plus_day_count`, `missing_expiration_count`, `malformed_expiration_count`, `expired_count`, `beyond_window_count`, `invalid_identity_count`, `missing_ordering_doctor_count`, `branch_mismatch_count`, `inactive_status_count`, `placeholder_count`, `duplicate_cycle_count`, `report_missing_provider_fax_count`, `fax_history_count`, `faxed_this_cycle_count`, `failed_delivery_count`, `data_quality_exception_count`, `excluded_row_count`, `candidates`, `batch`, `batch_count`, `eligible_count`, `held_no_provider_fax`, `held_already_faxed`, `maximum_faxes_per_run`, `failed_delivery_cmns`, `retryable`, `manual_review_required`, `report_job_id`, `report_job_resume_state`, `error`

Perform List CMN Recertification Candidates through Brightree.

### [List Deposit Receipts](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_list_deposit_receipts.md)

- Handler: `brightree_list_deposit_receipts`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `deposit_key`
- Outputs: `deposit_key`, `receipts`, `count`, `error`

Perform List Deposit Receipts through Brightree.

### [List Inbound Faxes](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_list_inbound_faxes.md)

- Handler: `brightree_list_inbound_faxes`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `received_date_from`, `received_date_to`, `work_status`, `show_unassigned`, `owner_scope`, `branch_offices`, `exclude_nonempty_report_type`, `max_pages`, `max_items`
- Outputs: `faxes`, `count`, `total_items`, `total_pages`, `has_more`, `message`

Perform List Inbound Faxes through Brightree.

### [Log CMN](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_log_cmn.md)

- Handler: `brightree_log_cmn`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `cmn_key`, `cmn_form_key`
- Outputs: `success`, `logged`, `noop`, `cmn_key`, `cmn_form_key`, `previous_status`, `actual_status`, `message`, `error`

Perform Log CMN through Brightree.

### [Log Prior Authorization](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_log_prior_authorization.md)

- Handler: `brightree_log_prior_authorization`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `sales_order_key`, `sales_order_detail_keys`, `par_number`, `initial_date`, `expiration_date`, `log_par`, `dry_run`
- Outputs: `success`, `dry_run`, `sales_order_key`, `par_number`, `initial_date`, `expiration_date`, `items_requested`, `items_logged`, `items`, `message`, `error`

Perform Log Prior Authorization through Brightree.

### [Margin Gate (expected margin)](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_margin_gate.md)

- Handler: `brightree_margin_gate`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `dry_run`, `margin_threshold_percent`, `destination_wip_state`, `scan_wip_states`, `max_orders`, `days_back`, `reevaluate_after_days`, `continue_on_error`
- Outputs: `success`, `dry_run`, `orders_scanned`, `orders_evaluated`, `flagged`, `wip_moved`, `skipped_unpriced`, `skipped_no_estimates`, `skipped_partial_estimates`, `skipped_already_flagged`, `skipped_recently_evaluated`, `skipped_wrong_wip`, `skipped_wip_unreadable`, `order_errors`, `error`

Perform Margin Gate (expected margin) through Brightree.

### [Margin Gate (historical evidence)](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_historical_margin_gate.md)

- Handler: `brightree_historical_margin_gate`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `dry_run`, `margin_threshold_percent`, `min_reimbursement_ratio`, `destination_wip_state`, `scan_wip_states`, `max_orders`, `days_back`, `reevaluate_after_days`, `candidate_lookback_days`, `continue_on_error`
- Outputs: `success`, `dry_run`, `orders_scanned`, `orders_matched`, `flagged`, `wip_moved`, `would_move`, `unverified`, `skipped_out_of_band`, `skipped_already_flagged`, `skipped_recently_evaluated`, `order_errors`, `unverified_reasons`, `error`

Perform Margin Gate (historical evidence) through Brightree.

### [Margin Scorecard (persist + render)](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_margin_scorecard.md)

- Handler: `brightree_margin_scorecard`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `org_label`, `period_days`, `date_from`, `date_to`, `min_claim_age_days`, `min_group_orders`, `top_n`, `persist_snapshot`
- Outputs: `success`, `period_start`, `period_end`, `line_count`, `paid_line_count`, `unpaid_line_count`, `revenue`, `cost`, `gp_dollars`, `gp_pct`, `has_prior_period`, `prior_gp_pct`, `gp_pct_change`, `comparable_to_prior`, `snapshot_id`, `snapshot_persisted`, `html_body`, `subject`, `error`

Perform Margin Scorecard (persist + render) through Brightree.

### [Mark Template Schedule Audit Summary Sent](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_mark_template_schedule_audit_summary_sent.md)

- Handler: `brightree_mark_template_schedule_audit_summary_sent`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `cycle_id`
- Outputs: `success`, `cycle_id`, `completed`, `should_send_summary`, `cycle_status`, `message`, `error`

Perform Mark Template Schedule Audit Summary Sent through Brightree.

### [Post Deposit](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_post_deposit.md)

- Handler: `brightree_post_deposit`
- Connection type: `brightree`
- External effect: `irreversible`
- Inputs: `deposit_key`, `funds_confirmed`, `dry_run`
- Outputs: `success`, `dry_run`, `deposit_key`, `message`, `posted`, `balance`, `is_balanced`, `was_already_posted`, `failure_category`, `brightree_url`, `error`

Perform Post Deposit through Brightree.

### [Prepare CMN Recertification Dates](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_prepare_cmn_recertification.md)

- Handler: `brightree_prepare_cmn_recertification`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `run_date`, `cmn_key`, `cmn_form_key`, `patient_key`, `ordering_doctor_key`, `source_expiration_date`, `report_provider_fax_present`, `dry_run`
- Outputs: `success`, `dry_run`, `prepared`, `noop`, `manual_review_required`, `retryable`, `idempotency_reused`, `outreach_status`, `patient_disposition`, `outcome_category`, `cmn_key`, `renewal_cmn_key`, `cmn_form_key`, `patient_key`, `ordering_doctor_key`, `source_expiration_date`, `fax_cycle_expiration_date`, `length_of_need_months`, `proposed_recertification_date`, `proposed_expiration_date`, `mismatches`, `message`, `error`

Perform Prepare CMN Recertification Dates through Brightree.

### [Process Intake Chart](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_process_intake_chart.md)

- Handler: `brightree_process_intake_chart`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `document_id`, `demographics_document_id`, `progress_note_document_id`
- Outputs: `success`, `document_id`, `processed_demographics`, `processed_progress_note`, `message`, `error`

Perform Process Intake Chart through Brightree.

### [Process Sales Order Templates](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_process_sales_order_templates.md)

- Handler: `brightree_process_sales_order_templates`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `sales_order_key`, `account_key`, `runs`, `use_local_agent`, `http_only`, `job_id`, `insurance_name`, `patient_key`, `patient_note_key`, `skip_template_types`, `manual_review_backfill`
- Outputs: `success`, `sales_order_key`, `successful_runs`, `failed_runs`, `skipped_runs`, `outcome_category`, `outcome_reason`, `failure_stage`, `skip_reason`, `templates_created`, `needs_reconciliation`, `reconciliation_summary`, `order_profile`, `template_decision`, `manual_review_required`, `manual_review_attempted`, `manual_review_marked`, `manual_review_reason`, `manual_review_blocked`, `manual_review_block_reason`, `manually_resolved`, `manually_resolved_runs`, `attempt_failed_runs`, `error`

Perform Process Sales Order Templates through Brightree.

### [Push Diagnosis Codes](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_push_diagnosis_codes_to_patient.md)

- Handler: `brightree_push_diagnosis_codes_to_patient`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `diagnosis_codes`, `document_id`
- Outputs: `success`, `document_id`, `patient_key`, `pushed`, `icd10_added`, `icd9_added`, `icd10_duplicates`, `icd9_duplicates`, `icd10_failed`, `icd9_failed`, `icd10_no_slot`, `icd9_no_slot`, `message`, `error_message`

Perform Push Diagnosis Codes through Brightree.

### [Push Fax Clinical Data](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_push_fax_clinical_data.md)

- Handler: `brightree_push_fax_clinical_data`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `document_id`
- Outputs: `success`, `document_id`, `error`

Perform Push Fax Clinical Data through Brightree.

### [Read CMN Detail](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_read_cmn_detail.md)

- Handler: `brightree_read_cmn_detail`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `patient_key`, `cmn_key`, `cmn_form_key`, `status_filter`, `occurrence`, `cmn_form_contains`
- Outputs: `success`, `branchable_error`, `error`, `patient_key`, `cmn_key`, `cmn_form_key`, `cmn_status`, `cmn_initial_date`, `cmn_recertification_date`, `cmn_length_of_need_months`, `cmn_expiration`, `cmn_signature_date`, `doctor_name`, `doctor_key`, `cmn_type`, `cmn_type_key`, `branch_name`, `branch_key`, `policy_key`, `policy_text`, `payer_name`, `payer_id`, `policy_level`, `policy_effective_date`, `records`, `count`, `total_records`, `filtered_records`, `selected_row`, `detail_url`, `billable_items`, `billable_proc_codes`, `billable_items_complete`

Perform Read CMN Detail through Brightree.

### [Read Deposit ERN Tab](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_read_deposit_ern.md)

- Handler: `brightree_read_deposit_ern`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `deposit_key`
- Outputs: `deposit_key`, `claims`, `count`, `provider`, `batch`, `brightree_url`, `error`

Perform Read Deposit ERN Tab through Brightree.

### [Read Invoice Payment Page](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_read_invoice_payment_page.md)

- Handler: `brightree_read_invoice_payment_page`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `deposit_key`, `receipt_key`, `invoice_key`
- Outputs: `invoice_key`, `invoice_number`, `patient_name`, `date_of_service`, `payer`, `total_balance`, `total_balance_amount`, `proc_lines`, `insurance_tiers`, `brightree_url`, `error`

Perform Read Invoice Payment Page through Brightree.

### [Read Latest CMN Fax Activity](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_read_cmn_fax_status.md)

- Handler: `brightree_read_cmn_fax_status`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `cmn_key`, `cmn_form_key`
- Outputs: `success`, `cmn_key`, `cmn_form_key`, `outcome`, `fax_status`, `fax_status_reason`, `fax_activity_date_time`, `fax_activity_count`, `observed_complete`, `observed_processing`, `observed_failed`, `correlated_to_attempt`, `manual_review_required`, `error`

Perform Read Latest CMN Fax Activity through Brightree.

### [Read Patient Address](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_read_patient_address.md)

- Handler: `brightree_read_patient_address`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `patient_key`, `state_code`
- Outputs: `success`, `billing_address`, `primary_delivery_address`, `billing_state`, `primary_delivery_state`, `matches_state`, `error`

Perform Read Patient Address through Brightree.

### [Read Patient Facility](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_read_patient_facility.md)

- Handler: `brightree_read_patient_facility`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `patient_key`
- Outputs: `success`, `facility_found`, `facility`, `facility_name`, `facility_source`, `error`

Perform Read Patient Facility through Brightree.

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

- Handler: `brightree_read_patient_insurance`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `patient_key`, `include_inactive`

Perform Read Patient Insurance through Brightree.

### [Read Patient Personal State](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_read_patient_personal_state.md)

- Handler: `brightree_read_patient_personal_state`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `patient_key`
- Outputs: `success`, `personal_state`, `branch_office`, `account_group`, `pos`, `error`

Perform Read Patient Personal State through Brightree.

### [Read Sales Order](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_read_sales_order.md)

- Handler: `brightree_read_sales_order`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `sales_order_key`, `tabs`, `include_patient_marketing_referral`, `include_item_master_names`
- Outputs: `success`, `sales_order_key`, `patient_id`, `patient_key`, `patient_name`, `order_number`, `header`, `order`, `clinical`, `insurance`, `items`, `purchasing`, `schedule`, `pod`, `messages`, `custom_fields`, `forms`, `history`, `documents`, `patient_marketing_referral`, `url`, `patient_key_error`, `error`

Perform Read Sales Order through Brightree.

### [Read Task Detail](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_read_task_detail.md)

- Handler: `brightree_read_task_detail`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `patient_key`, `patient_note_key`, `patient_note_type_key`
- Outputs: `patient`

Perform Read Task Detail through Brightree.

### [Reassign Tasks by Name](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_reassign_tasks_by_name.md)

- Handler: `brightree_reassign_tasks_by_name`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `source_assigned_to_name`, `target_assigned_to_name`, `task_type`, `task_status`, `date_needed_from`, `date_needed_to`, `subject_contains`, `max_tasks`
- Outputs: `found`, `reassigned`

Perform Reassign Tasks by Name through Brightree.

### [Reconcile Fax Insurance](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_reconcile_fax_insurance.md)

- Handler: `brightree_reconcile_fax_insurance`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `document_id`
- Outputs: `success`, `document_id`, `primary_outcome`, `had_demographics`, `error`

Perform Reconcile Fax Insurance through Brightree.

### [Reconcile Template Schedule](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_reconcile_template_schedule.md)

- Handler: `brightree_reconcile_template_schedule`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `template`, `account_key`, `max_attempts`, `retry_delay_seconds`
- Outputs: `success`, `outcome_category`, `audit_outcome`, `template_key`, `source_sales_order_key`, `previous_next_run_date`, `expected_next_run_date`, `actual_next_run_date`, `metadata_fields_corrected`, `schedule_corrected`, `item_quantities_verified`, `item_fields_corrected`, `template_item_detail_key`, `attempts`, `manual_review_required`, `broader_review_required`, `attention_note_present`, `template_created_by`, `manual_review_marked`, `reason`, `error`

Perform Reconcile Template Schedule through Brightree.

### [Refresh Historical Order Index](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_refresh_historical_order_index.md)

- Handler: `brightree_refresh_historical_order_index`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `days_back`, `skip_recent_days`, `date_from`, `date_to`, `max_orders`, `reobserve_unpaid_after_days`, `include_actual_financials`, `reprocess_paid`, `continue_on_error`
- Outputs: `success`, `date_from`, `date_to`, `window_exhausted`, `days_completed`, `orders_seen`, `orders_processed`, `orders_skipped_settled`, `orders_skipped_fresh`, `order_lines_seen`, `inserted`, `updated`, `orders_without_indexable_items`, `financial_estimates_unavailable`, `order_errors`, `error`

Perform Refresh Historical Order Index through Brightree.

### [Resolve Client Sheet Costs](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_resolve_client_sheet_costs.md)

- Handler: `brightree_resolve_client_sheet_costs`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `max_rows`
- Outputs: `success`, `catalog_entries`, `rows_scanned`, `cost_written`, `matched_item`, `matched_hcpcs`, `no_catalog_match`, `quantity_unparsed`, `uncosted_remaining`, `error`

Perform Resolve Client Sheet Costs through Brightree.

### [Resolve CMN-Linked Sales Order](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_resolve_cmn_linked_sales_order.md)

- Handler: `brightree_resolve_cmn_linked_sales_order`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `patient_key`, `cmn_key`, `statuses`, `required_wip_state`, `require_actual_delivery`, `allow_multiple`, `max_candidates`
- Outputs: `success`, `patient_key`, `cmn_key`, `sales_order_key`, `status`, `created_date`, `scheduled_delivery_date`, `actual_delivery_date`, `wip_state`, `candidate_count`, `linked_order_keys`, `matching_order_keys`, `error`

Perform Resolve CMN-Linked Sales Order through Brightree.

### [Resolve Historical Order Costs](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_resolve_historical_order_costs.md)

- Handler: `brightree_resolve_historical_order_costs`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `max_orders`, `continue_on_error`
- Outputs: `success`, `candidates_selected`, `candidates_remaining`, `cost_written`, `no_received_po`, `no_usable_810`, `shared_po_skipped`, `order_errors`, `shared_purchase_orders`, `error`

Perform Resolve Historical Order Costs through Brightree.

### [Resolve Order Document Type](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_resolve_order_document_type.md)

- Handler: `brightree_resolve_order_document_type`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `patient_key`, `order_category`
- Outputs: `success`, `document_type`, `error_code`, `error`

Perform Resolve Order Document Type through Brightree.

### [Resolve Patient Context](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_resolve_patient_context.md)

- Handler: `brightree_resolve_patient_context`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `patient_id`
- Outputs: `success`, `patient_id`, `patient_key`, `demographics`, `patient_state_snapshot`, `ordering_doctor`, `ordering_doctor_found`, `marketing_rep_key`, `marketing_rep_name`, `marketing_rep_found`, `warnings`, `error`

Perform Resolve Patient Context through Brightree.

### [Resolve Patient Facility](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_resolve_patient_facility.md)

- Handler: `brightree_resolve_patient_facility`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `patient_key`, `facility_name`, `expected_address`, `facility`, `delivery_info`, `facility_source`, `is_private_residence`, `skip_address_validation`, `skip_if_missing`
- Outputs: `success`, `facility_found`, `is_private_residence`, `delivery_info`, `facility`, `facility_source`, `expected_facility_address`, `facility_text`, `facility_value`, `facility_key`, `skip_facility_write`, `skip_address_sync`, `facility_search_name`, `facility_search_count`, `facility_selection_reason`, `selected_facility`, `action_required`, `action_required_message`, `error`

Perform Resolve Patient Facility through Brightree.

### [Run Report](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_run_report.md)

- Handler: `brightree_run_report`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `report`, `filters`, `allow_default_date_ranges`, `max_rows`
- Outputs: `success`, `rows`, `row_count`, `columns`, `truncated`, `error`, `total_row_count`, `report_id`, `report_title`, `date_ranges`

Perform Run Report through Brightree.

### [Run Saved Report](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_run_saved_report.md)

- Handler: `brightree_run_saved_report`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `report_name`, `date_filter`, `on_or_after`, `on_or_before`, `max_rows`
- Outputs: `success`, `rows`, `row_count`, `columns`, `truncated`, `error`, `report_name`, `filters_applied`

Perform Run Saved Report through Brightree.

### [Search Deposits](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_search_deposits.md)

- Handler: `brightree_search_deposits`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `status`, `reference`, `deposit_id`, `posted_date_from`, `posted_date_to`, `max_pages`
- Outputs: `deposits`, `count`, `current_page`, `total_pages`, `has_more`, `message`, `error`

Perform Search Deposits through Brightree.

### [Search Marketing Referral Facility Options](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_search_marketing_referral_facility_options.md)

- Handler: `brightree_search_marketing_referral_facility_options`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `patient_key`, `search_text`
- Outputs: `success`, `facilities`, `count`, `error`

Perform Search Marketing Referral Facility Options through Brightree.

### [Search Order](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_search_order.md)

- Handler: `brightree_search_order`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `patient_key`, `order_status`, `classification`, `order_branches`, `fetch_all`, `page`, `page_size`
- Outputs: `success`, `complete`, `orders`, `sales_order_keys`, `count`, `total_items`, `total_pages`, `current_page`, `page`, `page_size`, `fetch_all`, `order_status`, `patient_key`, `message`, `error`, `error_message`

Perform Search Order through Brightree.

### [Search Patient](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_search_patient.md)

- Handler: `brightree_search_patient`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `first_name`, `last_name`
- Outputs: `patients`, `count`

Search Brightree patients by first and/or last name using the organization's configured connection. Returns patients and count; a name match alone is not a verified patient identity. Reconcile date of birth and other identifiers before a dependent write. Use brightree_check_patient_exists for the organization's document-based identity check. No matches returns an empty patients list and count=0. Connection failures can fail the node.

### [Search Patient Facility Options](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_search_patient_facility_options.md)

- Handler: `brightree_search_patient_facility_options`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `patient_key`, `search_text`
- Outputs: `success`, `facilities`, `count`, `error`

Perform Search Patient Facility Options through Brightree.

### [Search Private ERNs](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_search_private_erns.md)

- Handler: `brightree_search_private_erns`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `status`, `trace_number`, `deposit_id`, `insurance`
- Outputs: `deposits`, `count`, `current_page`, `total_pages`, `has_more`, `message`, `error`

Perform Search Private ERNs through Brightree.

### [Search Receipt Invoices](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_search_receipt_invoices.md)

- Handler: `brightree_search_receipt_invoices`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `deposit_key`, `receipt_key`, `search_criteria`, `exclude_zero_balances`, `include_patient`, `include_insurance`, `include_facility`
- Outputs: `deposit_key`, `receipt_key`, `invoices`, `count`, `message`, `error`

Perform Search Receipt Invoices through Brightree.

### [Search Sales Orders by Actual Delivery Date](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_search_sales_orders_by_actual_delivery.md)

- Handler: `brightree_search_sales_orders_by_actual_delivery`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `actual_delivery_from`, `actual_delivery_to`, `classification`, `order_branches`, `page`, `page_size`, `fetch_all`, `include_orders`
- Outputs: `success`, `complete`, `orders`, `sales_order_keys`, `count`, `total_items`, `total_pages`, `pages_fetched`, `current_page`, `page`, `page_size`, `fetch_all`, `include_orders`, `actual_delivery_from`, `actual_delivery_to`, `duplicate_key_count`, `completion_evidence`, `html_row_count`, `unique_record_count`, `message`, `error`, `error_message`

Perform Search Sales Orders by Actual Delivery Date through Brightree.

### [Search Sales Orders by Created Date](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_search_sales_orders_by_created_date.md)

- Handler: `brightree_search_sales_orders_by_created_date`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `created_from`, `created_to`, `classification`, `order_branches`, `page`, `page_size`, `fetch_all`, `include_orders`
- Outputs: `success`, `complete`, `orders`, `sales_order_keys`, `count`, `total_items`, `total_pages`, `pages_fetched`, `current_page`, `page`, `page_size`, `fetch_all`, `include_orders`, `created_from`, `created_to`, `duplicate_key_count`, `completion_evidence`, `html_row_count`, `unique_record_count`, `message`, `error`, `error_message`

Perform Search Sales Orders by Created Date through Brightree.

### [Search SO Worklist](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_search_so_worklist.md)

- Handler: `brightree_search_so_worklist`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `wip_states`, `page`, `fetch_all`, `include_unassigned`, `sort_by_time_in_wip`, `actual_delivery_date_to`
- Outputs: `orders`

Perform Search SO Worklist through Brightree.

### [Search Tasks](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_search_tasks.md)

- Handler: `brightree_search_tasks`
- Connection type: `brightree`
- External effect: `read`
- Inputs: `date_needed_from`, `date_needed_to`, `task_type`, `status`, `severity`, `assigned_to_key`, `subject`, `description`, `page_size`, `max_pages`
- Outputs: `tasks`

Perform Search Tasks through Brightree.

### [Select Sales Order Templates](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_select_sales_order_templates.md)

- Handler: `brightree_select_sales_order_templates`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `account_key`, `classification`, `confirm_date_after`, `confirm_date_lookback_days`, `report_limit`, `target_queue_depth`, `max_dispatch_per_run`, `use_local_agent`
- Outputs: `success`, `orders_selected`, `order_keys`, `queue_depth_before`, `queue_headroom`, `target_queue_depth`, `source_system`, `source_report_name`, `source_report_base_url`, `source_account_key`, `source_filter_summary`, `source_filter_rows`, `source_confirm_date_after_configured`, `source_confirm_date_after_effective`, `source_confirm_date_lookback_days`, `raw_count`, `deduped_count`, `candidate_count`, `text_filter_candidate_count`, `dispatchable_count`, `recently_excluded`, `in_flight_excluded`, `exhausted_excluded`, `verification_excluded`, `verification_excluded_order_keys`, `not_processed_orders`, `not_processed_omitted_count`, `not_processed_seen_count`, `exhausted_alert_sent`, `exhausted_alert_suppressed`, `exhausted_alert_job_id`, `report_cap_alert_level`, `report_cap_alert_sent`, `report_cap_alert_suppressed`, `report_cap_alert_job_id`, `message`, `error`

Perform Select Sales Order Templates through Brightree.

### [Select Template Schedule Audit Candidates](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_select_template_schedule_audit_candidates.md)

- Handler: `brightree_select_template_schedule_audit_candidates`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `account_key`, `start_date`, `end_date`, `max_candidates`
- Outputs: `success`, `templates`, `count`, `start_date`, `end_date`, `message`, `error`

Perform Select Template Schedule Audit Candidates through Brightree.

### [Send CMN Electronic Fax](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_send_cmn_electronic_fax.md)

- Handler: `brightree_send_cmn_electronic_fax`
- Connection type: `brightree`
- External effect: `irreversible`
- Inputs: `run_date`, `cmn_key`, `fax_target_cmn_key`, `cmn_form_key`, `comments`, `prepare_only`, `cmn_expiration_date`, `confirm_send`
- Outputs: `success`, `submitted`, `rejected`, `prepare_only`, `indeterminate`, `manual_review_required`, `retryable`, `idempotency_reused`, `dispatch_status`, `patient_disposition`, `outcome_category`, `cmn_key`, `fax_target_cmn_key`, `cmn_form_key`, `fax_job_key`, `include_cmn_cover_letter`, `include_fax_cover_sheet`, `recipient_name_present`, `recipient_phone_present`, `recipient_fax_present`, `sender_fields_present`, `recipient_override_applied`, `fax_history_observed`, `fax_status`, `fax_status_reason`, `message`, `error`

Perform Send CMN Electronic Fax through Brightree.

### [Set Fax Work Status](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_set_fax_work_status.md)

- Handler: `brightree_set_fax_work_status`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `fax_key`, `target_status`, `received_date_from`, `received_date_to`, `work_status_filter`, `show_unassigned`, `branch_offices`, `max_pages`
- Outputs: `success`, `fax_key`, `error`

Perform Set Fax Work Status through Brightree.

### [Set Patient Account Group](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_set_patient_account_group.md)

- Handler: `brightree_set_patient_account_group`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `account_group`
- Outputs: `success`, `message`, `updated_fields`, `account_group`, `error`

Perform Set Patient Account Group through Brightree.

### [Set Patient Custom Field Selection](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_set_patient_custom_field_selection.md)

- Handler: `brightree_set_patient_custom_field_selection`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `field_label`, `option_label`
- Outputs: `success`, `changed`, `error`

Perform Set Patient Custom Field Selection through Brightree.

### [Set Patient Delivery Address Same As Billing](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_set_patient_delivery_address_same_as_billing.md)

- Handler: `brightree_set_patient_delivery_address_same_as_billing`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `max_validation_attempts`, `overwrite_existing_delivery_address`, `dry_run`, `failure_alert_channel`
- Outputs: `success`, `skipped`, `skip_reason`, `message`, `updated_fields`, `verification_details`, `error`

Perform Set Patient Delivery Address Same As Billing through Brightree.

### [Set Patient Dropdowns](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_set_patient_dropdowns.md)

- Handler: `brightree_set_patient_dropdowns`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `branch_office`, `account_group`, `pos`, `skip`, `dry_run`
- Outputs: `success`, `message`, `updated_fields`, `verification_details`, `branch_office`, `account_group`, `pos`, `skipped`, `error`

Perform Set Patient Dropdowns through Brightree.

### [Set Patient Dropdowns](https://genhealth.ai/docs/workflows/integrations/brightree/intake_set_patient_dropdowns.md)

- Handler: `intake_set_patient_dropdowns`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_id`, `patient_state`, `patient_key`, `patient_context`, `facility_payload`, `patient_state_snapshot`, `account_key`, `dry_run`, `is_private_residence`, `personal_state_payload`, `account_group`, `set_dropdowns`

Perform Set Patient Dropdowns through Brightree.

### [Set Patient Facility](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_set_patient_facility.md)

- Handler: `brightree_set_patient_facility`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `facility_text`, `facility_value`, `skip_if_missing`, `dry_run`
- Outputs: `success`, `message`, `updated_fields`, `skipped`, `error`

Perform Set Patient Facility through Brightree.

### [Set Patient Hold Account](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_set_patient_hold_account.md)

- Handler: `brightree_set_patient_hold_account`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `hold_account`, `skip`, `dry_run`
- Outputs: `success`, `message`, `updated_fields`, `verification_details`, `skipped`, `error`

Perform Set Patient Hold Account through Brightree.

### [Set Patient Marketing Referral Facility](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_set_patient_marketing_referral_facility.md)

- Handler: `brightree_set_patient_marketing_referral_facility`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `facility_text`, `facility_value`, `skip_if_missing`, `dry_run`, `marketing_rep_name`, `marketing_rep_value`
- Outputs: `success`, `message`, `updated_fields`, `skipped`, `error`

Perform Set Patient Marketing Referral Facility through Brightree.

### [Set Patient Primary Doctor Same as Ordering](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_set_patient_primary_doctor_same_as_ordering.md)

- Handler: `brightree_set_patient_primary_doctor_same_as_ordering`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `dry_run`
- Outputs: `success`, `message`, `updated_fields`, `verification_details`, `skipped`, `error`

Perform Set Patient Primary Doctor Same as Ordering through Brightree.

### [Set Patient Responsible Party to Self](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_set_patient_responsible_party_to_self.md)

- Handler: `brightree_set_patient_responsible_party_to_self`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `dry_run`
- Outputs: `success`, `message`, `updated_fields`, `verification_details`, `skipped`, `error`

Perform Set Patient Responsible Party to Self through Brightree.

### [Set Patient Tax Zone](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_set_patient_tax_zone.md)

- Handler: `brightree_set_patient_tax_zone`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `tax_zone_text`, `tax_zone_value`, `skip_if_missing`, `dry_run`
- Outputs: `success`, `message`, `updated_fields`, `tax_zone_text`, `tax_zone_value`, `expected_tax_zone`, `verification_details`, `skipped`, `error`

Perform Set Patient Tax Zone through Brightree.

### [Set Patient User Fields](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_set_patient_user_fields.md)

- Handler: `brightree_set_patient_user_fields`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `user_fields`, `skip`, `dry_run`
- Outputs: `success`, `message`, `updated_fields`, `verification_details`, `skipped`, `error`

Perform Set Patient User Fields through Brightree.

### [Set Primary Doctor](https://genhealth.ai/docs/workflows/integrations/brightree/intake_set_primary_doctor.md)

- Handler: `intake_set_primary_doctor`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_id`, `patient_state`, `patient_key`, `patient_context`, `facility_payload`, `patient_state_snapshot`, `account_key`, `dry_run`

Perform Set Primary Doctor through Brightree.

### [Set Responsible Party](https://genhealth.ai/docs/workflows/integrations/brightree/intake_set_responsible_party.md)

- Handler: `intake_set_responsible_party`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_id`, `patient_state`, `patient_key`, `patient_context`, `facility_payload`, `patient_state_snapshot`, `account_key`, `dry_run`

Perform Set Responsible Party through Brightree.

### [Set Sales Order Workers Comp Fields Batches](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_set_sales_order_workers_comp_fields_batches.md)

- Handler: `brightree_set_sales_order_workers_comp_fields_batches`

- External effect: `write`
- Inputs: `workers_comp_batches`
- Outputs: `success`, `results`, `updated_count`, `failed_count`, `error_message`

Perform Set Sales Order Workers Comp Fields Batches through Brightree.

### [Set Tax Zone](https://genhealth.ai/docs/workflows/integrations/brightree/intake_set_tax_zone.md)

- Handler: `intake_set_tax_zone`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_id`, `patient_state`, `patient_key`, `patient_context`, `facility_payload`, `patient_state_snapshot`, `account_key`, `dry_run`, `delivery_info`

Perform Set Tax Zone through Brightree.

### [Setup Patient Controls](https://genhealth.ai/docs/workflows/integrations/brightree/intake_setup_patient_controls.md)

- Handler: `intake_setup_patient_controls`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_id`, `patient_state`, `patient_key`, `patient_context`, `facility_payload`, `patient_state_snapshot`, `account_key`, `dry_run`, `is_private_residence`, `personal_state_payload`, `account_group`, `set_dropdowns`, `delivery_info`

Perform Setup Patient Controls through Brightree.

### [Setup Patient Facility](https://genhealth.ai/docs/workflows/integrations/brightree/intake_setup_patient_facility.md)

- Handler: `intake_setup_patient_facility`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_id`, `patient_state`, `patient_key`, `patient_context`, `precheck_payload`, `delivery_address`, `patient_facility_payload`, `note_facility_name`, `note_facility_updates`, `note_indicates_private_residence`, `account_key`, `dry_run`

Perform Setup Patient Facility through Brightree.

### [Sync Document Insurance](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_sync_document_insurance_to_patient.md)

- Handler: `brightree_sync_document_insurance_to_patient`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `document_id`, `patient_key`
- Outputs: `success`, `document_id`, `patient_key`, `insurance_id`, `carrier_id`, `policy_key`, `insurer_name`, `start_date`, `synced`, `skipped`, `message`, `error_message`

Perform Sync Document Insurance through Brightree.

### [Sync Document Marketing Rep](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_sync_document_marketing_rep_to_patient.md)

- Handler: `brightree_sync_document_marketing_rep_to_patient`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `document_id`, `patient_key`
- Outputs: `success`, `document_id`, `patient_key`, `marketing_rep_key`, `marketing_rep_name`, `submitted_by_name`, `synced`, `message`, `error_message`

Perform Sync Document Marketing Rep through Brightree.

### [Sync Item Costs](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_sync_item_costs.md)

- Handler: `brightree_sync_item_costs`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `max_items`, `reobserve_after_days`, `continue_on_error`
- Outputs: `success`, `items_selected`, `items_with_amount`, `items_without_amount`, `items_not_found`, `lines_updated`, `locations_recorded`, `locations_with_cost`, `item_errors`, `items_remaining`, `error`

Perform Sync Item Costs through Brightree.

### [Sync Ordering Doctor](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_sync_document_ordering_doctor_to_patient.md)

- Handler: `brightree_sync_document_ordering_doctor_to_patient`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `document_id`, `patient_key`
- Outputs: `success`, `document_id`, `patient_key`, `provider_id`, `provider_name`, `provider_npi`, `doctor_key`, `doctor_name`, `created_doctor`, `pecos_verified`, `synced`, `message`, `error_message`

Perform Sync Ordering Doctor through Brightree.

### [Sync Ordering Doctor Fax](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_sync_ordering_doctor_fax.md)

- Handler: `brightree_sync_ordering_doctor_fax`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `document_id`, `patient_key`, `expected_npi`, `source_fax`, `dry_run`
- Outputs: `success`, `changed`, `manual_review_required`, `error`

Perform Sync Ordering Doctor Fax through Brightree.

### [Sync Patient Documents for Duplicate Check](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_sync_patient_documents.md)

- Handler: `brightree_sync_patient_documents`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `document_id`, `patient_key`, `document_types`
- Outputs: `success`, `is_duplicate`, `already_in_db`, `found_in_brightree`, `synced_count`, `error`

Perform Sync Patient Documents for Duplicate Check through Brightree.

### [Update CMN](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_update_cmn.md)

- Handler: `brightree_update_cmn`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `cmn_key`, `cmn_form_key`, `initial_date`, `recertification_date`, `length_of_need_months`, `signature_date`, `expiration_date`
- Outputs: `success`, `updated`, `noop`, `cmn_key`, `cmn_form_key`, `cmn_initial_date`, `cmn_recertification_date`, `cmn_length_of_need_months`, `cmn_expiration`, `cmn_signature_date`, `mismatches`, `message`, `error`

Perform Update CMN through Brightree.

### [Update Item Proc Code](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_update_item_proc_code.md)

- Handler: `brightree_update_item_proc_code`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `sales_order_key`, `sales_order_detail_key`, `proc_code`, `dry_run`
- Outputs: `updated`, `available`, `proc_code`, `sales_order_key`, `sales_order_detail_key`, `message`, `dry_run`

Perform Update Item Proc Code through Brightree.

### [Update Ordering Doctor Contact From Document](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_update_ordering_doctor_contact_from_document.md)

- Handler: `brightree_update_ordering_doctor_contact_from_document`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `document_id`, `doctor_key`, `dry_run`
- Outputs: `success`, `document_id`, `doctor_key`, `contact_source`, `dry_run`, `saved`, `contact_update_failed`, `skipped`, `eligible`, `npi_verified`, `pecos_verified`, `before`, `requested`, `after`, `changes`, `message`, `error`, `error_message`

Perform Update Ordering Doctor Contact From Document through Brightree.

### [Update Patient Gender If Empty](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_update_patient_gender_if_empty.md)

- Handler: `brightree_update_patient_gender_if_empty`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `gender`
- Outputs: `success`, `updated`, `skipped_reason`, `error`

Perform Update Patient Gender If Empty through Brightree.

### [Update Patient Note](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_update_patient_note.md)

- Handler: `brightree_update_patient_note`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `patient_note_key`, `patient_note_type_key`, `description_prepend`, `description_append`, `assigned_to_name`, `date_needed`, `status`, `reason`, `dry_run`

Perform Update Patient Note through Brightree.

### [Update Sales Order Aftercare](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_update_sales_order_aftercare.md)

- Handler: `brightree_update_sales_order_aftercare`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `sales_order_key`, `wip_state`, `assigned_to_key`, `assigned_to_name`, `date_needed`, `expected_current_wip_state`, `expected_current_classification`, `order_note_append`, `dry_run`
- Outputs: `success`, `updated`, `noop`, `dry_run`, `sales_order_key`, `resolved_assigned_to_key`, `resolved_assigned_to_name`, `fields_updated`, `actual`, `mismatches`, `message`, `error`

Perform Update Sales Order Aftercare through Brightree.

### [Upload Document to Patient](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_upload_document_to_patient.md)

- Handler: `brightree_upload_document_to_patient`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `document_id`, `document_type`, `deduplicate`, `verify_count_increase`, `verify_document_types`, `verify_max_attempts`, `record_upload_marker`, `batch_name`, `batch_id`, `file_name`, `notes`
- Outputs: `success`, `uploaded_filename`, `uploaded_count`, `skipped_count`, `failed_count`, `uploaded_document_ids`, `count_before`, `count_after`, `skip_reason`, `upload_marker_recorded`, `error`

Perform Upload Document to Patient through Brightree.

### [Upload Document to Sales Order](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_upload_document_to_sales_order.md)

- Handler: `brightree_upload_document_to_sales_order`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `sales_order_key`, `patient_key`, `branch_key`, `document_id`, `document_type`, `batch_name`, `batch_id`, `file_name`, `notes`, `dry_run`
- Outputs: `success`, `dry_run`, `sales_order_key`, `patient_key`, `branch_key`, `branch_key_source`, `uploaded_filename`, `message`, `error`

Perform Upload Document to Sales Order through Brightree.

### [Validate Patient Billing Address](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_validate_patient_billing_address.md)

- Handler: `brightree_validate_patient_billing_address`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `facility_name`, `dry_run`
- Outputs: `success`, `message`, `updated_fields`, `verification_details`, `error`

Perform Validate Patient Billing Address through Brightree.

### [Verify Patient Setup](https://genhealth.ai/docs/workflows/integrations/brightree/intake_verify_patient_setup.md)

- Handler: `intake_verify_patient_setup`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_id`, `patient_state`, `patient_key`, `patient_context`, `facility_payload`, `facility_set_payload`, `marketing_referral_payload`, `billing_address_payload`, `delivery_address_payload`, `dropdown_payload`, `responsible_party_payload`, `primary_doctor_payload`, `tax_zone_payload`, `account_group`, `account_key`, `set_dropdowns`, `dry_run`

Perform Verify Patient Setup through Brightree.

### [Void Sales Order](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_void_sales_order.md)

- Handler: `brightree_void_sales_order`
- Connection type: `brightree`
- External effect: `irreversible`
- Inputs: `sales_order_key`, `reason_code`, `dry_run`
- Outputs: `success`, `voided`, `verified`, `dry_run`, `sales_order_key`, `void_key`, `reason_code`, `message`, `error`, `error_message`

Perform Void Sales Order through Brightree.

### [Void Sales Order Batches](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_void_sales_order_batches.md)

- Handler: `brightree_void_sales_order_batches`
- Connection type: `brightree`
- External effect: `irreversible`
- Inputs: `void_requests`, `dry_run`
- Outputs: `success`, `results`, `voided_count`, `failed_count`, `dry_run`, `error_message`

Perform Void Sales Order Batches through Brightree.

### [Write Prepared Patient Updates](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_write_prepared_patient_updates.md)

- Handler: `brightree_write_prepared_patient_updates`
- Connection type: `brightree`
- External effect: `write`
- Inputs: `patient_key`, `patient_updates`
- Outputs: `success`, `patient_key`, `missing_fields`, `has_missing_source_fields`, `updated_fields`, `messages`, `error_message`, `error`

Perform Write Prepared Patient Updates through Brightree.
