Back to all articles
HealthcareHealthTech

Medical Device Software Development: A Process Guide

Sophie BennettNovember 29, 202619 min read

Medical device software development explained: IEC 62304 lifecycle, ISO 14971 risk, FDA documentation, cybersecurity and AI change control.

Medical Device Software Development: A Process Guide

In a 2025 peer-reviewed study of the 168 machine-learning medical devices FDA authorized in 2024, 46 devices, or 27.4%, were categorized as standalone Software as a Medical Device (SaMD). Standard commercial engineering workflows break down in medical device software development because defects in deployed code can trigger clinical harm, regulatory recalls, and rework across entire product lines.

SaMD versus software inside a medical device

The modern regulatory concept of SaMD took shape through international consensus when the International Medical Device Regulators Forum (IMDRF) formed a SaMD Working Group in 2013, chaired by the FDA,, which agreed on foundational documents covering SaMD key definitions, risk categorization, quality management and clinical evaluation, according to the FDA SaMD overview. Every downstream engineering decision in medical device software starts with the product's intended use, which sets the regulatory classification, the IEC 62304 software safety class, the FDA documentation level, the cybersecurity scope, and the postmarket change-control boundaries in that exact sequence.

SaMD performs one or more medical purposes on its own without being part of a physical hardware medical device. Software inside a medical device (often called embedded software or firmware) drives or controls hardware, such as the motor-control firmware regulating flow rate inside an infusion pump.

A hand-drawn illustration showing a smartphone app connected to a medical device and a wearable health tracker.

Consider three hypothetical clinical products to see where the boundary sits:

  • A standalone radiology tool that analyzes CT scans and flags suspected hemorrhage for a clinician falls under SaMD because it executes a diagnostic purpose independently of scanner hardware.
  • Embedded firmware that monitors occlusion pressure and adjusts motor speed inside an infusion pump is software inside a medical device because it operates the physical hardware.
  • A hospital chart viewer that displays existing EHR records without scoring, filtering for clinical severity, or recommending action generally falls outside medical device regulation, though teams should confirm borderline cases with qualified regulatory advisors.

The intended-use statement flows directly into product labeling, hazard analysis, and clinical evidence requirements. In the European Union, EU MDR Annex VIII Rule 11 guidance classifies software providing information for diagnostic or therapeutic decisions as Class IIa, escalating to Class IIb if decisions could cause serious health deterioration or surgical intervention, and Class III if they could cause death or irreversible deterioration. Software monitoring physiological processes sits in Class IIa, rising to Class IIb when variations in vital physiological parameters could create immediate patient danger, while all other medical device software falls into Class I.

Before writing architecture diagrams, founders should answer two questions in plain language: what medical action does the product claim to support, and can its output drive a clinical decision without an independent clinician review? Teams mapping clinical workflows into healthcare AI and clinical integration engineering or scoping early regulatory boundaries through SaMD development services lock down that intended-use statement first so engineering and compliance work from one baseline. For the wider regulatory picture, see our medical device software regulation guide, and for US risk classes, our guide to SaMD classification under FDA rules.

The medical device software development lifecycle under IEC 62304

IEC 62304 is the international process standard for medical device software lifecycle activities, and the FDA recognizes it as a consensus standard. It defines what engineering teams must plan, execute, and record across the product's life:

  1. Software development planning and requirements analysis.
  2. Architectural design and detailed design.
  3. Unit implementation and unit verification.
  4. Integration testing, system testing, and controlled software release.
  5. Maintenance, configuration management, problem resolution, and risk management.

IEC 62304 scales the depth of those activities using three software safety classes defined by the worst harm a software failure could cause. Class A applies when no injury or damage to health is possible, Class B applies when non-serious injury is possible, and Class C applies when death or serious injury is possible. Class A items require the lightest record set, while Class B and Class C items add formal architectural design, detailed design specifications, and stricter unit verification. Our guide to IEC 62304 software safety classification walks through class assignment in more detail.

A conceptual sketch illustrating the lifecycle of medical device software development with various diagnostic and management icons.

