# Search Existing Prior Authorizations

> Perform Search Existing Prior Authorizations through United Healthcare.

Source: [https://genhealth.ai/docs/workflows/integrations/united-healthcare/uhc_pa_search_existing_cases](https://genhealth.ai/docs/workflows/integrations/united-healthcare/uhc_pa_search_existing_cases)

Integration: [United Healthcare](https://genhealth.ai/docs/workflows/integrations/united-healthcare.md)

- Handler: `uhc_pa_search_existing_cases`

- Connection type: `united_healthcare_portal`

## 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": "United Healthcare",
  "params": {
    "offset": 0,
    "page_size": 20,
    "search_mode": "case_number"
  },
  "handler": "uhc_pa_search_existing_cases"
}

```

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

## Inputs

- `search_mode` — Search Mode (select, required)
  Required selected identifier or value.
  Default: `"case_number"`
  Options: By Case Number ("case_number"), By Member ("member")
- `case_number` — Case Number (expression)
  Optional literal value or workflow expression.
- `member_id` — Member Id (expression)
  Optional literal value or workflow expression.
- `date_of_birth` — Date Of Birth (expression)
  Optional literal value or workflow expression.
- `first_name` — First Name (expression)
  Optional literal value or workflow expression.
- `last_name` — Last Name (expression)
  Optional literal value or workflow expression.
- `start_date` — Start Date (expression)
  Optional literal value or workflow expression.
- `end_date` — End Date (expression)
  Optional literal value or workflow expression.
- `page_size` — Page Size (number)
  Optional numeric value.
  Default: `20`
- `offset` — Offset (number)
  Optional numeric value.
  Default: `0`

## Outputs

- `success` — Success
- `error` — Error
- `search_mode` — Search Mode
- `count` — Count
- `cases` — Cases
- `page_size` — Page Size
- `offset` — Offset
- `has_more` — Has More
- `next_offset` — Next Offset
- `case_number` — Case Number
- `case_status` — Case Status
- `coverage_status` — Coverage Status
- `service_start_date` — Service Start Date
- `service_end_date` — Service End Date
- `case_details` — Case Details

Output schema completeness: `best_effort_declared`

## Safety

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

## Schemas

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

### Input schema

```json
{
  "type": "object",
  "required": [
    "search_mode"
  ],
  "properties": {
    "offset": {
      "type": "number",
      "default": 0,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "end_date": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "last_name": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "member_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "page_size": {
      "type": "number",
      "default": 20,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "first_name": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "start_date": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "case_number": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "search_mode": {
      "enum": [
        "case_number",
        "member"
      ],
      "type": "string",
      "default": "case_number",
      "description": "Required selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "date_of_birth": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "cases": {},
    "count": {},
    "error": {},
    "offset": {},
    "success": {},
    "has_more": {},
    "page_size": {},
    "case_number": {},
    "case_status": {},
    "next_offset": {},
    "search_mode": {},
    "case_details": {},
    "coverage_status": {},
    "service_end_date": {},
    "service_start_date": {}
  },
  "additionalProperties": true
}
```
