This is close to (become clear) rather than "know". So means "It became clear that 1892 of these people had dementia because a doctor had tested them."
We can't know why they took police test and when they knew they had dementia just from this sentence.