# Split Document By Categories

> Perform Split Document By Categories through GenHealth.

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

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

- Handler: `split_document_by_categories`

## Inputs

- `document_id` — Document Id (expression)
  Optional literal value or workflow expression.
- `force` — Force (boolean)
  Optional true-or-false value.
  Default: `"false"`
- `hide_parent` — Hide Parent (boolean)
  Optional true-or-false value.
  Default: `"false"`

## Outputs

- `success` — Success
- `document_id` — Document Id
- `children` — Children
- `child_count` — Child Count
- `review_required` — Review Required
- `reason` — Reason
- `split_failure_reason` — Split Failure Reason
- `split_reconciliation` — Split Reconciliation
- `skipped` — Skipped
- `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",
  "properties": {
    "force": {
      "type": "boolean",
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "document_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "hide_parent": {
      "type": "boolean",
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "reason": {},
    "skipped": {},
    "success": {},
    "children": {},
    "child_count": {},
    "document_id": {},
    "review_required": {},
    "split_failure_reason": {},
    "split_reconciliation": {}
  },
  "additionalProperties": true
}
```
