Errors can happen at several steps, like when doctors write the prescription, when it's written down, when it's given out, when it's given to the patient, and when it's checked later. These mistakes can be caused by weak systems or human mistakes, like being tired or short-staffed.