# Build Consignment Order Mapping

> Perform Build Consignment Order Mapping through Consignment Intake.

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

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

- Handler: `build_consignment_order_mapping`

## Inputs

- `packet_context` — Packet Context (json, required)
  Required JSON value.
- `extracted_fields` — Extracted Fields (json, required)
  Required JSON value.
- `document_text` — Document Text (expression)
  Optional literal value or workflow expression.
- `as_of_date` — As Of Date (date)
  Optional date in YYYY-MM-DD format.
- `salesperson_name` — Salesperson Name (expression)
  Optional literal value or workflow expression.
- `salesperson_review_required` — Salesperson Review Required (boolean)
  Optional true-or-false value.
- `source_location` — Source Location (json)
  Optional JSON value.
- `policyholder_resolution` — Policyholder Resolution (json)
  Optional JSON value.

## Outputs

- `success` — Success
- `ready_for_order_write` — Ready For Order Write
- `review_required` — Review Required
- `review_reason` — Review Reason
- `review_reasons` — Review Reasons
- `review_details` — Review Details
- `source_location` — Source Location
- `policyholder_outcome` — Policyholder Outcome
- `medicaid_payer_outcome` — Medicaid Payer Outcome
- `northwood_tpa_outcome` — Northwood Tpa Outcome
- `eligibility_rejection_category` — Eligibility Rejection Category
- `as_of_date` — As Of 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",
    "extracted_fields"
  ],
  "properties": {
    "as_of_date": {
      "type": "string",
      "format": "date",
      "description": "Optional date in YYYY-MM-DD format.",
      "x-workflow-field-type": "date"
    },
    "document_text": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "packet_context": {
      "description": "Required JSON value.",
      "x-workflow-field-type": "json"
    },
    "source_location": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "extracted_fields": {
      "description": "Required JSON value.",
      "x-workflow-field-type": "json"
    },
    "salesperson_name": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "policyholder_resolution": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "salesperson_review_required": {
      "type": "boolean",
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "success": {},
    "as_of_date": {},
    "error_kind": {},
    "review_reason": {},
    "review_details": {},
    "review_reasons": {},
    "review_required": {},
    "source_location": {},
    "policyholder_outcome": {},
    "northwood_tpa_outcome": {},
    "ready_for_order_write": {},
    "medicaid_payer_outcome": {},
    "eligibility_rejection_category": {}
  },
  "additionalProperties": true
}
```
