+ Part VI · Software
Software that checks the dose.
A 2013 analysis of FDA's recall database by engineers at the University of Illinois found fifteen recalls between 2006 and 2011 that corrected or removed infusion pumps because of computer faults bearing on safety; together they covered about 945,000 devices. Across all medical devices in those years, 1,210 of 5,294 recalls, about 23 %, were computer-related, and nearly two thirds of those were classed as software. Part VI follows that software. Chapter 20 opens the pump to its firmware, the code between the keypad and the motor, and to what FDA asked of such code after 2010. Chapter 21 turns to the drug library, the hospital's own table of limits that checks each entry, and to why it has caught fewer errors than hoped. Chapter 22 connects the pump to the health record and the hospital network, and counts what the connection removes and what it adds.
Software inside the pump.
+ The questionWhat does a pump's software do, and what did the 2010 failures teach about writing it?
Software defects, by FDA's own account
When FDA launched its infusion pump initiative on 23 April 2010, it wrote to pump makers offering to review their software before they submitted it. Its white paper said the agency would examine pump code itself with static analysis, tools that inspect source code without running it. The reason was in the same paper: "The most common types of reported problems have been associated with software defects." The key bounce of the opening story was one example; the paper gave no count.
The defects outlived the initiative: in November 2025 a rate keyed with two leading zeros could freeze the Ivenix pump's screen (Chapter 17). Both faults, fifteen years apart, sat in the software that reads keys, builds them into a number and checks it against limits. A pump's software does nearly everything except push the fluid, and after 2010 FDA asked that it be treated as a safety system, specified from its hazards and checked by tools as well as tests.
Everything between the key and the motor
A pump's software is usually called firmware: code stored in the pump, written for its own processor and changed only by a deliberate update. It reads the keys or the touchscreen and builds a value from them. It converts a dose into a rate when the nurse programs in micrograms per kilogram per minute (Chapter 16), and it checks the entry against the drug library (Chapter 21). It then turns the rate into a schedule of motor steps and counts those steps to report the volume infused. That count is the inference this guide began with: in most pumps the volume on the screen is the firmware's arithmetic on its own motor, not a measurement of the drug.
Around that main path the firmware watches. It reads the downstream pressure sensor and decides when a rise means a blockage (Chapter 12), reads the air detector (Chapter 13), and ranks and sounds alarms (Chapter 15). It also estimates the battery's remaining time and logs each event for reading after an incident (Chapter 25). A fault can therefore surface almost anywhere: in a silent alarm, a wrong battery estimate or a false log.
Two properties of this code matter most. The firmware is the only part of the pump that holds the dose: the mechanism knows only steps, and the nurse sees only the screen. And every check the firmware makes is a check of its own inputs. It can compare a typed rate with a library limit, but it cannot know whether a key was pressed once or twice unless it was designed to tell. The bouncing key shows the design method on a small scale: the physical behavior is measured, a margin chosen and the result tested.
A key must be read once
A key on a pump's keypad closes a pair of metal contacts. Contacts do not close cleanly: they strike, separate and strike again before they settle, and a processor that reads the key every few milliseconds sees each strike as a new press. This is contact bounce. An embedded-systems engineer who measured 18 ordinary switches in 2004 found that 16 of them settled within 6.2 ms, with an average bounce of about 1.6 ms, while one switch bounced for 157 ms as it opened. These were generic switches, not pump keypads, but they show the spread to plan for: most contacts settle quickly, and a few take a hundred times longer.
Firmware answers bounce by debouncing: it accepts a change of state only after the contact has held that state for a set time. The same engineer recommends a period of 20 to 50 ms, sampled every 1 to 5 ms, and notes that a response delay of 50 ms seemed instantaneous to users while 100 ms was noticeable. The period has to be longer than any bounce the keypad will produce over the life of the pump, and shorter than the gap between two deliberate presses, or the pump will swallow a digit the nurse meant to type. Picking a number between those limits looks like a detail of electronics and is a safety decision.
The firmware in this illustration samples a key every 5 ms and accepts a change only after four identical samples in a row, which is 4 × 5 = 20 ms of steady contact. - An average bounce of 1.6 ms touches at most one sample. The longest of the 16 ordinary switches, 6.2 ms, touches at most two (6.2 ÷ 5 = 1.24, so it can straddle two). Four identical samples cannot occur inside the bounce, so one press is counted. - The press is accepted at most 6.2 + 20 = 26.2 ms after first contact, inside the 50 ms that seemed instantaneous. - The margin is 20 ÷ 6.2, about 3.2 times the longest ordinary bounce. - The outlier bounced for 157 ms, about 157 ÷ 5 = 31 samples. If its contact rests closed for four samples in a row during that time, the firmware counts a second press, and "30" becomes "300" (Chapter 16).
A 20 ms period rejects every ordinary bounce. A period long enough to cover 157 ms would exceed the 100 ms that users notice, so such a switch has to be found by testing and replaced, not filtered.
Defects that live in a version
Hardware wears, and maintenance can catch some wear before it causes a failure (Chapter 24). Software does not wear. A firmware defect is present from the day its version is installed, in every pump that runs it, and it shows itself only when the conditions that reach it occur: a particular sequence of keys, a battery in a particular state, a second infusion that starts at an exact moment. Such conditions can stay hidden for a long time and then recur in every pump that meets them.
A defect lives in a version, so its remedy is a new version, with risks of its own. FDA's records for the Ivenix pump show five such corrections in about 26 months, at least three of them Class I. Version 5.8.0 was corrected in March 2024; 5.9.1 in August 2024; and 5.9.2 from January 2025, because the pump could stop working, or over-infuse if a secondary infusion started exactly as the primary ended. Version 5.10.1, corrected from November 2025, also misjudged the battery's remaining capacity (Chapter 15). Its remedy, 5.10.2, was itself corrected in May 2026 for a false battery reading, in the recall that opens Part IX; a separate correction concerned a touchscreen cable (Chapter 17).
A version that has run for years without a reported fault has been tested only on the sequences of keys, states and timings that users happened to produce. The 2025 Ivenix defects needed two leading zeros above a library limit, or a secondary infusion starting as the primary ended, and a long clean record rules out neither.
One fault must not reach the patient
Because a defect can sit unseen in every pump running a version, a pump cannot assume that its controller is right. IEC 60601-1, the general safety standard of Chapter 27, defines a single fault condition as one in which "a single means for reducing a risk is defective or a single abnormal condition is present", and asks that equipment stay free of unacceptable risk under such a condition, according to a consultancy's quotation of the standard's 2022 German edition. A test laboratory's account of clause 4.7 gives three ways to comply: one protective means whose failure is negligibly unlikely; a second protective means whose own failure is just as unlikely; or a first fault detected before a second means can fail.
One certifier's account of the editions of IEC 60601-2-24, a secondary source, describes how the standard applies the rule to pumps. A single fault that could cause over-infusion must raise a high-priority alarm and stop delivery or cut it to the keep-vein-open rate or less. Stopping this way is a fail-stop: the pump halts and alarms rather than carry on in a state its software can no longer trust. FDA's record uses the same term for the frozen Ivenix screen of November 2025, where a defect, not a detected fault, brought the stop. A fault in the protection itself must become obvious to the operator within the interval at which the set is changed, so a broken protection cannot stay hidden for long.
Makers state how much a single fault can deliver before the pump stops: BD gives 0.87 mL for its Alaris syringe pump MK4 with a 50 mL syringe, Baxter 0.56 mL for the SIGMA Spectrum and BD 0.1 mL for its BodyGuard T ambulatory syringe pump. At 1 mL/h those are about 52, 34 and 6 minutes of infusion at once. In principle the protection is independent of the controller it guards, sharing neither processor nor sensors, so that one fault cannot disable both. How any named pump arranges that is not known.
What FDA asked of pump software after 2010
Static analysis, the step the white paper promised, flags constructions in the code known to cause faults, so it reaches defects that testing finds only by chance. The white paper also pointed to the Generic Infusion Pump project, in which FDA researchers and engineers at the University of Pennsylvania set out the hazards of a generic pump and the safety requirements that follow, as an open reference for any maker.
The project's model of a patient-controlled analgesia pump shows how far formal checking reaches. In slides presented in May 2011, its authors list 97 safety requirements. About 20 could be verified against the model with a model checker, a program that examines every state the model can reach, and about 23 more with further detail. Formal proof covered about one requirement in five, and the rest still rested on testing and review.
FDA's final guidance of 2 December 2014 turned these ideas into two expectations for a 510(k) (Chapter 28). One is static analysis of all of the code. The other is a safety assurance case, a structured argument backed by evidence that the pump is safe, built on a hazard analysis whose causes include software. IEC 62304, the software life-cycle standard, is in Chapter 27.
Run static analysis on every build and keep each unresolved finding with its reason. Set the debounce period from bounce measured on worn keypads as well as new ones. Give each hazard-related requirement a test, inject single faults to show that the protection stops the pump and that its own failure shows, and rerun those tests on every version, including a correction issued under recall pressure. For each change, ask which other functions read the same data: the 2026 Ivenix fault lay in the battery estimate that the 2025 correction was meant to fix.
- A pump's firmware does every step between a keystroke and a motor step, and the volume it reports is its own count of that motion.
- Sampling every 5 ms with a 20 ms debounce period rejects ordinary bounce of up to 6.2 ms with a threefold margin, but a switch that bounces for 157 ms can still turn "0" into "00".
- Software defects sit in a version, so each correction is a new release needing full verification, as five Ivenix corrections from 2024 to 2026 show, and after 2010 FDA asked for static analysis of all pump code.
- No single fault may leave an unacceptable risk, so a pump that detects one alarms and stops, and two makers state, for three pumps, that 0.1 to 0.87 mL can be delivered before it does.
Let's Talk