Assessing mental competency in patients.