# Set Patient Facility

> Perform Set Patient Facility through Brightree.

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

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

- Handler: `brightree_set_patient_facility`

- Connection type: `brightree`

## Inputs

- `patient_key` — Patient Key (expression, required)
  Required literal value or workflow expression.
- `facility_text` — Facility Text (expression, required)
  Required literal value or workflow expression.
- `facility_value` — Facility Value (expression, required)
  Required literal value or workflow expression.
- `skip_if_missing` — Skip If Missing (boolean)
  Optional true-or-false value.
  Default: `false`
- `dry_run` — Dry Run (boolean)
  Optional true-or-false value.
  Default: `false`

## Outputs

- `success` — Success
- `message` — Message
- `updated_fields` — Updated Fields
- `skipped` — Skipped
- `error` — Error

Output schema completeness: `best_effort_declared`

## Safety

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

## Schemas

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

### Input schema

```json
{
  "type": "object",
  "required": [
    "patient_key",
    "facility_text",
    "facility_value"
  ],
  "properties": {
    "dry_run": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "patient_key": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "facility_text": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "facility_value": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "skip_if_missing": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "message": {},
    "skipped": {},
    "success": {},
    "updated_fields": {}
  },
  "additionalProperties": true
}
```