Segregation and software of unknown provenance

Software architecture can reduce compliance overhead through segregation. When engineers isolate a low-risk audit-logging module from a Class C dosing algorithm using clear process boundaries and documented risk controls, the logging module won't inherit Class C detailed design and verification burdens.

Third-party code carries its own rules under the standard. Open-source libraries, operating systems, frameworks, and off-the-shelf packages are classified as Software of Unknown Provenance (SOUP) because the manufacturer didn't build them under its own quality system. Teams must document each SOUP item's functional requirements, evaluate failure modes it could introduce, track its version under configuration management, and monitor disclosed anomalies.

Verification, validation, and negative testing

Engineers frequently blur verification and validation, yet reviewers check them separately. Verification proves that each software item meets its specified technical requirements through unit, integration, and system testing. Validation proves that the finished software satisfies user needs and its intended use inside the actual clinical workflow, using representative clinicians and realistic patient data.

User interface safety follows IEC 62366-1 usability engineering so teams catch use errors before release. Testing must also cover failure paths, not just happy paths. In EHR-integrated software using SMART on FHIR OAuth scopes, for example, teams should document requested and granted resource-level scopes and run negative tests proving that unauthorized FHIR resource types or write operations are rejected.

To start structuring this lifecycle, assign an IEC 62304 safety class to each software item directly from your hazard analysis and list the design, testing, and SOUP artifacts that class triggers. When teams use an AI-assisted development framework where AI generates code, tests, and documentation, humans still review and approve every output before it enters the controlled baseline.

Risk management and quality systems under ISO 14971 and ISO 13485

Software defects are a recurring cause of medical device recalls, so risk management has to reach down into the code.

ISO 14971 establishes the risk management process that ties software behavior directly to patient safety. It requires six continuous activities: hazard identification, risk estimation, risk evaluation, risk control, evaluation of overall residual risk, and formal risk review, with production and postproduction data feeding back into the risk file.

In a software system, concrete hazards include a unit-conversion error in a dosing calculation, a stale lab value displayed without a timestamp warning, or a dropped critical-result alert. Each hazard links forward to a specific software requirement, an implemented mitigation, and a recorded verification test proving the control works.

Reviewers rarely reject a risk file because an algorithm is complex; they reject it when a documented hazard has no traceable link to a software requirement, a passing test, and a signed residual-risk acceptance.

While ISO 14971 governs risk, ISO 13485 governs the Quality Management System (QMS) surrounding the product. It establishes procedures for design controls, document control, corrective and preventive action (CAPA), supplier oversight, and the validation of automated tools used in production or quality processes. In the United States, the FDA's Quality Management System Regulation in 21 CFR Part 820 incorporates ISO 13485:2016 by reference, giving the standard direct regulatory force for US market entry. Our article on ISO 13485 design controls shows how those procedures map to software work.

Together, the two standards create an unbroken audit trail from hazard to requirement to test to release record. Auditors inspect the risk management file to verify that every identified software hazard has a verified control and that management explicitly documented its acceptance of any remaining residual risk.

FDA documentation levels for device software functions

For US premarket submissions, the FDA's June 2023 final guidance on Content of Premarket Submissions for Device Software Functions establishes two submission tiers: Basic and Enhanced documentation levels. Intended use pays off here as an engineering input. The level depends on the risk profile of the device software function before you apply any risk controls, so the hazard analysis you built under ISO 14971 directly determines how much paper the FDA expects to see. Enhanced documentation generally applies where a failure or flaw could present a hazardous situation with a probable risk of death or serious injury (a risk threshold that replaced the older moderate and major levels of concern), as well as for Class III devices, combination products, and specified blood establishment functions.

