# Search Patient

> Search Brightree patients by first and/or last name using the organization's configured connection. Returns patients and count; a name match alone is not a verified patient identity. Reconcile date of birth and other identifiers before a dependent write. Use brightree_check_patient_exists for the organization's document-based identity check. No matches returns an empty patients list and count=0. Connection failures can fail the node.

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

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

- Handler: `brightree_search_patient`

- Connection type: `brightree`

## Use in a workflow

Copy this discovered node config, fill params from the input contract, and validate the complete graph. Integration results are available as {{node_id.default.field}}. Check business success before dependent writes; completion alone does not prove business success.

```json

{
  "_group": "Brightree",
  "params": {},
  "handler": "brightree_search_patient"
}

```

[Action contracts](https://genhealth.ai/docs/workflows/action-contracts.md) · [Run recovery](https://genhealth.ai/docs/workflows/operations.md)

## Inputs

- `first_name` — First Name (text)
  Optional first-name search filter. Supply at least one useful name filter to avoid an unbounded search.
- `last_name` — Last Name (text)
  Optional last-name search filter. Do not treat a single returned name as verified identity.

## Outputs

- `patients` — Patients
- `count` — Count

Output schema completeness: `reviewed_partial`

## 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",
  "properties": {
    "last_name": {
      "type": "string",
      "description": "Optional last-name search filter. Do not treat a single returned name as verified identity.",
      "x-workflow-field-type": "text"
    },
    "first_name": {
      "type": "string",
      "description": "Optional first-name search filter. Supply at least one useful name filter to avoid an unbounded search.",
      "x-workflow-field-type": "text"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "count": {
      "type": "integer",
      "minimum": 0
    },
    "patients": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    }
  },
  "additionalProperties": true
}
```
