# Select Payer from Source Documents

> Perform Select Payer from Source Documents through Tomorrow Health.

Source: [https://genhealth.ai/docs/workflows/integrations/tomorrow-health/tomorrow_health_select_payer_from_documents](https://genhealth.ai/docs/workflows/integrations/tomorrow-health/tomorrow_health_select_payer_from_documents)

Integration: [Tomorrow Health](https://genhealth.ai/docs/workflows/integrations/tomorrow-health.md)

- Handler: `tomorrow_health_select_payer_from_documents`

- Connection type: `tomorrow_health`

## Inputs

- `tomorrow_health_payer_name` — Tomorrow Health Payer Name (expression, required)
  Required literal value or workflow expression.
- `proposed_brightree_payer_name` — Proposed Brightree Payer Name (expression, required)
  Required literal value or workflow expression.
- `proposed_brightree_payer_key` — Proposed Brightree Payer Key (expression, required)
  Required literal value or workflow expression.
- `document_id` — Document Id (expression, required)
  Required literal value or workflow expression.
- `document_text` — Document Text (expression, required)
  Required literal value or workflow expression.
- `action_required_prefix` — Action Required Prefix (text, required)
  Required text value.

## Outputs

- `success` — Success
- `can_proceed` — Can Proceed
- `selected_payer_source` — Selected Payer Source
- `selected_brightree_payor_key` — Selected Brightree Payor Key
- `selected_brightree_payor_name` — Selected Brightree Payor Name
- `relation` — Relation
- `confidence` — Confidence
- `document_payer_name` — Document Payer Name
- `evidence_source` — Evidence Source
- `conflict_dimension` — Conflict Dimension
- `tomorrow_health_payer_name` — Tomorrow Health Payer Name
- `proposed_brightree_payer_name` — Proposed Brightree Payer Name
- `comment_message` — Comment Message
- `selection_error` — Selection Error
- `error` — Error

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": [
    "tomorrow_health_payer_name",
    "proposed_brightree_payer_name",
    "proposed_brightree_payer_key",
    "document_id",
    "document_text",
    "action_required_prefix"
  ],
  "properties": {
    "document_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "document_text": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "action_required_prefix": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    },
    "tomorrow_health_payer_name": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "proposed_brightree_payer_key": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "proposed_brightree_payer_name": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "success": {},
    "relation": {},
    "confidence": {},
    "can_proceed": {},
    "comment_message": {},
    "evidence_source": {},
    "selection_error": {},
    "conflict_dimension": {},
    "document_payer_name": {},
    "selected_payer_source": {},
    "tomorrow_health_payer_name": {},
    "selected_brightree_payor_key": {},
    "proposed_brightree_payer_name": {},
    "selected_brightree_payor_name": {}
  },
  "additionalProperties": true
}
```
