# Add Document

> Perform Add Document through ClaimSoft.

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

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

- Handler: `claimsoft_add_document`

- Connection type: `claimsoft`

## Inputs

- `patient_id` — Patient Id (expression, required)
  Required literal value or workflow expression.
- `document_url` — Document Url (expression)
  Optional literal value or workflow expression.
- `document_id` — Document Id (expression)
  Optional literal value or workflow expression.
- `filename` — Filename (text, required)
  Required text value.
- `alternate_filenames` — Alternate Filenames (json)
  Optional JSON value.
- `tab` — Tab (text)
  Optional text value.
  Default: `"Documents"`

## Outputs

- `success` — Success
- `patient_id` — Patient Id
- `filename` — Filename
- `skipped` — Skipped
- `matched_filename` — Matched Filename
- `message` — Message
- `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",
    "filename"
  ],
  "properties": {
    "tab": {
      "type": "string",
      "default": "Documents",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "filename": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    },
    "patient_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "document_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "document_url": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "alternate_filenames": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "message": {},
    "skipped": {},
    "success": {},
    "filename": {},
    "patient_id": {},
    "matched_filename": {}
  },
  "additionalProperties": true
}
```
