# Search Marketing Referral Facility Options

> Perform Search Marketing Referral Facility Options through Brightree.

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

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

- Handler: `brightree_search_marketing_referral_facility_options`

- Connection type: `brightree`

## Inputs

- `patient_key` — Patient Key (expression, required)
  Required literal value or workflow expression.
- `search_text` — Search Text (text, required)
  Required text value.

## Outputs

- `success` — Success
- `facilities` — Facilities
- `count` — Count
- `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_key",
    "search_text"
  ],
  "properties": {
    "patient_key": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "search_text": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "count": {},
    "error": {},
    "success": {},
    "facilities": {}
  },
  "additionalProperties": true
}
```
