HospitalStays

Discharge the patient. Gated on the originating visit's discharge checklist (409 `DISCHARGE_BLOCKED` with the checklist in the body). Standing orders on the stay are discontinued in the same transaction so nothing keeps generating occurrences for a patient who went home. Returns the discharge summary (ITE-710): the entry plus the unperformed billable occurrences and the estimate id — the caller converts the estimate themselves; nothing here writes a bill.

Changed on
post/hospitalstays/{id}/discharge

Request

Path parameters

idstring required

Request body

notestring nullable
dischargedAtstring date-time nullable

Response

OK

estimateIdstring nullable

The stay's running estimate, to convert. Null when the stay never charged anything.

discontinuedOrderIdsstring[]

Orders that were still active/held and were discontinued by this discharge.

lastSeenAtstring date-time nullable

The caller's "last looked at this sheet" marker (ITE-704), or null when they have never looked. Per user: two people reading the same board get different values.

Changes