A method of automatically programming an infusion pump includes scanning, via a machine-readable scanner wirelessly connected to the infusion pump, a machine-readable label for a drug container to automatically program the infusion pump according to a protocol included in the label. The machine-readable label for the drug container further includes a drug name and data associated with a drug corresponding to the drug name.