Barcoding systems significantly enhance patient safety by reducing medication errors. When administering medication, nurses scan the patient's wristband and the medication barcode. The system cross-references the scanned data with the electronic health record (EHR) to confirm the "five rights" of medication administration: the right patient, the right drug, the right dose, the right route, and the right time.