What happens when a patient leaves the hospital?