# Extract Order

> Perform Extract Order through GenHealth.

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

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

- Handler: `genhealth_extract_order`

## Inputs

- `document_id` — Document Id (expression)
  Optional literal value or workflow expression.
- `force` — Force (boolean)
  Optional true-or-false value.
  Default: `"false"`
- `prompt_override` — Prompt Override (textarea)
  Optional text value.
- `checkbox_aware_content` — Checkbox Aware Content (boolean)
  Optional true-or-false value.
  Default: `"false"`
- `order_response_variant` — Order Response Variant (select)
  Optional selected identifier or value.
  Options: Standard order schema (""), Standard plus every labeled SWO start-date candidate ("swo_date_evidence")
- `drop_empty_order` — Drop Empty Order (boolean)
  Optional true-or-false value.
  Default: `"false"`

## Outputs

- `success` — Success
- `document_id` — Document Id
- `cached` — Cached
- `order_count` — Order Count
- `order_items` — Order Items
- `has_order_date` — Has Order Date
- `error` — Error

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": {
    "force": {
      "type": "boolean",
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "document_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "prompt_override": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "textarea"
    },
    "drop_empty_order": {
      "type": "boolean",
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "checkbox_aware_content": {
      "type": "boolean",
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "order_response_variant": {
      "enum": [
        "",
        "swo_date_evidence"
      ],
      "type": "string",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "cached": {},
    "success": {},
    "document_id": {},
    "order_count": {},
    "order_items": {},
    "has_order_date": {}
  },
  "additionalProperties": true
}
```
