# Prepare Brightree Patient Update Payload

> Perform Prepare Brightree Patient Update Payload through Tomorrow Health.

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

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

- Handler: `tomorrow_health_prepare_brightree_patient_update_payload`

## Inputs

- `document_id` — Document Id (expression, required)
  Required literal value or workflow expression.
- `patient_key` — Patient Key (expression, required)
  Required literal value or workflow expression.
- `requested_fields` — Requested Fields (expression)
  Optional literal value or workflow expression.

## Outputs

- `success` — Success
- `document_id` — Document Id
- `patient_id` — Patient Id
- `patient_key` — Patient Key
- `missing_fields` — Missing Fields
- `unwritten_requested_fields` — Unwritten Requested Fields
- `patient_updates` — Patient Updates
- `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",
    "patient_key"
  ],
  "properties": {
    "document_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "patient_key": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "requested_fields": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "success": {},
    "patient_id": {},
    "document_id": {},
    "patient_key": {},
    "error_message": {},
    "missing_fields": {},
    "patient_updates": {},
    "unwritten_requested_fields": {}
  },
  "additionalProperties": true
}
```
