# Sync Ordering Doctor

> Perform Sync Ordering Doctor through Brightree.

Source: [https://genhealth.ai/docs/workflows/integrations/brightree/brightree_sync_document_ordering_doctor_to_patient](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_sync_document_ordering_doctor_to_patient)

Integration: [Brightree](https://genhealth.ai/docs/workflows/integrations/brightree.md)

- Handler: `brightree_sync_document_ordering_doctor_to_patient`

- Connection type: `brightree`

## 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.

## Outputs

- `success` — Success
- `document_id` — Document Id
- `patient_key` — Patient Key
- `provider_id` — Provider Id
- `provider_name` — Provider Name
- `provider_npi` — Provider Npi
- `doctor_key` — Doctor Key
- `doctor_name` — Doctor Name
- `created_doctor` — Created Doctor
- `pecos_verified` — Pecos Verified
- `synced` — Synced
- `message` — Message
- `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"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "synced": {},
    "message": {},
    "success": {},
    "doctor_key": {},
    "doctor_name": {},
    "document_id": {},
    "patient_key": {},
    "provider_id": {},
    "provider_npi": {},
    "error_message": {},
    "provider_name": {},
    "created_doctor": {},
    "pecos_verified": {}
  },
  "additionalProperties": true
}
```
