# Find or Add Referring Provider Location

> Perform Find or Add Referring Provider Location through NikoHealth.

Source: [https://genhealth.ai/docs/workflows/integrations/nikohealth/nikohealth_find_or_add_referring_provider_location](https://genhealth.ai/docs/workflows/integrations/nikohealth/nikohealth_find_or_add_referring_provider_location)

Integration: [NikoHealth](https://genhealth.ai/docs/workflows/integrations/nikohealth.md)

- Handler: `nikohealth_find_or_add_referring_provider_location`

- Connection type: `nikohealth`

## Inputs

- `provider_id` — Provider Id (expression, required)
  Required literal value or workflow expression.
- `address_line` — Address Line (expression, required)
  Required literal value or workflow expression.
- `address_line_2` — Address Line 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.
- `zip` — Zip (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.
- `email` — Email (expression)
  Optional literal value or workflow expression.
- `location_name` — Location Name (expression)
  Optional literal value or workflow expression.
- `add_if_missing` — Add If Missing (boolean)
  Optional true-or-false value.
  Default: `"true"`
- `dry_run` — Dry Run (boolean)
  Optional true-or-false value.
  Default: `"false"`

## Outputs

- `success` — Success
- `provider_id` — Provider Id
- `location_id` — Location Id
- `added` — Added
- `match_status` — Match Status
- `readback_verified` — Readback Verified
- `missing_fields` — Missing Fields
- `failure_category` — Failure Category
- `status_code` — Status Code
- `correlation_id` — Correlation Id
- `error_type` — Error Type
- `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": [
    "provider_id",
    "address_line",
    "city",
    "state",
    "zip"
  ],
  "properties": {
    "fax": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "zip": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "city": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "email": {
      "description": "Optional 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"
    },
    "dry_run": {
      "type": "boolean",
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "provider_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "address_line": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "location_name": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "add_if_missing": {
      "type": "boolean",
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "address_line_2": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "added": {},
    "error": {},
    "success": {},
    "error_type": {},
    "location_id": {},
    "provider_id": {},
    "status_code": {},
    "match_status": {},
    "correlation_id": {},
    "missing_fields": {},
    "failure_category": {},
    "readback_verified": {}
  },
  "additionalProperties": true
}
```
