Diagnosis of functional psychoses