# Set Insurance Plan

> Perform Set Insurance Plan through GenHealth.

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

Integration: [GenHealth](https://genhealth.ai/docs/workflows/integrations/gen-health.md)

- Handler: `genhealth_set_insurance_plan`

## Inputs

- `document_id` — Document Id (expression, required)
  Required literal value or workflow expression.
- `plan` — Plan (expression, required)
  Required literal value or workflow expression.
- `insurance_rank` — Insurance Rank (select)
  Optional selected identifier or value.
  Default: `"primary"`
  Options: Primary ("primary"), Secondary ("secondary"), Tertiary ("tertiary")
- `skip_if_empty` — Skip If Empty (boolean)
  Optional true-or-false value.
  Default: `"true"`
- `overwrite_existing` — Overwrite Existing (boolean)
  Optional true-or-false value.
  Default: `"false"`

## Outputs

- `success` — Success
- `skipped` — Skipped
- `document_id` — Document Id
- `insurance_rank` — Insurance Rank
- `insurance_policy_id` — Insurance Policy Id
- `plan` — Plan
- `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": [
    "document_id",
    "plan"
  ],
  "properties": {
    "plan": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "document_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "skip_if_empty": {
      "type": "boolean",
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "insurance_rank": {
      "enum": [
        "primary",
        "secondary",
        "tertiary"
      ],
      "type": "string",
      "default": "primary",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "overwrite_existing": {
      "type": "boolean",
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "plan": {},
    "error": {},
    "skipped": {},
    "success": {},
    "document_id": {},
    "insurance_rank": {},
    "insurance_policy_id": {}
  },
  "additionalProperties": true
}
```
