# Prepare Intake Terminal Handoff

> Perform Prepare Intake Terminal Handoff through GenHealth.

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

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

- Handler: `genhealth_prepare_intake_terminal_handoff`

## Inputs

- `workflow_key` — Workflow Key (text)
  Optional text value.
- `stage_label` — Stage Label (text)
  Optional text value.
- `note_mode` — Note Mode (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.
- `execution_payload` — Execution Payload (json)
  Optional JSON value.
- `fallback_execution_payload` — Fallback Execution Payload (json)
  Optional JSON value.
- `secondary_fallback_execution_payload` — Secondary Fallback Execution Payload (json)
  Optional JSON value.
- `error_payload` — Error Payload (json)
  Optional JSON value.
- `manual_review_on_error` — Manual Review On Error (boolean)
  Optional true-or-false value.
  Default: `false`
- `trigger_payload` — Trigger Payload (json)
  Optional JSON value.

## Outputs

- `success` — Success
- `terminal_handoff_context` — Terminal Handoff Context
- `note_jobs` — Note Jobs
- `delete_request` — Delete Request
- `stage_label` — Stage Label
- `error_message` — Error Message

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": {
    "note_mode": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "ehr_payload": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "stage_label": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "case_payload": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "workflow_key": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "error_payload": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "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"
    },
    "execution_payload": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "eligibility_context": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "manual_review_on_error": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "fallback_execution_payload": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "secondary_fallback_execution_payload": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "success": {},
    "note_jobs": {},
    "stage_label": {},
    "error_message": {},
    "delete_request": {},
    "terminal_handoff_context": {}
  },
  "additionalProperties": true
}
```
