diagnosis of cognitive functions