The determinants and outcomes of long-stay psychiatric admissions