Mental health problems raise the odds of cognitive impairment in COVID-19 survivors