Identifying patterns of healthcare use and exploring indicators of quality of care among people with dementia nearing the end of life using routine data