Assessment test for delirium and cognitive impairment