# Resolve Patient Context

> Perform Resolve Patient Context through Brightree.

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

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

- Handler: `brightree_resolve_patient_context`

- Connection type: `brightree`

## Inputs

- `patient_id` — Patient Id (expression, required)
  Required literal value or workflow expression.

## Outputs

- `success` — Success
- `patient_id` — Patient Id
- `patient_key` — Patient Key
- `demographics` — Demographics
- `patient_state_snapshot` — Patient State Snapshot
- `ordering_doctor` — Ordering Doctor
- `ordering_doctor_found` — Ordering Doctor Found
- `marketing_rep_key` — Marketing Rep Key
- `marketing_rep_name` — Marketing Rep Name
- `marketing_rep_found` — Marketing Rep Found
- `warnings` — Warnings
- `error` — Error

Output schema completeness: `best_effort_declared`

## Safety

- External effect: `read`
- Confirmation recommended: no
- Retry safe: yes
- Dry run supported: no

## Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

### Input schema

```json
{
  "type": "object",
  "required": [
    "patient_id"
  ],
  "properties": {
    "patient_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "success": {},
    "warnings": {},
    "patient_id": {},
    "patient_key": {},
    "demographics": {},
    "ordering_doctor": {},
    "marketing_rep_key": {},
    "marketing_rep_name": {},
    "marketing_rep_found": {},
    "ordering_doctor_found": {},
    "patient_state_snapshot": {}
  },
  "additionalProperties": true
}
```
