---
title: "Process Discharge"
method: POST
path: "/api/process-discharge"
---

# Process Discharge

`POST /api/process-discharge`

## Request

- Base URL: `https://app.archangelhealth.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.archangelhealth.ai/api/process-discharge`
- Auth: HTTP bearer

Full two-resource pipeline:
  Raw discharge notes → Extract → Generate (Diagnosis + Treatment)
                     → ElevenLabs audio for each → Store

If called by an authenticated doctor with a profile, assigns clinic_code, resource_code, and office_phone to the patient.
Returns both resource sets for immediate display.

## Headers

- `authorization` string, nullable

## Request body

- DischargeInput
  - `patient_name` string, required
  - `discharge_notes` string, required
  - `patient_id` string, nullable
  - `phone_number` string, nullable
  - `email` string, nullable
  - `doctor_office_phone` string, nullable
  - `doctor_clinic_code` string, nullable
  - `resource_code` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/archangelhealth/apis/archangel-health-surgical-patient-platform.md) - [All operations](https://skmtc.dev/archangelhealth/apis/archangel-health-surgical-patient-platform/llms.txt) - [OpenAPI document](https://skmtc.dev/archangelhealth/apis/archangel-health-surgical-patient-platform/revisions/3514f4e119da?raw)
