# Post Workflow Failure Alert

> Perform Post Workflow Failure Alert through eClinicalWorks.

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

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

- Handler: `ecw_post_workflow_failure_alert`

- Connection type: `eclinicalworks`

## Inputs

- `patient_id` — Patient Id (text, required)
  Required text value.
- `dos` — Dos (date, required)
  Required date in YYYY-MM-DD format.
- `category` — Category (select, required)
  Required selected identifier or value.
  Options: Eligibility Inactive ("eligibility_inactive"), Patient Not Found ("patient_not_found"), Auth Pending ("auth_pending"), Auth Denied ("auth_denied"), No Prior Encounter Testing Visit ("no_prior_encounter_testing_visit")
- `visit_type` — Visit Type (text)
  Optional text value.

## Outputs

- `success` — Success
- `halted` — Halted

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",
    "category"
  ],
  "properties": {
    "dos": {
      "type": "string",
      "format": "date",
      "description": "Required date in YYYY-MM-DD format.",
      "x-workflow-field-type": "date"
    },
    "category": {
      "enum": [
        "eligibility_inactive",
        "patient_not_found",
        "auth_pending",
        "auth_denied",
        "no_prior_encounter_testing_visit"
      ],
      "type": "string",
      "description": "Required selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "patient_id": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    },
    "visit_type": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "halted": {},
    "success": {}
  },
  "additionalProperties": true
}
```