Teams preparing a submission work through the documentation elements the guidance lists, in this order:

  1. Documentation Level Evaluation: a statement of the Basic or Enhanced level and the rationale for it.
  2. Software description covering significant features, functions, inputs, outputs and hardware platforms.
  3. Risk management file: risk management plan, risk assessment and risk management report.
  4. Software Requirements Specification (SRS) with enough detail to trace each requirement to risk controls, design and tests.
  5. System and software architecture design: diagrams of modules, layers, interfaces and data flows.
  6. Software Design Specification (SDS), expected in the submission at the Enhanced level only.
  7. Software development, configuration management and maintenance practices.
  8. Software testing as part of verification and validation.
  9. Software version history.
  10. Unresolved software anomalies, with the reason each is acceptable for release.

Notice the logic of the order. Elements two and three restate what the software is for and what can go wrong. Elements four through seven describe what you built in response and how you built it. Elements eight through ten prove the two halves match. Read the list as a lifecycle, and it stops looking like paperwork.

At the Basic level, FDA does not recommend including the SDS in the submission; the design detail stays in the design history file and FDA may request it during review. Development practices can be covered by a summary or by a declaration of conformity to the FDA-recognized version of IEC 62304. The software description, risk management file, SRS, architecture diagrams, testing, version history and anomalies list are still expected. Skipping the SDS in the filing does not mean skipping the design work.

Submission timelines most often slip because of traceability gaps and version mismatches rather than missing code. A test report referencing build 4.2.1 while the SRS describes build 4.3.0 forces a round of FDA questions that costs weeks. Every document in the package must carry an explicit revision identifier tied to the exact software build under review, backed by a dated build-to-document index.

The judgment call that most often deserves a second opinion is the borderline Basic-versus-Enhanced decision for software whose failure could indirectly contribute to a hazardous situation, such as a monitoring function feeding a clinician's dosing decision. When the probable-risk analysis sits near the death-or-serious-injury threshold, get regulatory counsel to review the rationale before you commit to a filing schedule, because upgrading from Basic to Enhanced mid-preparation means producing the SDS and fuller development and testing documentation retroactively.

Cybersecurity requirements under section 524B

Section 524B of the Federal Food, Drug, and Cosmetic (FD&C) Act establishes statutory cybersecurity requirements for cyber devices in FDA premarket submissions. A cyber device is any device that includes software validated, installed, or authorized by the sponsor, has the ability to connect to the internet, and contains technological characteristics that could be vulnerable to cybersecurity threats. Our FDA medical device cybersecurity guide covers the premarket package in more depth.

Under section 524B, manufacturers must include three core elements in premarket submissions:

  • A plan to monitor, identify, and address postmarket cybersecurity vulnerabilities and exploits in a reasonable time.
  • Processes and procedures providing reasonable assurance that the device and related systems are cybersecure, including a coordinated vulnerability disclosure (CVD) process.
  • A Software Bill of Materials (SBOM) covering commercial, open-source, and off-the-shelf software components.

The FDA's June 27, 2025 final guidance, Cybersecurity in Medical Devices Quality System Considerations and Content of Premarket Submissions, links cybersecurity directly to the full quality-system lifecycle, spanning design controls, risk analysis, software validation, complaint handling, quality audits, CAPA, servicing, and postmarket maintenance.

Threat modeling and SBOM evidence

Following FDA threat modeling recommendations, teams model the complete system and lifecycle rather than treating security as a late penetration test. Engineering maintains architecture views, trust boundaries, data-flow diagrams, and abuse cases traced directly to security requirements. Vulnerability assessment must evaluate how a weakness affects the device and its connected clinical environment, not rely solely on a published CVE score.

Per FDA SBOM configuration management guidance, the SBOM must be maintained under configuration management and updated whenever software in marketed devices changes. Tying each machine-readable SBOM to a specific released build, alongside component end-of-support dates and remediation decisions, allows engineering to reproduce affected builds and gives quality teams auditable proof of a controlled postmarket response.

In our engineering opinion at Ekipa, a practical development baseline that satisfies these expectations without stalling delivery includes risk-ranked threat modeling at every major design review, automated dependency scanning inside CI pipelines, security-focused integration testing across APIs and auth boundaries, and signed residual-risk acceptance before each release.

Governing AI-enabled devices and change control

