The purpose of this study is to determine whether early integrated prophylactic combined medical and psychological outpatient treatment is associated with a better prognosis in patients with severe unipolar and bipolar affective disorders than standard treatment.