# Run OCR

> Perform Run OCR through GenHealth.

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

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

- Handler: `genhealth_run_ocr`

## Inputs

- `document_id` — Document Id (expression)
  Optional literal value or workflow expression.
- `pre_processing` — Pre Processing (select)
  Optional selected identifier or value.
  Default: `"none"`
  Options: None ("none"), Radiology — Checkbox Annotations ("radiology_checkbox_annotations")
- `route_tables_to_pages` — Route Tables To Pages (boolean)
  Optional true-or-false value.
  Default: `"false"`
- `correct_orientation` — Correct Orientation (boolean)
  Optional true-or-false value.
  Default: `"false"`
- `checkbox_aware_content` — Checkbox Aware Content (boolean)
  Optional true-or-false value.
  Default: `"false"`

## Outputs

- `success` — Success
- `document_id` — Document Id
- `document_text` — Document Text
- `text_length` — Text Length
- `pre_processing_applied` — Pre Processing Applied
- `route_tables_to_pages` — Route Tables To Pages
- `correct_orientation` — Correct Orientation
- `error` — Error
- `error_code` — Error Code

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": {
    "document_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "pre_processing": {
      "enum": [
        "none",
        "radiology_checkbox_annotations"
      ],
      "type": "string",
      "default": "none",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "correct_orientation": {
      "type": "boolean",
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "route_tables_to_pages": {
      "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"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "success": {},
    "error_code": {},
    "document_id": {},
    "text_length": {},
    "document_text": {},
    "correct_orientation": {},
    "route_tables_to_pages": {},
    "pre_processing_applied": {}
  },
  "additionalProperties": true
}
```
