Exploring factors associated with dementia diagnosis and post-diagnosis outcomes in the Electronic Health Care Record data