# Reconcile Local Patient Mirror — Secondary Account

> Perform Reconcile Local Patient Mirror — Secondary Account through Brightree.

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

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

- Handler: `brightree_reconcile_local_patient_secondary`

## Use in a workflow

Copy this discovered node config, fill params from the input contract, and validate the complete graph. Integration results are available as {{node_id.default.field}}. Check business success before dependent writes; completion alone does not prove business success.

```json

{
  "_group": "Brightree",
  "params": {
    "account_profile": "secondary"
  },
  "handler": "brightree_reconcile_local_patient_secondary"
}

```

[Action contracts](https://genhealth.ai/docs/workflows/action-contracts.md) · [Run recovery](https://genhealth.ai/docs/workflows/operations.md)

## Inputs

- `patient_key` — Patient Key (expression, required)
  Required literal value or workflow expression.
- `expected_patient_name` — Expected Patient Name (expression, required)
  Required literal value or workflow expression.
- `expected_birth_date` — Expected Birth Date (expression, required)
  Required literal value or workflow expression.
- `account_profile` — Account Profile (select)
  Optional selected identifier or value.
  Default: `"secondary"`
  Options: Secondary ("secondary")

## Outputs

- `success` — Success
- `patient_id` — Patient Id
- `created` — Created
- `reason_code` — Reason Code
- `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",
    "expected_patient_name",
    "expected_birth_date"
  ],
  "properties": {
    "patient_key": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "account_profile": {
      "enum": [
        "secondary"
      ],
      "type": "string",
      "default": "secondary",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "expected_birth_date": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "expected_patient_name": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "created": {},
    "success": {},
    "patient_id": {},
    "reason_code": {}
  },
  "additionalProperties": true
}
```
