Smart infusion pumps operate by using software that allows healthcare providers to input drug libraries and dosage parameters. These pumps utilize various safety features like drug error reduction software (DERS) to ensure the correct medication and dosage are administered. They can also be programmed to alert nurses if any discrepancies or potential errors are detected.