Evaluation of cognitive function involves taking a history from the patient and from someone who knows the patient plus doing a bedside mental status examination or, if bedside testing is inconclusive, formal neuropsychologic testing.