IVD Technology
Magazine
IVDT Article Index
Streamlining the IVD software development process
Nelson Holton
Complexities in diagnostic instruments pose challenges for software engineers and product developers. Communication and thorough planning can make the process a smooth one.
The number and complexity of diagnostic instruments have increased tremendously in the last decade. Instrument software comprising more than 100,000 lines of code and costing as much as $10 million to develop is no longer uncommon for larger, high-end projects.

This expansion in scope brings with it significant challenges related to the integration of the chemical, mechanical, electronic, and software components of an instrument. To create a successful product, medical device development teams must find ways to complete software projects on time and ensure that the software is compatible with all facets of the developing instrument.
Life in the Fast Lane
It is usually hard to accurately predict a time frame for software development. Determining the size and scheduling of a software project is especially challenging because it can be so easily influenced by other aspects of the product development process, such as assay chemistry, electromechanical engineering, FDA approval, clinical studies, and verification and validation (V&V). All of these elements have a reputation for defying deadline and budget constraints.
Scheduling a project to coincide with a specific market window can cause a time crunch in the development stage and lead engineers to cut corners. However, research shows that in order to reduce development time by 25% below optimum, resource allocations must be raised by a much larger amount. Attempts to reduce a software schedule by 75% below the ideal are doomed to failure, either skyrocketing staffing requirements or prolonging the time needed in development.1
Unfamiliarity with new technology can also throw a wrench into any timetable. Manufacturers who lack an understanding of each component of the product can be inaccurate when estimating schedules. This increases the pressure on those responsible for cross-disciplinary integration. Furthermore, where there is an imbalance in the development process between other disciplines and software engineers, team members can expect delays at the software stage, particularly when larger automated systems are involved.
To compound matters, instrument developers and software engineers often do not understand each other's disciplines. This causes problems in the precise definition of system functions and interfaces, and highlights the fundamental difference between these fields. In the electromechanical sphere, for instance, engineers are accustomed to dealing with tolerances and take into account the fact that designed machine behavior is only a close approximation of final form. If a software engineer is unaware of this, however, faulty assumptions can lead to time wasted in debugging.
Take something as simple as the draft (taper) of plastic parts. Although this is a given in mechanical design, a software engineer's ignorance of this factor can affect volume or positioning calculations.
Hard Facts about Software
There are many factors that can affect the smooth and rapid development of medical technology software. Apart from V&V, the software phase is last in the process line because an integral aspect of its function is to coordinate device components into a logical whole. Therefore, software can inherit shortcomings and tardiness from earlier stages in the development and integration process.
If an instrument's "physics" don't function properly, for instance, software developers are often called upon to determine a solution. Obvious examplesusually planned as part of the development phaseare calibration curves or lookup tables that map idiosyncratic instrument behavior into expected results based on laboratory experiments.
Some system integration problems can be resolved with software. Examples include the following.
Corrections such as these can be most easily and effectively performed by software, and should be planned for this stage. Although this role may solicit occasional grumbles from programmers, software's ethereal construction lends itself to being thought of in this fashion. It is often less expensive to "fix it in the software" than to correct the underlying problemparticularly when time is short.
Living with the Monster
Looking ahead into the next decade, diagnostic instruments will almost certainly become more, not less, complex. To maximize the chances of hitting the intended market window and to remove a considerable portion of the risk, certain key steps are indicated.
Carefully Plan Early Integration of Software into the System Architecture. All stakeholders must be on the same wavelength from the outset. If differing design viewpoints cannot be reconciled at an early stage, the instrument is certain to have a long development process and may go through unforeseen iterations.
This happened at one Midwest company. During its development, a poorly conceived IVD device with more than 100,000 lines of code encountered major problems that cost two years, led to the redesign of significant sections of software, and required the electromechanical components to be completely reworked. On paper, sufficient coordination appeared to be in place. The company formed an electromechanical group, a test group, a software group, an integration group, a user group, and several other teams to assist cross-disciplinary integration.
Unfortunately, the user group was located in a different building and came too late in the coordination chain. As a result, users didn't get what they'd asked for. To make matters worse, both the software and hardware groups made costly errors and didn't consult enough with others. Why? Some groups attended one meeting, and some went to another. Had these groups coordinated better with one another, the delays associated with this project could have been reduced significantly.
Perhaps the most important reason for the extensive delay of this project, however, was a difference in opinion over a precise definition for the instrument. Representatives from the different disciplines must be in agreement about the product's concept if they are to ensure that a safe, effective product is created.
Properly Document All Planning and Project Requirements. Doing the paperwork correctly provides a solid foundation for product development. Subsequent phases of the development can proceed more efficiently. This "up-front" documentation, which serves as a road map, consists of three key elements:
Essentially, the PRD states exactly what the instrument is to accomplish. A top-level design and architecture plan may then be constructed which describes how the system is to be partitioned, how each subsystem contributes, and how each subsystem interacts with the others.
There is a delicate line between specification (what the UI does) and design (how it does it). The UI document often has more "design" in it than is appropriate for the PRD because the look and feel of the entire instrument are true requirements of the UI. On the other hand, how the instrument delivers fluid or heats a sample is usually not integral to what the instrument does.
Risk analysis is crucial. For example, a major IVD system manufacturer didn't pay enough attention to hazard mitigation in the relationship between software and electromechanical components in a blood testing instrument. When it became evident that some samples could be confused with others while inside the device, significant software and some of the electromechanics had to be redone, costing several years of delay. The company eventually realized that critical system issues could have been resolved with teamwork. Safety concerns must be planned for early in the product development process.

