# Prepare Consignment Order Create

> Perform Prepare Consignment Order Create through Consignment Intake.

Source: [https://genhealth.ai/docs/workflows/integrations/consignment-intake/prepare_consignment_order_create](https://genhealth.ai/docs/workflows/integrations/consignment-intake/prepare_consignment_order_create)

Integration: [Consignment Intake](https://genhealth.ai/docs/workflows/integrations/consignment-intake.md)

- Handler: `prepare_consignment_order_create`

## Inputs

- `packet_context` — Packet Context (json, required)
  Required JSON value.
- `as_of_date` — As Of Date (date, required)
  Required date in YYYY-MM-DD format.
- `billing_location_ids` — Billing Location Ids (json, required)
  Required JSON value.
- `patient_save_result` — Patient Save Result (json, required)
  Required JSON value.
- `insurance_save_result` — Insurance Save Result (json, required)
  Required JSON value.
- `order_defaults` — Order Defaults (json, required)
  Required JSON value.
- `extracted_salesperson` — Extracted Salesperson (text)
  Optional text value.
- `semantic_items` — Semantic Items (json)
  Optional JSON value.
- `accident_details` — Accident Details (json)
  Optional JSON value.

## Outputs

- `success` — Success
- `ready_for_order_create` — Ready For Order Create
- `review_required` — Review Required
- `review_reason` — Review Reason
- `review_reasons` — Review Reasons
- `idempotency_key` — Idempotency Key
- `patient_id` — Patient Id
- `date_of_service_from` — Date Of Service From
- `date_of_service_to` — Date Of Service To
- `location` — Location
- `diagnosis_codes` — Diagnosis Codes
- `physician_id` — Physician Id
- `physician` — Physician
- `referral_source_id` — Referral Source Id
- `referral_source` — Referral Source
- `psr_id` — Psr Id
- `sales_rep_id` — Sales Rep Id
- `sales_rep` — Sales Rep
- `warehouse` — Warehouse
- `place_of_service` — Place Of Service
- `signature` — Signature
- `rendering_provider_id` — Rendering Provider Id
- `rendering_provider` — Rendering Provider
- `semantic_items` — Semantic Items
- `is_accident` — Is Accident
- `accident_date` — Accident Date
- `accident_state_id` — Accident State Id
- `accident_description` — Accident Description
- `prescription_date` — Prescription Date
- `error` — Error
- `error_kind` — Error Kind

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": [
    "packet_context",
    "as_of_date",
    "billing_location_ids",
    "patient_save_result",
    "insurance_save_result",
    "order_defaults"
  ],
  "properties": {
    "as_of_date": {
      "type": "string",
      "format": "date",
      "description": "Required date in YYYY-MM-DD format.",
      "x-workflow-field-type": "date"
    },
    "order_defaults": {
      "description": "Required JSON value.",
      "x-workflow-field-type": "json"
    },
    "packet_context": {
      "description": "Required JSON value.",
      "x-workflow-field-type": "json"
    },
    "semantic_items": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "accident_details": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "patient_save_result": {
      "description": "Required JSON value.",
      "x-workflow-field-type": "json"
    },
    "billing_location_ids": {
      "description": "Required JSON value.",
      "x-workflow-field-type": "json"
    },
    "extracted_salesperson": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "insurance_save_result": {
      "description": "Required JSON value.",
      "x-workflow-field-type": "json"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "psr_id": {},
    "success": {},
    "location": {},
    "physician": {},
    "sales_rep": {},
    "signature": {},
    "warehouse": {},
    "error_kind": {},
    "patient_id": {},
    "is_accident": {},
    "physician_id": {},
    "sales_rep_id": {},
    "accident_date": {},
    "review_reason": {},
    "review_reasons": {},
    "semantic_items": {},
    "diagnosis_codes": {},
    "idempotency_key": {},
    "referral_source": {},
    "review_required": {},
    "place_of_service": {},
    "accident_state_id": {},
    "prescription_date": {},
    "date_of_service_to": {},
    "referral_source_id": {},
    "rendering_provider": {},
    "accident_description": {},
    "date_of_service_from": {},
    "rendering_provider_id": {},
    "ready_for_order_create": {}
  },
  "additionalProperties": true
}
```
