# Download Document

> Perform Download Document through Tomorrow Health.

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

Integration: [Tomorrow Health](https://genhealth.ai/docs/workflows/integrations/tomorrow-health.md)

- Handler: `tomorrow_health_download_document`

- Connection type: `tomorrow_health`

## Inputs

- `order_id` — Order Id (expression, required)
  Required literal value or workflow expression.
- `document_id` — Document Id (expression, required)
  Required literal value or workflow expression.
- `type` — Type (expression, required)
  Required literal value or workflow expression.
- `original_file_name` — Original File Name (expression)
  Optional literal value or workflow expression.
- `supplier_id` — Supplier Id (expression)
  Optional literal value or workflow expression.
- `is_primary` — Is Primary (expression)
  Optional literal value or workflow expression.
- `source_position` — Source Position (expression)
  Optional literal value or workflow expression.
- `persist_hidden_document` — Persist Hidden Document (boolean)
  Optional true-or-false value.
  Default: `true`

## Outputs

- `success` — Success
- `raw_document_id` — Raw Document Id
- `document_id` — Document Id
- `type` — Type
- `type_label` — Type Label
- `supplier_id` — Supplier Id
- `original_file_name` — Original File Name
- `created` — Created
- `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",
  "required": [
    "order_id",
    "document_id",
    "type"
  ],
  "properties": {
    "type": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "order_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "is_primary": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "document_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "supplier_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "source_position": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "original_file_name": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "persist_hidden_document": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "type": {},
    "error": {},
    "created": {},
    "success": {},
    "type_label": {},
    "document_id": {},
    "supplier_id": {},
    "raw_document_id": {},
    "original_file_name": {}
  },
  "additionalProperties": true
}
```
