# Save Insurance

> Perform Save Insurance through ClaimSoft.

Source: [https://genhealth.ai/docs/workflows/integrations/claim-soft/claimsoft_save_insurance](https://genhealth.ai/docs/workflows/integrations/claim-soft/claimsoft_save_insurance)

Integration: [ClaimSoft](https://genhealth.ai/docs/workflows/integrations/claim-soft.md)

- Handler: `claimsoft_save_insurance`

- Connection type: `claimsoft`

## Inputs

- `patient_id` — Patient Id (expression, required)
  Required literal value or workflow expression.
- `policy_data` — Policy Data (expression, required)
  Required literal value or workflow expression.
- `sequence` — Sequence (number)
  Optional numeric value.
- `replace_existing` — Replace Existing (boolean)
  Optional true-or-false value.
  Default: `true`
- `insurance_override` — Insurance Override (json)
  Optional JSON value.

## Outputs

- `success` — Success
- `patient_id` — Patient Id
- `sequence` — Sequence
- `updated` — Updated
- `insured_id` — Insured Id
- `ext_insured_id` — Ext Insured Id
- `payer_link_id` — Payer Link Id
- `message` — Message
- `error_kind` — Error Kind
- `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": [
    "patient_id",
    "policy_data"
  ],
  "properties": {
    "sequence": {
      "type": "number",
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "patient_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "policy_data": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "replace_existing": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "insurance_override": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "message": {},
    "success": {},
    "updated": {},
    "sequence": {},
    "error_kind": {},
    "insured_id": {},
    "patient_id": {},
    "payer_link_id": {},
    "ext_insured_id": {}
  },
  "additionalProperties": true
}
```
