The interface between delirium and dementia in elderly adults