According to various aspects of the present application, embodiments of an infusion pump for administering medication to a patient are provided. According to one embodiment, the infusion pump automatically determines time intervals and associated rates of infusion of the medication, and automatically controls a pump engine to infuse the medication for the determined time intervals at the associated rates of infusion. According to another embodiment, the infusion pump determines whether an infusion set is configured to infuse medication into a patient at one site or at two sites. The infusion pump then controls the pump engine based on the determined configuration of the infusion set. According to another embodiment, the infusion pump automatically primes the infusion set for infusion of medication into a patient. According to another embodiment, the infusion pump automatically determines whether one or more needles have been placed on the patient correctly.根據本申請案之各種態樣,提供一種用於向一病患投與藥物之輸注泵的具體實例。根據一個具體實例,該輸注泵自動地判定該藥物之輸注的時間間隔及相關速率,且自動地控制一泵引擎以該等相關輸注速率輸注該藥物持續經判定時間間隔。根據另一具體實例,該輸注泵判定一輸注套件經組態以在一個部位處抑或在兩個部位處輸注藥物至一病患中。該輸注泵接著基於該輸注套件之經判定組態控制該泵引擎。根據另一具體實例,該輸注泵自動地灌注該輸注套件以用於輸注藥物至一病患中。根據另一具體實例,該輸注泵自動地判定一或多個針是否已正確地置放於該病患上。