On average a person will be assessed by a doctor four times before a formal diagnosis of dementia is made. There are many types of dementia and it can be hard to get a formal diagnosis.
This Government website is useful to understand the law better https://www.gov.uk/government/collections/mental-capacity-act-making-decisions