Reversibility of cognitive impairment in medical inpatients.