Discharging psychiatric patients from hospital