I think possibly the interpretation is that it's not so much giving people the wrong medication, more not being able to give them the medication that they need, as it's not known what they need to be given.
One would hope, of course, that this information is recorded (cached?) on each ward.