Regulation & Standards, Design & Development, Quality & Testing
How to Document Risk Controls, Traceability, and Change Control Under IEC 62304
Updated
IEC 62304 software lifecycle documentation is not a set of separate documents produced at the end of development. It is a connected evidence set showing how the team identified software-related risks, implemented controls, verified them, controlled the released configuration, and assessed each later change.
The practical challenge is usually not writing a software development plan or a test report. It is maintaining the links between those records as requirements, code, dependencies, defects, and releases change. A reviewer should be able to start with a hazardous situation or a released software version and follow the evidence in either direction.
Start with a documentation model, not a document list
IEC 62304:2006+A1:2015 addresses software development, maintenance, risk management, configuration management, and problem resolution. The depth of some activities depends on the assigned software safety class: A, B, or C. However, every class still needs a controlled lifecycle process and objective evidence that it was followed.
A useful documentation model has four connected layers:
- Risk layer: hazards, hazardous situations, risk estimates, risk controls, residual-risk decisions, and risk-management review records.
- Lifecycle layer: system and software requirements, architecture, detailed design where applicable, implementation, and verification records.
- Configuration layer: identified configuration items, approved baselines, version history, build records, third-party software records, and release contents.
- Maintenance layer: problem reports, investigations, change requests, impact assessments, regression evidence, and re-release decisions.
These layers may be managed in a quality management system, application lifecycle management platform, requirements tool, source-control platform, or controlled documents. IEC 62304 does not require one particular tool or one large traceability spreadsheet. It does require that the relationships are reliable, reviewable, and controlled.
The key principle is simple: do not treat a risk control as complete because it appears in a risk file. It must become an implementable requirement, be represented in design and code as appropriate, and have verification evidence.
Turn each software risk control into a verifiable requirement
ISO 14971 provides the broader medical-device risk-management framework, while IEC 62304 specifies lifecycle activities for software. The two records should remain linked rather than being managed as independent workstreams.
A risk-control statement in the risk file is often too broad for implementation. For example, a statement such as “prevent delivery of an excessive dose” does not tell a software developer or tester what the system must do.
Translate it into one or more software requirements with unique identifiers and measurable behavior. For example:
- Risk control: Limit delivery outside the permitted treatment range.
- Software requirement: “The software shall reject a treatment value above the configured maximum and display a confirmation message before a value within range can be accepted.”
- Verification: A system test exercises values at the lower and upper boundary, values just outside the permitted range, and the confirmation behavior.
The requirement does not need to repeat the complete risk analysis. It should link to the applicable risk-control identifier. The risk record, in turn, should identify the software requirement or requirements that implement the control.
Keep controls separate from convenience features
Not every requirement is a risk control. A user-interface preference, reporting feature, or workflow improvement may have no direct risk-control role. Conversely, one risk control can require several requirements across interfaces, data handling, alarms, and fault response.
Use an explicit field such as risk-control implemented: yes/no, plus the linked control ID. This prevents teams from assigning vague safety relevance after implementation has already begun.
For each software requirement, record at least:
| Record field | Why it matters |
|---|---|
| Unique requirement ID | Supports stable trace links despite document revisions. |
| Requirement statement | Defines the required behavior without relying on code interpretation. |
| Source | Identifies the system requirement, risk control, regulatory need, or derived design need. |
| Safety classification or relevance | Helps identify the required review and verification depth. |
| Acceptance criteria | Makes the requirement objectively verifiable. |
| Links to design and tests | Shows implementation and verification coverage. |
| Status and approved revision | Prevents testing against an obsolete requirement. |
Derived software requirements also need control. A developer may identify a timeout, input-validation rule, error state, or diagnostic behavior that was not stated at system level. Record it as a derived requirement, identify its source and rationale, assess whether it affects risk, and include it in traceability and verification.
Build bidirectional traceability through the lifecycle
Traceability should answer two different questions.
Forward traceability asks: “Was every required risk control and software requirement implemented and verified?”
Backward traceability asks: “Why does this design element, code module, test, or released feature exist?”
A practical trace chain commonly looks like this:
Hazardous situation → risk control → system requirement → software requirement → architecture item or design element → software unit or configuration item → test case → test result → released version
Not every project needs a one-to-one link at every point. A single test can verify several requirements, and a design component can implement several controls. What matters is that the links are understandable and that missing coverage can be detected.
For Class B and Class C software, architecture, unit verification, and integration evidence become especially important. Architecture records should identify software items, interfaces, and any segregation used to support safety classification. Integration tests should demonstrate that safety-related behavior remains correct where items interact, not merely that each unit passes in isolation.
Use a traceability matrix as a view, not necessarily the source record
A traceability matrix is useful for release review because it can reveal unimplemented requirements, requirements without tests, failed tests, or risk controls lacking evidence. But a spreadsheet should not become the only place where links exist.
Where separate systems are used for requirements, risk management, source control, and test execution, define how identifiers are carried across systems. For example, a change request can identify affected requirement IDs; pull requests can reference the approved change ID; test records can reference requirement and risk-control IDs.
Generate or review a traceability report at defined milestones. The report should show the configuration baseline and date so it is clear which requirement revisions, test results, and source configuration it represents.
Document configuration management around the released product
Configuration management under IEC 62304 is more than using Git or another version-control system. Source control is important, but the configuration-management process must identify the items needed to reproduce, verify, release, and maintain the software.
Typical configuration items include:
- software requirements and design records;
- source code, build scripts, and environment definitions where needed for reproducibility;
- test procedures, test data, and automated test code;
- software tools whose output is relied upon;
- third-party components and software of unknown provenance (SOUP);
- release packages, installation files, labels, and release notes;
- known anomaly lists and associated risk evaluations.
Assign each item a unique identifier, version or revision, ownership, and status. Define when an item becomes baselined and who can approve a change to that baseline.
For a release, retain a configuration record that identifies the exact source revision, build inputs, included third-party component versions, completed verification status, unresolved anomalies, and approval decision. The record should support a repeatable build or, where full reproduction is not feasible, explain the controlled means used to identify the released configuration.
Do not lose third-party software in the dependency list
A package manifest alone may not provide enough evidence for SOUP or other externally sourced components. Maintain a controlled inventory showing the component name, supplier or source, version, intended function, applicable license information, known anomaly review where relevant, and update status.
When a dependency update is proposed, treat it as a software change. Its apparent technical simplicity does not remove the need for impact analysis, risk assessment, and appropriate verification.
Make change control traceable from issue to release
A compliant change record should show more than an approval to modify code. It should establish why the change is needed, what it may affect, which lifecycle records require updates, and what evidence supports the re-release.
Use a consistent sequence for defects, cybersecurity patches, planned enhancements, and supplier-component updates.
1. Log and classify the problem or requested change
Create a unique problem report or change request. Record the source, description, affected version, reproducibility information where available, and initial classification. A field observation may require complaint handling, vigilance assessment, CAPA, or cybersecurity processes in addition to the software problem-resolution workflow.
2. Perform documented impact analysis
Identify affected configuration items and trace links. At minimum, consider:
- intended use and system requirements;
- software requirements and risk-control requirements;
- architecture, interfaces, and segregation rationale;
- software safety classification;
- existing hazards, hazardous situations, and residual-risk conclusions;
- SOUP inventory and known anomalies;
- unit, integration, system, and regression tests;
- labeling, instructions, release notes, and installation procedures.
The analysis should not simply state “no impact.” It should explain the basis for that conclusion. For a defect correction, the team should identify whether the defect could defeat an existing risk control, create a new hazardous situation, or reveal that previous verification was incomplete.
3. Approve the change and define the work
The approval record should identify the change scope, affected documents, required reviews, verification activities, regression strategy, and release path. An emergency patch may need an accelerated workflow, but it still needs retrospective documentation and approval according to the quality system.
4. Update controlled lifecycle records
Revise the applicable requirements, design records, risk-management records, tests, and configuration inventory. If the change implements a new or revised risk control, restore the complete chain from the risk record to the verification result.
5. Verify the modification and assess regression
Execute tests that prove the change works and tests that show unaffected safety-related behavior remains acceptable. The regression rationale should be risk-based and specific to the interfaces, shared code, data flows, and configuration items affected.
A passing unit test for the changed function is rarely enough by itself. For example, a changed alarm threshold may also affect configuration loading, display behavior, logging, remote notifications, and boundary-condition tests.
6. Close the change only after release evidence is complete
Link the approved change record to the released version, build record, updated traceability report, verification results, anomaly assessment, and release authorization. If a problem remains unresolved, document its safety assessment and the rationale for release.
Use release review to find broken evidence chains
Before each release, conduct a documented review of the evidence package rather than checking only that automated tests passed. A focused review can ask:
- Are all approved software requirements implemented or formally deferred?
- Does every software-implemented risk control have current verification evidence?
- Are failed, blocked, or unexecuted tests resolved and assessed?
- Does the traceability view contain orphan requirements, tests, or design items?
- Is the released build tied to approved configuration items and third-party versions?
- Have unresolved anomalies been evaluated for safety and communicated as required?
- Have maintenance and problem reports changed the risk-management conclusions?
This review is most effective when conducted from the current release baseline. Reusing an old trace matrix without confirming links and revisions can conceal gaps created by later changes.
Keep the documentation usable for engineers
The evidence set should support development decisions, not only audit preparation. Keep identifiers stable, define link conventions in the software development plan, and make traceability updates part of the normal definition of done for a change.
A lightweight but disciplined approach is usually more reliable than large documents maintained only at phase gates. The objective is clear: for every release, the manufacturer can show what changed, why it changed, which risks and requirements were affected, how the implementation was verified, and exactly what software configuration was released.



