# Add Insurance Authorization

> Perform Add Insurance Authorization through athenahealth.

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

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

- Handler: `athena_add_patient_authorization`

- Connection type: `athenahealth`

## Use in a workflow

Copy this discovered node config, fill params from the input contract, and validate the complete graph. Integration results are available as {{node_id.default.field}}. Check business success before dependent writes; completion alone does not prove business success.

```json

{
  "_group": "athenahealth",
  "params": {
    "units_type": "VISITS",
    "write_enabled": false,
    "authorization_type": "PRE-CERT"
  },
  "handler": "athena_add_patient_authorization"
}

```

[Action contracts](https://genhealth.ai/docs/workflows/action-contracts.md) · [Run recovery](https://genhealth.ai/docs/workflows/operations.md)

## Inputs

- `patient_id` — Patient Id (expression, required)
  Required literal value or workflow expression.
- `chart_id` — Chart Id (expression)
  Optional literal value or workflow expression.
- `patient_insurance_id` — Patient Insurance Id (expression, required)
  Required literal value or workflow expression.
- `authorization_type` — Authorization Type (select)
  Optional selected identifier or value.
  Default: `"PRE-CERT"`
  Options: Pre-Cert ("PRE-CERT"), Referral ("REFERRAL")
- `authorization_number` — Authorization Number (expression)
  Optional literal value or workflow expression.
- `effective_from` — Effective From (expression, required)
  Required literal value or workflow expression.
- `effective_to` — Effective To (expression)
  Optional literal value or workflow expression.
- `visits_approved` — Visits Approved (expression)
  Optional literal value or workflow expression.
- `visits_remaining` — Visits Remaining (expression)
  Optional literal value or workflow expression.
- `units_type` — Units Type (select)
  Optional selected identifier or value.
  Default: `"VISITS"`
  Options: Visits ("VISITS"), Units ("UNITS")
- `icd10_codes` — Icd10 Codes (expression)
  Optional literal value or workflow expression.
- `procedure_codes` — Procedure Codes (expression)
  Optional literal value or workflow expression.
- `additional_information` — Additional Information (expression)
  Optional literal value or workflow expression.
- `notes` — Notes (textarea)
  Optional text value.
- `referred_to_provider_id` — Referred To Provider Id (expression)
  Optional literal value or workflow expression.
- `referring_provider_id` — Referring Provider Id (expression)
  Optional literal value or workflow expression.
- `referred_to_referring_provider_id` — Referred To Referring Provider Id (expression)
  Optional literal value or workflow expression.
- `specialty_id` — Specialty Id (expression)
  Optional literal value or workflow expression.
- `department_id` — Department Id (expression)
  Optional literal value or workflow expression.
- `notes_to_provider` — Notes To Provider (textarea)
  Optional text value.
- `source_document_id` — Source Document Id (expression)
  Optional literal value or workflow expression.
- `write_enabled` — Write Enabled (boolean)
  Optional true-or-false value.
  Default: `false`

## Outputs

- `success` — Success
- `submitted` — Submitted
- `write_skipped` — Write Skipped
- `skip_reason` — Skip Reason
- `authorization_id` — Authorization Id
- `already_present` — Already Present
- `matched_by` — Matched By
- `listed_type` — Listed Type
- `listed_as` — Listed As
- `patient_id` — Patient Id
- `chart_id` — Chart Id
- `patient_insurance_id` — Patient Insurance Id
- `insurance_package_name` — Insurance Package Name
- `insurance_sequence_number` — Insurance Sequence Number
- `department_id` — Department Id
- `department_name` — Department Name
- `referring_provider_source` — Referring Provider Source
- `authorization_preview` — Authorization Preview
- `authorization` — Authorization
- `athena` — Athena
- `submitted_field_count` — Submitted Field Count
- `mismatched_fields` — Mismatched Fields
- `codes_verified` — Codes Verified
- `error` — Error
- `error_message` — Error Message
- `failure_phase` — Failure Phase
- `error_code` — Error Code
- `retryable` — Retryable

Output schema completeness: `best_effort_declared`

## Safety

- External effect: `write`
- Confirmation recommended: no
- Retry safe: no
- Dry run supported: no

## Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

### Input schema

```json
{
  "type": "object",
  "required": [
    "patient_id",
    "patient_insurance_id",
    "effective_from"
  ],
  "properties": {
    "notes": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "textarea"
    },
    "chart_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "patient_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "units_type": {
      "enum": [
        "VISITS",
        "UNITS"
      ],
      "type": "string",
      "default": "VISITS",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "icd10_codes": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "effective_to": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "specialty_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "department_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "write_enabled": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "effective_from": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "procedure_codes": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "visits_approved": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "visits_remaining": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "notes_to_provider": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "textarea"
    },
    "authorization_type": {
      "enum": [
        "PRE-CERT",
        "REFERRAL"
      ],
      "type": "string",
      "default": "PRE-CERT",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "source_document_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "authorization_number": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "patient_insurance_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "referring_provider_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "additional_information": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "referred_to_provider_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "referred_to_referring_provider_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "athena": {},
    "success": {},
    "chart_id": {},
    "listed_as": {},
    "retryable": {},
    "submitted": {},
    "error_code": {},
    "matched_by": {},
    "patient_id": {},
    "listed_type": {},
    "skip_reason": {},
    "authorization": {},
    "department_id": {},
    "error_message": {},
    "failure_phase": {},
    "write_skipped": {},
    "codes_verified": {},
    "already_present": {},
    "department_name": {},
    "authorization_id": {},
    "mismatched_fields": {},
    "patient_insurance_id": {},
    "authorization_preview": {},
    "submitted_field_count": {},
    "insurance_package_name": {},
    "insurance_sequence_number": {},
    "referring_provider_source": {}
  },
  "additionalProperties": true
}
```