Artificial intelligence is regulated as part of a medical device based on intended use and technological characteristics, and significant postmarket modifications to a model can trigger a new regulatory review. To handle planned model updates predictably, the FDA finalized its guidance on Marketing Submission Recommendations for a Predetermined Change Control Plan for Artificial Intelligence-Enabled Device Software Functions in December 2024; the current version on the FDA site is dated August 2025. Separately, the agency's January 2025 recommendations on AI-enabled device software lifecycle management and marketing submissions remain a draft, as listed on the FDA Digital Health Guidances page.

A Predetermined Change Control Plan (PCCP) is a bounded change-management framework authorized during a marketing submission, not blanket permission to retrain models continuously in production. As we detail in our guide to Predetermined Change Control Plans, the plan defines three core parts: the specific modifications allowed, the Modification Protocol governing data curation, retraining, performance verification, and rollout, and an Impact Assessment demonstrating that safety and effectiveness remain intact.

A hand-drawn medical monitor with an AI brain illustration, symbolizing integrated medical device software development processes.

Defining production monitoring boundaries

In our engineering view, teams operationalizing AI after clearance need concrete production guardrails written into their quality procedures before launch. Those guardrails should specify numeric data-drift thresholds, subgroup performance tracking across hospital sites and patient demographics, automated data-quality gates that block corrupted inputs, recalibration procedures, and explicit rollback triggers when live sensitivity or specificity drops below target bounds.

Consider a hypothetical example to trace how bounded governance works in practice. Suppose a team builds an ICU sepsis-risk prediction SaMD whose authorized PCCP permits threshold recalibration using validated EHR data from newly onboarded hospital sites, provided sensitivity and false-alert rates stay within a pre-specified performance band.

  1. Engineering ingests retrospective site data and runs automated data-quality checks against the Modification Protocol schema.
  2. Data science executes the approved recalibration procedure and evaluates subgroup performance across age, sex, and ICU unit types.
  3. Quality and clinical risk review the Impact Assessment to verify that updated performance stays inside the authorized band and introduces no new hazards.
  4. Release authority approves deployment to the new site and archives the build version, training provenance, and test evidence.
  5. If site data shifts require adding a new input feature or altering the model architecture outside the authorized band, the change stops and enters a new FDA submission pathway.

Engineering leaders must decide upfront which routine maintenance checks can run automatically, which model updates require human clinical and quality review, and which changes trigger a new submission. For broader lifecycle governance across postmarket monitoring and updates, see our guide to regulatory compliance for AI in medical devices.

Development checklist with owners and evidence

A reviewer does not start in the repository. They open the intended-use statement, then the classification rationale next to it. That pair works like the occupancy line on a building permit. It fixes who the product is for, and what safety class and documentation depth the later drawings must meet, before anyone argues about structure.

Product writes the intended purpose in clinical language and signs it. Regulatory countersigns the rationale that maps that purpose to the IEC 62304 safety class and, where the device is placed on the EU market, the EU MDR Rule 11 class. Architecture waits on both signatures. If either document changes, the rows below have to be re-checked. Safety class, test depth, cybersecurity scope, and change-control boundaries were all read off that first page.

The table is the lookup for the rest of the file. Each stage names the control, the owner who signs, and the artifact the reviewer asks for next.

Stage Control Primary owner Evidence
Intended use and classification Define intended purpose, IEC 62304 safety class and EU MDR Rule 11 class where applicable Product and regulatory Intended-use statement and classification rationale
Requirements and risk analysis Trace software requirements to hazards and mitigations under ISO 14971 Engineering and clinical risk Traceability matrix and risk management file
Design and implementation Versioned repository, code review and unit verification scaled to safety class Engineering Review records and unit test reports
Verification and validation System testing against requirements, plus usability and clinical validation QA and engineering Test protocols and summary reports
Cybersecurity Threat model, SBOM per released build and vulnerability response plan Security and engineering Threat model, SBOM and residual-risk acceptance
Documentation package Basic or Enhanced documentation level under FDA guidance Regulatory affairs Submission documentation index tied to build versions
Change control and postmarket Classify each change, run impact assessment and track PCCP scope for AI models Quality and product Change records and monitoring reports

