Long ago when I was a nurse, it always had to be 2 members of staff giving out drugs. One to check the other. Surely a care home should have some similar procedure/protocol in place? If a patient couldn't confirm their name, we had to check their ID bracelet to make sure it was the right person.
I would want an enquiry held into what happened if that were my relative.