How do pharmacists ensure you get the right medicine?

Pharmacists go through special steps to prevent people from getting the wrong drugs.