# Prepare Brightree Document Uploads

> Perform Prepare Brightree Document Uploads through Tomorrow Health.

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

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

- Handler: `tomorrow_health_prepare_brightree_document_uploads`

## Inputs

- `document_id` — Document Id (expression, required)
  Required literal value or workflow expression.
- `patient_key` — Patient Key (expression)
  Optional literal value or workflow expression.
- `source_document_ids` — Source Document Ids (expression)
  Optional literal value or workflow expression.
- `raw_document_ids` — Raw Document Ids (expression)
  Optional literal value or workflow expression.
- `document_type_override` — Document Type Override (text)
  Optional text value.

## Outputs

- `success` — Success
- `document_id` — Document Id
- `documents` — Documents
- `document_count` — Document Count
- `skipped_count` — Skipped Count
- `failed_count` — Failed Count
- `error_message` — Error Message

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": [
    "document_id"
  ],
  "properties": {
    "document_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "patient_key": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "raw_document_ids": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "source_document_ids": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "document_type_override": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "success": {},
    "documents": {},
    "document_id": {},
    "failed_count": {},
    "error_message": {},
    "skipped_count": {},
    "document_count": {}
  },
  "additionalProperties": true
}
```
