Longitudinal study of cognitions, life events, and depression in psychiatric inpatients. · Study