# Update Patient's Default Claim Physician

> Perform Update Patient's Default Claim Physician through Bonafide.

Source: [https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_link_physician_to_patient](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_link_physician_to_patient)

Integration: [Bonafide](https://genhealth.ai/docs/workflows/integrations/bonafide.md)

- Handler: `bonafide_link_physician_to_patient`

- Connection type: `bonafide`

## Inputs

- `customer_id` — Customer Id (expression, required)
  Required literal value or workflow expression.
- `physician_id` — Physician Id (expression, required)
  Required literal value or workflow expression.

## Outputs

- `success` — Success
- `customer_id` — Customer Id
- `physician_id` — Physician Id
- `previous_physician_id` — Previous Physician Id
- `message` — Message
- `error` — Error
- `error_message` — Error Message

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": [
    "customer_id",
    "physician_id"
  ],
  "properties": {
    "customer_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "physician_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "message": {},
    "success": {},
    "customer_id": {},
    "physician_id": {},
    "error_message": {},
    "previous_physician_id": {}
  },
  "additionalProperties": true
}
```
