Analysis of mortality and hospitalization in patients with dementia.