# Resolve Patient Facility

> Perform Resolve Patient Facility through Brightree.

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

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

- Handler: `brightree_resolve_patient_facility`

- Connection type: `brightree`

## Inputs

- `patient_key` — Patient Key (expression, required)
  Required literal value or workflow expression.
- `facility_name` — Facility Name (expression)
  Optional literal value or workflow expression.
- `expected_address` — Expected Address (json)
  Optional JSON value.
- `facility` — Facility (json)
  Optional JSON value.
- `delivery_info` — Delivery Info (json)
  Optional JSON value.
- `facility_source` — Facility Source (expression)
  Optional literal value or workflow expression.
- `is_private_residence` — Is Private Residence (boolean)
  Optional true-or-false value.
  Default: `false`
- `skip_address_validation` — Skip Address Validation (boolean)
  Optional true-or-false value.
  Default: `false`
- `skip_if_missing` — Skip If Missing (boolean)
  Optional true-or-false value.
  Default: `true`

## Outputs

- `success` — Success
- `facility_found` — Facility Found
- `is_private_residence` — Is Private Residence
- `delivery_info` — Delivery Info
- `facility` — Facility
- `facility_source` — Facility Source
- `expected_facility_address` — Expected Facility Address
- `facility_text` — Facility Text
- `facility_value` — Facility Value
- `facility_key` — Facility Key
- `skip_facility_write` — Skip Facility Write
- `skip_address_sync` — Skip Address Sync
- `facility_search_name` — Facility Search Name
- `facility_search_count` — Facility Search Count
- `facility_selection_reason` — Facility Selection Reason
- `selected_facility` — Selected Facility
- `action_required` — Action Required
- `action_required_message` — Action Required Message
- `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"
  ],
  "properties": {
    "facility": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "patient_key": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "delivery_info": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "facility_name": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "facility_source": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "skip_if_missing": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "expected_address": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "is_private_residence": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "skip_address_validation": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "success": {},
    "facility": {},
    "facility_key": {},
    "delivery_info": {},
    "facility_text": {},
    "facility_found": {},
    "facility_value": {},
    "action_required": {},
    "facility_source": {},
    "selected_facility": {},
    "skip_address_sync": {},
    "skip_facility_write": {},
    "facility_search_name": {},
    "is_private_residence": {},
    "facility_search_count": {},
    "action_required_message": {},
    "expected_facility_address": {},
    "facility_selection_reason": {}
  },
  "additionalProperties": true
}
```
