The effect of dementia on patterns of healthcare use in older adults with diabetes.