# Guard PCP Auth Re-bill

> Perform Guard PCP Auth Re-bill through eClinicalWorks.

Source: [https://genhealth.ai/docs/workflows/integrations/eclinicalworks/ecw_guard_pcp_auth_rebill](https://genhealth.ai/docs/workflows/integrations/eclinicalworks/ecw_guard_pcp_auth_rebill)

Integration: [eClinicalWorks](https://genhealth.ai/docs/workflows/integrations/eclinicalworks.md)

- Handler: `ecw_guard_pcp_auth_rebill`

- Connection type: `eclinicalworks`

## Inputs

- `patient_id` — Patient Id (text, required)
  Required text value.
- `encounter_id` — Encounter Id (text)
  Optional text value.
- `encounter_ids` — Encounter Ids (json)
  Optional JSON value.
- `dos` — Dos (date, required)
  Required date in YYYY-MM-DD format.
- `auth_ukey` — Auth Ukey (text, required)
  Required text value.

## Outputs

- `success` — Success
- `guard_hit` — Guard Hit
- `referral_id` — Referral Id
- `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_id",
    "dos",
    "auth_ukey"
  ],
  "properties": {
    "dos": {
      "type": "string",
      "format": "date",
      "description": "Required date in YYYY-MM-DD format.",
      "x-workflow-field-type": "date"
    },
    "auth_ukey": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    },
    "patient_id": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    },
    "encounter_id": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "encounter_ids": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "success": {},
    "guard_hit": {},
    "referral_id": {}
  },
  "additionalProperties": true
}
```
