Key symptoms in the detection of affective disorders in medical patients