Potentially inappropriate medication use and mortality in patients with cognitive impairment