# Reconcile Document Split

> Perform Reconcile Document Split through GenHealth.

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

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

- Handler: `genhealth_reconcile_document_split`

## Inputs

- `document_id` — Document Id (expression)
  Optional literal value or workflow expression.
- `expected_patient_count` — Expected Patient Count (expression)
  Optional literal value or workflow expression.
- `child_count` — Child Count (expression, required)
  Required literal value or workflow expression.

## Outputs

- `success` — Success
- `document_id` — Document Id
- `is_match` — Is Match
- `expected_count` — Expected Count
- `actual_count` — Actual Count
- `review_required` — Review Required
- `reason` — Reason
- `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": [
    "child_count"
  ],
  "properties": {
    "child_count": {
      "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"
    },
    "expected_patient_count": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "reason": {},
    "success": {},
    "is_match": {},
    "document_id": {},
    "actual_count": {},
    "expected_count": {},
    "review_required": {}
  },
  "additionalProperties": true
}
```
