# Search Patients

> Perform Search Patients through Bonafide.

Source: [https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_search_patients](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_search_patients)

Integration: [Bonafide](https://genhealth.ai/docs/workflows/integrations/bonafide.md)

- Handler: `bonafide_search_patients`

- Connection type: `bonafide`

## Inputs

- `first_name` — First Name (expression, required)
  Required literal value or workflow expression.
- `last_name` — Last Name (expression, required)
  Required literal value or workflow expression.
- `date_of_birth` — Date Of Birth (date)
  Optional date in YYYY-MM-DD format.

## Outputs

- `success` — Success
- `patient_found` — Patient Found
- `single_match` — Single Match
- `match_count` — Match Count
- `external_id` — External Id
- `customer_type` — Customer Type
- `url` — Url
- `matches` — Matches
- `matched_by` — Matched By
- `ambiguous` — Ambiguous
- `identity_verified` — Identity Verified
- `review_required` — Review Required
- `message` — Message
- `error` — Error
- `error_message` — Error Message

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": [
    "first_name",
    "last_name"
  ],
  "properties": {
    "last_name": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "first_name": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "date_of_birth": {
      "type": "string",
      "format": "date",
      "description": "Optional date in YYYY-MM-DD format.",
      "x-workflow-field-type": "date"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "url": {},
    "error": {},
    "matches": {},
    "message": {},
    "success": {},
    "ambiguous": {},
    "matched_by": {},
    "external_id": {},
    "match_count": {},
    "single_match": {},
    "customer_type": {},
    "error_message": {},
    "patient_found": {},
    "review_required": {},
    "identity_verified": {}
  },
  "additionalProperties": true
}
```
