# 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`

## 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": "ClaimSoft",
  "params": {
    "replace_existing": true,
    "allow_payer_replacement": false
  },
  "handler": "claimsoft_save_insurance"
}

```

[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.
- `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`
- `allow_payer_replacement` — Allow Payer Replacement (boolean)
  Optional true-or-false value.
  Default: `false`
- `order_id` — Order Id (expression)
  Optional literal value or workflow expression.
- `insurance_override` — Insurance Override (json)
  Optional JSON value.

## Outputs

- `success` — Success
- `patient_id` — Patient Id
- `order_id` — Order Id
- `sequence` — Sequence
- `updated` — Updated
- `insured_id` — Insured Id
- `ext_insured_id` — Ext Insured Id
- `payer_link_id` — Payer Link Id
- `order_payers_updated` — Order Payers Updated
- `patient_payers` — Patient Payers
- `superseded_patient_payers` — Superseded Patient Payers
- `patient_url` — Patient Url
- `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": {
    "order_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "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"
    },
    "allow_payer_replacement": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### Output schema

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