# Create Facility

> Perform Create Facility through Brightree.

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

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

- Handler: `brightree_create_facility`

- Connection type: `brightree`

## Inputs

- `patient_key` — Patient Key (expression, required)
  Required literal value or workflow expression.
- `name` — Name (expression, required)
  Required literal value or workflow expression.
- `address_1` — Address 1 (expression, required)
  Required literal value or workflow expression.
- `address_2` — Address 2 (expression)
  Optional literal value or workflow expression.
- `city` — City (expression, required)
  Required literal value or workflow expression.
- `state` — State (expression, required)
  Required literal value or workflow expression.
- `postal_code` — Postal Code (expression, required)
  Required literal value or workflow expression.
- `phone` — Phone (expression)
  Optional literal value or workflow expression.
- `fax` — Fax (expression)
  Optional literal value or workflow expression.
- `facility_group_value` — Facility Group Value (expression)
  Optional literal value or workflow expression.
- `marketing_rep_text` — Marketing Rep Text (expression)
  Optional literal value or workflow expression.
- `marketing_rep_value` — Marketing Rep Value (expression)
  Optional literal value or workflow expression.
- `country_value` — Country Value (expression)
  Optional literal value or workflow expression.

## Outputs

- `success` — Success
- `message` — Message
- `facility` — Facility
- `facility_key` — Facility Key
- `error` — Error

Output schema completeness: `best_effort_declared`

## Safety

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

## Schemas

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

### Input schema

```json
{
  "type": "object",
  "required": [
    "patient_key",
    "name",
    "address_1",
    "city",
    "state",
    "postal_code"
  ],
  "properties": {
    "fax": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "city": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "name": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "phone": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "state": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "address_1": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "address_2": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "patient_key": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "postal_code": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "country_value": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "marketing_rep_text": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "marketing_rep_value": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "facility_group_value": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "message": {},
    "success": {},
    "facility": {},
    "facility_key": {}
  },
  "additionalProperties": true
}
```
