# Get Episode Details

> Perform Get Episode Details through CareWebQI.

Source: [https://genhealth.ai/docs/workflows/integrations/care-web-qi/carewebqi_get_episode_details](https://genhealth.ai/docs/workflows/integrations/care-web-qi/carewebqi_get_episode_details)

Integration: [CareWebQI](https://genhealth.ai/docs/workflows/integrations/care-web-qi.md)

- Handler: `carewebqi_get_episode_details`

- Connection type: `carewebqi`

## Inputs

- `episode_id` — Episode Id (expression, required)
  Required literal value or workflow expression.
- `include_discharged` — Include Discharged (boolean)
  Optional true-or-false value.
  Default: `true`

## Outputs

- `success` — Success
- `found` — Found
- `exited` — Exited
- `episode_id` — Episode Id
- `auto_authorization` — Auto Authorization
- `patient_name` — Patient Name
- `patient_id` — Patient Id
- `patient_date_of_birth` — Patient Date Of Birth
- `patient_gender` — Patient Gender
- `patient_age` — Patient Age
- `patient_city` — Patient City
- `patient_state` — Patient State
- `benefit_plan` — Benefit Plan
- `request_type` — Request Type
- `request_status` — Request Status
- `additional_info_requested` — Additional Info Requested
- `submit_date` — Submit Date
- `complete_date` — Complete Date
- `requested_admit_date` — Requested Admit Date
- `next_review_date` — Next Review Date
- `last_modified_date` — Last Modified Date
- `primary_diagnosis` — Primary Diagnosis
- `primary_procedure` — Primary Procedure
- `attending_provider` — Attending Provider
- `facility_name` — Facility Name
- `place_of_service` — Place Of Service
- `service_type` — Service Type
- `point_of_care` — Point Of Care
- `requested_level_of_care` — Requested Level Of Care
- `approved_level_of_care` — Approved Level Of Care
- `requested_units_or_visits` — Requested Units Or Visits
- `approved_units_or_visits` — Approved Units Or Visits
- `appeal_date` — Appeal Date
- `appeal_determination_date` — Appeal Determination Date
- `episode` — Episode
- `error` — Error

Output schema completeness: `best_effort_declared`

## Safety

- External effect: `read`
- Confirmation recommended: no
- Retry safe: yes
- Dry run supported: no

## Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

### Input schema

```json
{
  "type": "object",
  "required": [
    "episode_id"
  ],
  "properties": {
    "episode_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "include_discharged": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "found": {},
    "exited": {},
    "episode": {},
    "success": {},
    "episode_id": {},
    "patient_id": {},
    "appeal_date": {},
    "patient_age": {},
    "submit_date": {},
    "benefit_plan": {},
    "patient_city": {},
    "patient_name": {},
    "request_type": {},
    "service_type": {},
    "complete_date": {},
    "facility_name": {},
    "patient_state": {},
    "point_of_care": {},
    "patient_gender": {},
    "request_status": {},
    "next_review_date": {},
    "place_of_service": {},
    "primary_diagnosis": {},
    "primary_procedure": {},
    "attending_provider": {},
    "auto_authorization": {},
    "last_modified_date": {},
    "requested_admit_date": {},
    "patient_date_of_birth": {},
    "approved_level_of_care": {},
    "requested_level_of_care": {},
    "approved_units_or_visits": {},
    "additional_info_requested": {},
    "appeal_determination_date": {},
    "requested_units_or_visits": {}
  },
  "additionalProperties": true
}
```
