Identifying ambulatory cancer patients at risk of impaired capacity to consent to research.