# Prepare Intake Workflow Create Batches

> Perform Prepare Intake Workflow Create Batches through GenHealth.

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

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

- Handler: `genhealth_prepare_intake_workflow_create_batches`

## Inputs

- `workflow_key` — Workflow Key (text)
  Optional text value.
- `case_payload` — Case Payload (json)
  Optional JSON value.
- `ehr_payload` — Ehr Payload (json)
  Optional JSON value.
- `execution_context` — Execution Context (json)
  Optional JSON value.
- `routing_context` — Routing Context (json)
  Optional JSON value.
- `eligibility_context` — Eligibility Context (json)
  Optional JSON value.
- `patient_context` — Patient Context (json)
  Optional JSON value.
- `workflow_item_plan_context` — Workflow Item Plan Context (json)
  Optional JSON value.
- `order_change_match_context` — Order Change Match Context (json)
  Optional JSON value.
- `trigger_payload` — Trigger Payload (json)
  Optional JSON value.

## Outputs

- `success` — Success
- `workflow_create_context` — Workflow Create Context
- `tracker_summary` — Tracker Summary
- `execution_summary` — Execution Summary
- `side_effect_ledger` — Side Effect Ledger
- `error_message` — Error Message
- `manual_review_required` — Manual Review Required
- `terminal_skip_required` — Terminal Skip Required
- `workflow_batches` — Workflow Batches
- `reactivation_required` — Reactivation Required
- `reactivation_date_batches` — Reactivation Date Batches
- `reactivation_status_batches` — Reactivation Status Batches

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": {
    "ehr_payload": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "case_payload": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "workflow_key": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "patient_context": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "routing_context": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "trigger_payload": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "execution_context": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "eligibility_context": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "order_change_match_context": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "workflow_item_plan_context": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "success": {},
    "error_message": {},
    "tracker_summary": {},
    "workflow_batches": {},
    "execution_summary": {},
    "side_effect_ledger": {},
    "reactivation_required": {},
    "manual_review_required": {},
    "terminal_skip_required": {},
    "workflow_create_context": {},
    "reactivation_date_batches": {},
    "reactivation_status_batches": {}
  },
  "additionalProperties": true
}
```
