4.2: Regulatory Documentation
Design History File (DHF)
Purpose and Structure
DHF: Compilation of records documenting the design history of a finished medical device
Regulatory Requirement:
- FDA 21 CFR 820.30(j): Each manufacturer shall establish and maintain a DHF for each device type
- EU MDR Annex II: Technical documentation must include design and development process records
Contents (for software-intensive medical device):
Design History File (DHF) - Infusion Pump Control Software
├── 1. Design Planning
│ ├── Software Development Plan (IEC 62304 Clause 5.1)
│ ├── Risk Management Plan (ISO 14971)
│ ├── Verification & Validation Plan
│ └── Project Timeline, Resources, Budget
├── 2. Design Input (Requirements)
│ ├── System Requirements Specification (SRS)
│ ├── Software Requirements Specification (SRS)
│ ├── Traceability Matrix (System → Software)
│ └── User Needs Assessment (clinical requirements)
├── 3. Design Output (Implementation)
│ ├── Software Design Specification (SDS)
│ ├── Source Code (45,000 SLOC, Git repository)
│ ├── Build Procedures, Makefiles
│ └── Software Bill of Materials (SBOM)
├── 4. Design Verification (Testing)
│ ├── Unit Test Report (SWE.4, 600 tests)
│ ├── Integration Test Report (SWE.5, 350 tests)
│ ├── System Test Report (SWE.6, 250 tests)
│ ├── SOUP Verification Report (FreeRTOS qualification)
│ └── Traceability Matrix (Requirements → Tests)
├── 5. Design Validation (Clinical Use)
│ ├── Usability Test Report (IEC 62366, 15 nurses)
│ ├── Clinical Evaluation Report (literature review)
│ └── Validation Protocol & Report (simulated clinical use)
├── 6. Risk Management File
│ ├── Hazard Analysis (ISO 14971)
│ ├── Risk Control Measures (traceability)
│ ├── Residual Risk Assessment
│ └── Risk-Benefit Analysis
├── 7. Design Reviews
│ ├── Requirements Review (Month 4)
│ ├── Architecture Review (Month 6)
│ ├── Code Review Reports (monthly)
│ └── Final Design Review (Month 16)
├── 8. Design Changes
│ ├── Change Control Log (GitLab issues, 120 changes)
│ ├── Change Impact Analysis (each change)
│ └── Regression Test Results (post-change)
└── 9. Regulatory Submissions
├── FDA 510(k) Application
├── EU Technical Documentation (MDR Annex II)
└── Approval Letters (FDA clearance, CE certificate)
Total DHF Size: ~2,500 pages (for 45,000 SLOC software)
DHF Organization Best Practice: Use electronic Document Management System (DMS) with version control (e.g., MasterControl, Greenlight Guru, or custom GitLab-based system). Ensure 21 CFR Part 11 compliance for electronic records. Physical paper DHF is acceptable but challenging to maintain for large software projects.
FDA 510(k) Submission
510(k) Premarket Notification Content
FDA Requirement: Demonstrate substantial equivalence to predicate device
510(k) Structure (FDA Guidance on Software Validation):
## FDA 510(k) Submission: Infusion Pump Control Software v2.0
**510(k) Number**: K254321 (assigned by FDA after submission)
**Submission Date**: 2025-11-15
**Applicant**: MedTech Solutions Inc.
---
### Section 1: Device Description
**Device Name**: SmartFlow IV Infusion Pump
**Classification**: Class II, 21 CFR 880.5725 (Infusion Pump)
**Intended Use**: Controlled delivery of intravenous drugs and fluids to adult patients in hospital settings
**Key Features**:
- Flow rate range: 0.1 - 999 mL/hr
- Drug library: 1,200 pre-programmed drug profiles
- Safety alarms: Air-in-line, occlusion, low battery (30 total alarms)
- Connectivity: WiFi (optional) for EMR integration via HL7 FHIR
---
### Section 2: Predicate Device
**Predicate**: Baxter Colleague CX Infusion Pump (K103456, cleared 2011)
**Substantial Equivalence Table**:
| Characteristic | Predicate (Baxter CX) | Our Device (SmartFlow) | Comparison |
|----------------|----------------------|------------------------|------------|
| **Intended Use** | IV drug/fluid delivery | IV drug/fluid delivery | [PASS] Same |
| **Technology** | Peristaltic pump, pressure sensors | Peristaltic pump, pressure sensors | [PASS] Same |
| **Flow Rate Range** | 0.1 - 999 mL/hr | 0.1 - 999 mL/hr | [PASS] Same |
| **Accuracy** | ±5% | ±5% | [PASS] Same |
| **Drug Library** | 800 drugs | 1,200 drugs | [WARN] Different (more comprehensive) |
| **Connectivity** | None | WiFi (optional) | [WARN] Different (new feature) |
**Differences Justification**:
1. **Drug Library**: Expanded from 800 to 1,200 drugs → Improves safety (more comprehensive dose limits)
- Mitigation: Extensive validation testing (250 system tests)
2. **WiFi Connectivity**: New feature for EMR integration → Cybersecurity risks
- Mitigation: SBOM provided, vulnerability scanning, encrypted communication (TLS 1.3)
---
### Section 3: Software Documentation (FDA Guidance on Software Validation)
**Software Level of Concern**: **Major** (per FDA classification)
- Rationale: Software failure can result in death (drug overdose)
- Documentation Level: Enhanced (comprehensive DHF required)
**Software Documentation Provided**:
1. **Software Description** (40 pages)
- Architecture diagrams (layered architecture)
- Module descriptions (10 major modules)
- Safety-critical functions (air detection, occlusion detection)
- SOUP items (FreeRTOS v10.4.3, qualification report)
2. **Software Requirements Specification** (120 pages)
- 500 requirements (functional, performance, safety, interface)
- Traceability to system requirements
- Risk control measures (per ISO 14971)
3. **Verification & Validation Summary** (60 pages)
- Unit testing: 600 tests, 95% code coverage (Class C: 100%)
- Integration testing: 350 tests, 98% pass rate
- System testing: 250 tests, 100% pass rate
- Traceability matrix: Requirements → Tests (500 traces)
4. **Hazard Analysis** (35 pages)
- Software hazard analysis (per IEC 62304 Clause 7)
- 25 identified hazards (e.g., over-infusion, air embolism)
- Risk control measures (software + hardware)
- Residual risk: All acceptable per ISO 14971
5. **Cybersecurity Documentation** (FDA 2023 Guidance)
- Software Bill of Materials (SBOM) in SPDX format
- Threat model (STRIDE analysis)
- Vulnerability management plan (quarterly scanning)
- Secure development practices (code signing, encrypted storage)
---
### Section 4: Performance Testing
**Bench Testing** (Non-Clinical Performance):
| Test | Standard | Samples | Result |
|------|----------|---------|--------|
| **Flow Rate Accuracy** | IEC 60601-2-24 | 30 units | ±3.2% avg (spec: ±5%) [PASS] |
| **Air Detection Sensitivity** | IEC 60601-2-24 | 30 units | 50 µL air detected 97% (spec: 95%) [PASS] |
| **Occlusion Detection** | IEC 60601-2-24 | 30 units | 300 mmHg threshold, 100% detection [PASS] |
| **Alarm Audibility** | IEC 60601-1-8 | 10 units | 65 dB at 3m (spec: ≥60 dB) [PASS] |
| **EMC/EMI** | IEC 60601-1-2 | 3 units | Pass (no interference with WiFi) [PASS] |
**Software Performance Testing**:
| Test | Objective | Result |
|------|-----------|--------|
| **Stress Test** | 1,000 hours continuous operation | 0 crashes, 0 memory leaks [PASS] |
| **Fault Injection** | 500 simulated sensor faults | All faults detected, safe state entered [PASS] |
| **WiFi Security** | Penetration testing (ethical hacker) | No vulnerabilities found [PASS] |
---
### Section 5: Clinical Evaluation
**Clinical Data**: Literature review (no clinical trial required for 510(k))
**Conclusion**: Substantial equivalence demonstrated
- [PASS] Same intended use as predicate
- [PASS] Same technological characteristics (with minor enhancements)
- [PASS] Performance testing shows equivalence
- [PASS] Cybersecurity risks mitigated
**Requested Action**: FDA clearance for marketing
FDA Review Timeline:
- Day 0: Submission received (2025-11-15)
- Day 15: FDA accepts for review (no administrative deficiencies)
- Day 60: FDA issues Deficiency Letter (Additional Info Request)
- Day 75: Response submitted (cybersecurity details, SBOM clarifications)
- Day 90: FDA Clearance Letter received [PASS] (K254321)
Deficiency Letter Example:
FDA Additional Information Request - K254321
Date: 2026-01-15
Question 1: WiFi Connectivity Cybersecurity
The submission mentions WiFi connectivity for EMR integration. Please provide:
a) Complete Software Bill of Materials (SBOM) including all open-source components
b) Vulnerability scanning report for all third-party libraries
c) Threat model (STRIDE or similar) for WiFi attack vectors
d) Secure software update mechanism (how firmware updates are authenticated)
Response Required By: 2026-01-30 (15 days)
AI Contribution to 510(k) Preparation:
- ChatGPT-4 drafted substantial equivalence table from predicate device spec (8h → 3h, 62% reduction)
- Claude Sonnet summarized 500 requirements into 2-page executive summary for FDA reviewers
- SBOM auto-generated using Syft tool (scans Git repository, outputs SPDX format)
EU MDR Technical Documentation
MDR Annex II Requirements
EU Market: CE Mark under MDR 2017/745 (replaces old MDD 93/42/EEC)
Classification: Class IIb (Rule 11: Software for therapy, monitoring, diagnosis)
Notified Body: TÜV SÜD (NB 0123) - conducts conformity assessment
Technical Documentation Structure (Annex II):
## EU MDR Technical Documentation - Infusion Pump Software
**Manufacturer**: MedTech Solutions Inc.
**Device**: SmartFlow IV Infusion Pump
**UDI-DI**: (01)04012345123456 (Unique Device Identifier)
**Classification**: Class IIb (Rule 11, MDR Annex VIII)
---
### Annex II Section 1: Device Description and Specification
**General Description**:
- Infusion pump for controlled IV drug delivery
- Software-controlled peristaltic pump mechanism
- Embedded software (ARM Cortex-M7, FreeRTOS)
**Variants**:
- SmartFlow-Basic (no WiFi, drug library only)
- SmartFlow-Pro (WiFi, EMR integration) ← Our variant
**Technical Specifications**:
[Same as FDA 510(k) Section 1]
---
### Annex II Section 2: Information Supplied by Manufacturer
**Instructions for Use (IFU)** (120 pages):
- Operating instructions (setup, drug selection, alarm handling)
- Safety warnings (air embolism risk, occlusion detection limits)
- Maintenance schedule (annual calibration)
- Troubleshooting guide
**Labeling**:
- CE Mark (Notified Body 0123)
- Warning symbols (per ISO 15223-1)
- UDI barcode
---
### Annex II Section 3: Design and Manufacturing Information
**Software Lifecycle Documentation** (IEC 62304):
- Software Development Plan
- Software Requirements Specification (500 requirements)
- Software Design Specification (architecture, detailed design)
- Verification & Validation Reports
- SOUP Qualification (FreeRTOS)
**Manufacturing**:
- Software build process (GitLab CI/CD, automated builds)
- Code signing (cryptographic signature for firmware authentication)
- Version control (Git, release tagging)
---
### Annex II Section 4: General Safety and Performance Requirements (GSPR)
**GSPR Checklist** (MDR Annex I):
| GSPR Clause | Requirement | Compliance Evidence |
|-------------|-------------|---------------------|
| **1. General** | Benefit-risk ratio acceptable | Risk Management File (ISO 14971) |
| **13. Devices with software** | Software validated per state of the art | IEC 62304, IEC 62366 (usability) |
| **14.1 Infection/contamination** | Software does not contribute to infection | N/A (not applicable to IV pump software) |
| **17.1 Electronic devices** | Safe under normal/fault conditions | Fault injection testing (500 tests) |
| **17.4 Protection against external influences** | EMC/EMI compliance | IEC 60601-1-2 (EMC standard) |
---
### Annex II Section 5: Benefit-Risk Analysis and Risk Management
**Risk Management File** (ISO 14971):
- Hazard identification (25 software hazards)
- Risk estimation (severity × probability)
- Risk control measures (software + hardware mitigations)
- Residual risk evaluation (all acceptable)
- Risk-benefit analysis (benefits outweigh residual risks)
**Example Risk-Benefit Analysis**:
Hazard: Over-infusion (drug overdose) Severity: Death (S=5) Probability after mitigation: Remote (P=2) Risk: Medium (5×2=10, acceptable threshold: ≤12)
Risk Controls:
- Software: PID controller with ±5% accuracy, hard dose limits (drug library)
- Hardware: Pressure sensor detects occlusion (upstream blockage)
- Procedure: Nurse double-checks drug entry before starting infusion
Benefit: Precise drug delivery → improved patient outcomes (vs manual gravity drip) Conclusion: Benefits outweigh residual risks [PASS]
---
### Annex II Section 6: Product Verification and Validation
**Clinical Evaluation Report** (MDR Article 61):
- Literature review (50 publications on infusion pump safety)
- Post-market surveillance data (complaint database analysis)
- Conclusion: Device safe and effective for intended use
**Performance Evaluation**:
- Bench testing (IEC 60601-2-24 compliance)
- Usability testing (IEC 62366, 15 nurses, no use errors)
- Software V&V (1,200 test cases, 98% pass rate)
---
Notified Body Assessment:
- Stage 1 (Month 17): Documentation review (off-site)
- Stage 2 (Month 18): On-site audit (factory inspection, DHF review)
- Outcome: CE Certificate issued (valid 5 years) [PASS]
Certificate Number: TÜV-MDR-0123-2026-00456
Software Bill of Materials (SBOM)
SBOM Generation (FDA 2023 Cybersecurity Guidance)
Requirement: FDA mandates SBOM for networked medical devices (WiFi-enabled)
SBOM Format: SPDX (Software Package Data Exchange) or CycloneDX
Tool: Syft (Anchore) - scans Git repository, generates SBOM
Command:
# Generate SBOM for infusion pump firmware
syft dir:/path/to/infusion-pump-firmware -o spdx-json > sbom.spdx.json
# Scan SBOM for known vulnerabilities (CVE database)
grype sbom:sbom.spdx.json --fail-on medium
SBOM Excerpt (infusion_pump_v2.0.spdx.json):
{
"spdxVersion": "SPDX-2.3",
"dataLicense": "CC0-1.0",
"SPDXID": "SPDXRef-DOCUMENT",
"name": "Infusion Pump Control Software v2.0",
"documentNamespace": "https://medtechsolutions.com/sbom/infusion-pump-v2.0",
"creationInfo": {
"created": "2025-11-10T14:30:00Z",
"creators": ["Tool: Syft-0.95.0"]
},
"packages": [
{
"SPDXID": "SPDXRef-Package-FreeRTOS",
"name": "FreeRTOS",
"versionInfo": "10.4.3",
"supplier": "Organization: Amazon Web Services",
"downloadLocation": "https://github.com/FreeRTOS/FreeRTOS-Kernel",
"filesAnalyzed": false,
"licenseConcluded": "MIT",
"licenseDeclared": "MIT",
"externalRefs": [
{
"referenceCategory": "SECURITY",
"referenceType": "cpe23Type",
"referenceLocator": "cpe:2.3:a:amazon:freertos:10.4.3:*:*:*:*:*:*:*"
}
]
},
{
"SPDXID": "SPDXRef-Package-mbedTLS",
"name": "Mbed TLS",
"versionInfo": "3.4.0",
"supplier": "Organization: Arm Limited",
"downloadLocation": "https://github.com/Mbed-TLS/mbedtls",
"licenseConcluded": "Apache-2.0",
"comment": "Used for WiFi TLS encryption"
},
{
"SPDXID": "SPDXRef-Package-lwIP",
"name": "lwIP",
"versionInfo": "2.1.3",
"supplier": "Organization: Swedish Institute of Computer Science",
"downloadLocation": "http://savannah.nongnu.org/projects/lwip/",
"licenseConcluded": "BSD-3-Clause",
"comment": "TCP/IP stack for WiFi networking"
}
],
"relationships": [
{
"spdxElementId": "SPDXRef-DOCUMENT",
"relationshipType": "DESCRIBES",
"relatedSpdxElement": "SPDXRef-Package-FreeRTOS"
}
]
}
Vulnerability Scan Results (Grype):
NAME INSTALLED VULNERABILITY SEVERITY
FreeRTOS 10.4.3 CVE-2021-32020 Low (CVSS 3.2)
↳ Fixed in v10.4.4, stack overflow in queue handling
↳ Mitigation: Not applicable (we use static allocation, no heap)
mbedTLS 3.4.0 None found -
lwIP 2.1.3 CVE-2020-22283 Medium (CVSS 5.8)
↳ DNS cache poisoning vulnerability
↳ Mitigation: Firmware update planned for v2.1 (upgrade to lwIP 2.2.0)
FDA Response: Accepted (vulnerability in lwIP mitigated by firmware update plan)
SBOM Maintenance: SBOM is not a one-time deliverable. Update SBOM whenever: (1) Adding new dependencies, (2) Upgrading existing libraries, (3) Quarterly vulnerability scans. Include SBOM update process in your post-market surveillance plan.
AI-Assisted Documentation
Productivity Gains
| Document | Traditional Effort | AI-Assisted Effort | AI Tool | Improvement |
|---|---|---|---|---|
| 510(k) Device Description | 40 hours | 15 hours | ChatGPT-4 (draft from product spec) | 62% faster |
| GSPR Checklist (EU MDR) | 25 hours | 10 hours | Claude Sonnet (table generation) | 60% faster |
| Traceability Matrix | 60 hours | 10 hours | Jama Connect (auto-generated) | 83% faster |
| SBOM Generation | 15 hours | 2 hours | Syft (automated scan) | 87% faster |
| Risk Management File | 80 hours | 45 hours | ChatGPT-4 (hazard analysis draft) | 44% faster |
Overall Documentation: 300 hours → 120 hours (60% reduction)
Example: AI-Generated GSPR Compliance Table
Prompt to Claude Sonnet:
Generate an EU MDR GSPR (General Safety and Performance Requirements) compliance table for an infusion pump with embedded software.
Include:
- GSPR clause number (MDR Annex I)
- Requirement description
- Compliance evidence (standards, test reports)
- Status (Compliant/Not Applicable/Partial)
Context:
- Device: IV infusion pump, software-controlled
- Standards: IEC 60601-1 (general), IEC 60601-2-24 (infusion pumps), IEC 62304 (software)
- WiFi connectivity for EMR integration
AI Output (Claude Sonnet, 5 minutes):
| GSPR Clause | Requirement | Compliance Evidence | Status |
|---|---|---|---|
| 1. General | Achieve intended performance, benefit-risk acceptable | Clinical Evaluation Report, Risk Management File (ISO 14971) | [PASS] Compliant |
| 13.1 Software | Validated per state of the art | IEC 62304 (Class C), V&V Reports | [PASS] Compliant |
| 13.2 IT Security | Cybersecurity by design | SBOM, Threat Model (STRIDE), Penetration Testing | [PASS] Compliant |
| 17.1 Electronic Devices | Safe under normal/fault conditions | Fault Injection Testing (500 tests), IEC 60601-1 compliance | [PASS] Compliant |
| 17.2 Software | Repeat accuracy, detect anomalies | Flow rate accuracy ±5% (250 tests), Self-diagnostics (watchdog) | [PASS] Compliant |
Engineer Review: 10 minutes (validated AI output, corrected 1 clause reference)
Time Saved: 3 hours (manual GSPR table creation) → 15 minutes (AI + review)
Summary
Regulatory Documentation Deliverables:
| Document | Pages | Purpose | Recipient |
|---|---|---|---|
| Design History File | ~2,500 | Complete design records (21 CFR 820.30) | Internal (FDA audit) |
| FDA 510(k) Application | ~250 | Premarket notification | FDA CDRH |
| EU MDR Technical Documentation | ~400 | CE Mark conformity assessment | Notified Body (TÜV SÜD) |
| SBOM (SPDX) | 1 file | Software component transparency | FDA, customers |
| Clinical Evaluation Report | ~80 | Clinical safety/effectiveness | Notified Body |
AI Contribution:
- Documentation effort: 300h → 120h (60% reduction)
- SBOM auto-generation: Syft tool (15h → 2h, 87% faster)
- 510(k) drafting: ChatGPT-4 (40h → 15h, 62% faster)
Outcome:
- [PASS] FDA 510(k) clearance: K254321 (granted Month 18)
- [PASS] CE Mark: TÜV SÜD certificate (issued Month 18)
- [PASS] Ready for market (USA + EU)
Next: Risk-based approach and lessons learned (27.03).