A prospective cohort study linked mild cognitive impairment and depressive symptoms to higher delirium odds after knee or hip replacement.