The row that breaks most often is the documentation package. Regulatory affairs can assemble a clean index at Basic or Enhanced level, then product revises intended use after that index is frozen. The reviewer sets the index beside the signed intended-use statement, sees a documentation level that no longer matches the class, and stops. Bind the index to a build version only after that statement is locked.

Deployment gates and multi-site scaling

Lab testing is one hallway. A second hospital is a different floor plan: same build, different workflows. That operational variation rarely shows up in the lab. Engineering and QA hold the build at a release gate before any promotion. Quality records each staged site in the change record. Postmarket monitoring reports then split live performance by site and by demographic subgroup. The gate, the change record, and the monitoring report all point at one build, so scaling stays auditable under the same owners.

Medical device software

Building SaMD or software inside a medical device?

We build IEC 62304-aligned software with traceable requirements, risk controls, SBOMs and test evidence, working with our compliance partner on the regulatory file.

Prefer to pick a time? Book a call directly

Conclusion

Design freeze marks a line in the configuration. Intended use, the IEC 62304 safety class it sets, and the architecture that carries that class stop being drafts at that line. Together they are the cleared envelope. A later edit is either inside the envelope or it reopens the submission.

Test the change against three documents. Would a reviewer have to rewrite the intended-use statement, the safety-class rationale, or the hazard-to-requirement trace to accept the new build? If yes, classification, documentation level, and cybersecurity scope move with the change, and the submission package is rebuilt. A security patch or a workflow fix stays a maintenance release only when those three documents still describe the product exactly.

The envelope works like a building permit. Occupancy and the structural drawings stay fixed. Replacing a failed pump is allowed when the load path does not change. Adding a floor needs a new permit.

Ekipa AI can build a single SaMD module, such as an interoperability layer or a security upgrade, with documentation and traceability included, without taking over the product, working alongside our compliance partner MedQAIR on the regulatory file. If you are scoping device software work, talk to our engineers.

Frequently asked questions

What do first-time SaMD teams most often get wrong about regulation?

They treat intended use, safety classification, and the regulatory file as paperwork after design freeze. Those are engineering inputs, and intended use comes first. It works like a baseline: it selects which rules apply before you choose an architecture. Under IEC 62304 and the FDA's June 2023 device software documentation guidance, documentation written after freeze forces rework of architecture, risk controls, and testing evidence.

When should medical device software risk classification happen?

Classify while intended use is still editable, before architecture locks. Early ISO 14971 hazard analysis sets the IEC 62304 software safety class. Keep that class in the same revision as the intended-use statement. If intended use changes, reopen the class before new code merges. Assigned after freeze, the class is a retrofit and no longer describes the software you will ship.

What drives the FDA software documentation timeline?

Mismatches between document revisions and the exact build under review cause the common delays. The FDA's June 2023 guidance expects every requirement, risk control, test result, and anomaly record to align with that versioned build. If a revision and the build identifier disagree, regenerate the records before submission. Treat alignment as a release check, not as editing done after the code is already frozen.

What do SaMD teams most often underestimate about verification and validation?

They underestimate how quickly a finished protocol becomes unusable. Start formal verification and validation only after intended use, software safety class, and the requirement set share one frozen revision. If any of the three moves, retire the protocol and rewrite its pass criteria before execution. Otherwise you rerun work whose records cannot support the build you plan to ship.

Does an AI model update always require a new FDA submission?

No. A new submission is required only if the modification falls outside an authorized Predetermined Change Control Plan, or if it significantly affects safety, effectiveness, or intended use. Classify the update against that intended-use boundary before it merges. If the update changes intended use, hold the release. Confirm the pathway with qualified regulatory counsel.

saMD developmentmedical device softwareISO 14971IEC 62304FDA device software
Share:

Related Articles

Ready to Work with Our Team?

Connect with our team to explore how AI expertise can transform your business.