# Prepare Intake Order Change Writes

> Perform Prepare Intake Order Change Writes through GenHealth.

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

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

- Handler: `genhealth_prepare_intake_order_change_writes`

## Inputs

- `workflow_key` — Workflow Key (text)
  Optional text value.
- `case_payload` — Case Payload (json)
  Optional JSON value.
- `order_change_match_context` — Order Change Match Context (json, required)
  Required JSON value.
- `markerless_order_change_match_context` — Markerless Order Change Match Context (json)
  Optional JSON value.
- `brightree_void_reason_code` — Brightree Void Reason Code (number)
  Optional numeric value.
- `trigger_payload` — Trigger Payload (json)
  Optional JSON value.

## Outputs

- `success` — Success
- `ready_for_live_writes` — Ready For Live Writes
- `ready_for_revision_writes` — Ready For Revision Writes
- `ready_for_dos_revision_writes` — Ready For Dos Revision Writes
- `ready_for_cancellation_writes` — Ready For Cancellation Writes
- `order_change_write_context` — Order Change Write Context
- `workflow_items_context` — Workflow Items Context
- `patient_context` — Patient Context
- `cpm_cancellation_workflow_ids` — Cpm Cancellation Workflow Ids
- `status_batches` — Status Batches
- `date_batches` — Date Batches
- `facility_batches` — Facility Batches
- `diagnosis_batches` — Diagnosis Batches
- `diagnosis_guard_batches` — Diagnosis Guard Batches
- `brightree_diagnosis_batches` — Brightree Diagnosis Batches
- `brightree_diagnosis_guard_batches` — Brightree Diagnosis Guard Batches
- `note_jobs` — Note Jobs
- `cancel_pod_requests` — Cancel Pod Requests
- `void_sales_order_request` — Void Sales Order Request
- `void_sales_order_requests` — Void Sales Order Requests
- `source_fax_page_batches` — Source Fax Page Batches
- `delete_request` — Delete Request
- `tracker_summary` — Tracker Summary
- `error_message` — Error Message
- `manual_review_required` — Manual Review Required
- `terminal_skip_required` — Terminal Skip Required

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": [
    "order_change_match_context"
  ],
  "properties": {
    "case_payload": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "workflow_key": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "trigger_payload": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "brightree_void_reason_code": {
      "type": "number",
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "order_change_match_context": {
      "description": "Required JSON value.",
      "x-workflow-field-type": "json"
    },
    "markerless_order_change_match_context": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "success": {},
    "note_jobs": {},
    "date_batches": {},
    "error_message": {},
    "delete_request": {},
    "status_batches": {},
    "patient_context": {},
    "tracker_summary": {},
    "facility_batches": {},
    "diagnosis_batches": {},
    "cancel_pod_requests": {},
    "ready_for_live_writes": {},
    "manual_review_required": {},
    "terminal_skip_required": {},
    "workflow_items_context": {},
    "diagnosis_guard_batches": {},
    "source_fax_page_batches": {},
    "void_sales_order_request": {},
    "ready_for_revision_writes": {},
    "void_sales_order_requests": {},
    "order_change_write_context": {},
    "brightree_diagnosis_batches": {},
    "cpm_cancellation_workflow_ids": {},
    "ready_for_cancellation_writes": {},
    "ready_for_dos_revision_writes": {},
    "brightree_diagnosis_guard_batches": {}
  },
  "additionalProperties": true
}
```
