athenahealth_check_active_referral_authorization, the AthenaHealth referral authorization status tool exposed through the Agents Platform.
Authentication
Uses the existing AthenaHealth connector credentials.athenahealth_check_active_referral_authorization
Checks referral authorizations for a patient and returns whether an active authorization appears to match the billed insurance name.
Inputs
Required:patient_id: AthenaHealth patient ID.
department_id: the encounter’s department ID (from the encounter summary/details). Forwarded to AthenaHealth asdepartmentidwhen provided.billed_insurance_name: Insurance name from encounter/patient summary. When present, matching is restricted to authorizations that appear related to that payer.
Output
athenahealth_not_connected- AthenaHealth API error fetching referral authorizations
Human-readable text
The tool emits markdown for the feed: a## Referral Authorization table (patient, practice, billed insurance, active-match) and an ## Authorizations table (status, auth #, details) when present. The raw authorizations payload stays in structuredContent.
Agent Instruction Guidance
Use this in the realtime coding workflow after summary checks pass. Feedhas_active_pa into CPT-generation prompts for Spravato/PA-sensitive decisions.