Figure 1. Product development documentation consists of
three equally important sets of requirements. They must always be in alignment.
These three documents (PRD, UI requirements, and safety requirements) do not exist in isolation. Even after the PRD has been written, safety requirements may cause functional requirements to be altered. These changes, in turn, can impact UI requirements. Further user feedback can result in another revision of the PRD.
Consider the user interaction method. The UI requirements may state that the sample identification is to be typed into the computer, while hazard mitigation requirements recommend that an automated entry, such as bar codes, be used. This change could add significant redesign costs to the instrument. If it is a high-end device, bar code cost is probably not a major concern, but does have electromechanical and software repercussions. If the product is a low-cost device, having the user type sample identification numbers twice could satisfy safety requirements. Thus the PRD, UI requirements, and safety requirements documents should not only be considered individually, but also in terms of how each will affect the others (see Figure 1).
Get a Commitment from Management to Allocate Resources. Management must use resource and staffing profiles to accurately set deadlines. This allows all variables to be taken into account, thereby ensuring that the right number of testing instruments are ordered, adequate staffing is organized, and the project has the resources it needs to be done on schedule.
Qualified professionals are the single most critical resource for any project. The best software engineers can be several times as productive as average software engineers. Finding, motivating, and nurturing them is the single best way to guarantee success on a software project.
Four keys to IVD software developmentThe increasing complexity of IVD instrumentation requires product developers to think and act carefully in order to keep projects on schedule and within budget. The following key steps can help product developers keep software development under control. |
Manufacturers must apportion time to develop necessary equipment for the project. For example, custom support softwaresuch as a simulator to test how embedded instrument systems will integrate with UNIX or NT platforms in related hardwareis a very valuable tool. Because the instrument itself doesn't yet exist, a simulator must be developed to speed the software development process. By using a simulator early in the process, bugs can be detected sooner, which can take months off the project's time to market.
Conclusion
The desire to get a product to market during a specific period can affect its development time frame. However, deadlines must be set with an understanding by all involved of what the developmental process entails and the consequences of lengthening it.
To achieve timely project success, all parties must be brought together early in the development process to align each facet of instrument design. By wisely investing weeks at the beginning of project planning, years can be saved in bringing complex instruments to market.
References
1. Barry W Boehm, Software Engineering Economics (Englewood Cliffs, NJ: Prentice Hall, 1981).
2. Code of Federal Regulations, 21 CFR 820.
Nelson Holton is software systems director at RELA Inc. (Boulder, CO).
Images Copyright 1999 Photodisc Inc.



