# Set Visit Status

> Perform Set Visit Status through eClinicalWorks.

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

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

- Handler: `ecw_set_visit_status`

- Connection type: `eclinicalworks`

## Inputs

- `encounter_id` — Encounter Id (text, required)
  Required text value.
- `visit_date` — Visit Date (date, required)
  Required date in YYYY-MM-DD format.
- `provider_id` — Provider Id (text, required)
  Required text value.
- `target_status` — Target Status (text, required)
  Required text value.
- `encounters` — Encounters (json)
  Optional JSON value.

## Outputs

- `success` — Success
- `error` — Error
- `updated_count` — Updated Count

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": [
    "encounter_id",
    "visit_date",
    "provider_id",
    "target_status"
  ],
  "properties": {
    "encounters": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "visit_date": {
      "type": "string",
      "format": "date",
      "description": "Required date in YYYY-MM-DD format.",
      "x-workflow-field-type": "date"
    },
    "provider_id": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    },
    "encounter_id": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    },
    "target_status": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    }
  },
  "additionalProperties": false
}
```

### Output schema

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