Impact of a dementia-friendly program on detection and management of patients with cognitive impairment and delirium in acute-care hospital units: a non-equivalent control group design