Compliance architecture whitepaper · medical devices

If your QMS already satisfies FDA's quality rules and ISO 13485, private AI fits the same pattern.

A clause-level mapping of FDA's quality system rules (21 CFR 820, now the QMSR), ISO 13485, ISO 14971, IEC 62304, EU MDR, and MDSAP audit expectations to a private AI platform deployed inside a manufacturer's own validated Azure environment.

Prepared bynBrain AI · Strategic Engineering
Versionv1.1 · October 2026
Written forVP Quality, VP Regulatory Affairs, Software QA lead, MDSAP auditors
Executive summary

The AI capability becomes a controlled tool inside your QMS, not a parallel system.

Medical device companies are in a specific bind on AI.

Consumer tools such as ChatGPT, Copilot, Gemini, and Claude become an IP loss the moment an engineer pastes a draft 510(k), design history file content, or a CAPA narrative into a public model. “AI-enabled” device-industry SaaS often sits outside the manufacturer's QMS scope, so every output is technically an unqualified record. And shadow AI is already happening across regulatory, design, manufacturing, and post-market teams. The VPs of Quality we talk to confirm it, and none of them have the audit trail an FDA inspector or MDSAP auditor will ask for.

This paper documents the architecture nBrain deploys for medical device manufacturers, mapped clause by clause. The same architecture runs for Regal Technology Partners, a Tier 2 defense manufacturer, under ITAR and CMMC rules, an environment with audit and isolation requirements stricter than most device QMS deployments.

The platform is a non-product, production-support tool (legacy §820.70(i), ISO 13485 §7.5.6), validated for its intended use and wired into your existing CAPA, change-control, and management-review processes.

FDA quality system (21 CFR 820 / QMSR)Aligned · integrated into existing QMSAligned
ISO 13485:2016 §§7.5.6, 4.1.6, 4.2.5Aligned · production-support tool pathAligned
IEC 62304Only if AI is or becomes part of a SaMD · out of scope hereNot applicable
ISO 14971:2019 risk managementAligned · integrated into existing risk fileAligned
EU MDR Annex I / VIIAligned · production-support tool pathAligned
MDSAP (FDA, Health Canada, ANVISA, TGA, MHLW)Aligned · one platform for all fiveAligned
Manufacturer SOPs and trainingManufacturer-ownedAction required
A note on clause numbers

FDA's Quality Management System Regulation (QMSR) took effect on February 2, 2026. It replaced the old 21 CFR 820 subparts by incorporating ISO 13485:2016 by reference. Many quality teams still map to the legacy §820 sections, so this paper keeps them as a crosswalk next to the ISO 13485 clause that now governs. Your regulatory counsel confirms the final mapping.

How to read the owner column

Every control is tagged with who is on the hook for it.

nBrainThe platform meets the control directly. Validated as a non-product computer system (legacy §820.70(i), ISO 13485 §7.5.6).
SharedBoth parties have a role. nBrain implements the technical control; you fold it into your risk-management, change-control, or CAPA processes.
ManufacturerYou own it. Usually an SOP update, supplier-qualification dossier, training update, or explicit Quality sign-off.
N/ANot applicable here: out of scope (for example IEC 62304 for a non-SaMD tool) or inherited from the underlying infrastructure.
01The architectural difference

Two questions decide whether an AI deployment holds up in a device QMS.

If both are answered, integration is straightforward. If either fails, the deployment is at risk no matter what the vendor's marketing says.

1

Is the AI part of the device, or part of the QMS that produces the device?

If the AI is built into a marketed device, giving diagnostic output, treatment recommendations, or driving device behavior, it is Software in or as a Medical Device (SiMD or SaMD). Then IEC 62304, ISO 14971, FDA premarket requirements, and FDA's predetermined change control plan (PCCP) guidance for AI-enabled device software apply.

If employees use it in regulated workflows that produce device records (submissions, design reviews, complaint handling, CAPA, supplier audits), it is a production-support tool: validated for its intended use and integrated into the QMS, but not itself a regulated device. The architecture here is a production-support tool. Embedding AI in a marketed device is a separate IEC 62304 effort.

2

Can the QMS produce a controlled audit trail for every AI-assisted record?

An FDA investigator, MDSAP auditor, or notified body asks two things of every record: who made it, and how. If a 510(k), CAPA closure, complaint investigation, or design-review minute was AI-assisted, the QMS has to show on demand which AI tool and version, what prompt, which sources were retrieved, who approved the output, and what training that reviewer had.

The platform writes a log entry for every prompt, retrieval, model call, reviewer action, and administrative action to Microsoft Sentinel or your existing SIEM. It is queryable in seconds and exportable as a signed bundle an auditor can check against the underlying records.

The bottom line

If your QMS satisfies FDA's quality rules and ISO 13485, and you can validate a controlled tool used in QMS workflows, this AI capability fits the same pattern.

02Architectural pattern

Private AI, consumer AI, or AI-enabled device SaaS.

Every manufacturer picks one of three patterns for AI in QMS-affected workflows. Each carries a different audit posture.

DimensionPrivate AI (this paper)Consumer AI (ChatGPT, Copilot, and similar)AI-enabled device SaaS
IP exposure for 510(k), PMA, and clinical evaluation contentNone. Runs in your tenantActive. Vendor cloud, vendor logsDepends on the vendor
Model trains on regulated contentNo. Committed in Microsoft's data protection termsPossibly. Read the EULADepends on the vendor
Audit trail under your controlYes. Written to your SIEMNonePartial. Exported on request
QMS integrationProduction-support tool (legacy §820.70(i), ISO 13485 §7.5.6)Outside the QMS. Every output is an unqualified recordVendor-claimed; your QMS team validates
MDSAP coverage (five jurisdictions)Same architecture for all fiveNot assessableDepends on the vendor
Notified body and FDA inspectabilityRead-only access on requestNoneDepends on the vendor
03FDA quality system (21 CFR 820 / QMSR)

Quality system mapping, clause by clause.

Legacy §820 sections are shown with the ISO 13485:2016 clause the QMSR now incorporates.

ReferenceRequirementHow the architecture meets itOwner
§820.20 / ISO 13485 §5.6Management responsibility: quality policy, planning, review.AI capability added to existing management-review inputs (audit findings, complaint trends, CAPA effectiveness). Your executive owns AI capability decisions.Manufacturer
§820.22 / ISO 13485 §8.2.4Quality audit: internal audits of QMS effectiveness.The AI tool is an auditable element of your internal audit program. Read-only audit access documented; findings flow to existing CAPA.Manufacturer
§820.25 / ISO 13485 §6.2Personnel: qualifications, training, awareness. Your training function keeps records and verifies competence before anyone uses AI in QMS workflows.Manufacturer
§820.40 / ISO 13485 §4.2Document controls.AI configuration, validation deliverables, SOPs, and work instructions versioned in your eDMS. Changes follow your change-control SOP.Manufacturer
§820.50 / ISO 13485 §7.4Purchasing controls: supplier qualification.Microsoft (Azure, Azure OpenAI) qualified as the cloud and model supplier under the Microsoft Products and Services DPA. nBrain qualified as the implementation and support supplier, with documented security and quality controls. nBrain holds no ISO 27001, SOC 2, ISO 9001, or ISO 13485 certification; your supplier qualification reviews the controls directly.Manufacturer
§820.70(i) / ISO 13485 §4.1.6, §7.5.6Software validation for software used in production or the QMS, for its intended use.The most-inspected control. Validated as a non-product computer system per FDA's software validation guidance and ISO 13485: documented intended use, risk-based validation, and model qualification covering accuracy, consistency, and bias for the workflows in scope.nBrain
§820.75 / ISO 13485 §7.5.6Process validation for special processes.Not directly applicable; the AI is a tool, not a manufacturing process. If it supports a special process (for example document generation for a sterilization-cycle review), that validation incorporates the tool's validation status.Manufacturer
§820.100 / ISO 13485 §8.5Corrective and preventive action (CAPA).Integrated into your CAPA system. Anomalies (output drift, audit-trail anomalies, accuracy-test failures) raised through the existing workflow. AI-assisted CAPA narratives pass a reviewer-approval gate before commitment.Manufacturer
§820.180 / ISO 13485 §4.2.5Records: general requirements.AI-assisted records retained per your retention SOP. The audit trail shows AI involvement. Records reproducible in human-readable form and exportable.nBrain
§820.181 / ISO 13485 §4.2.3Device master record / medical device file.The AI is not part of the device, so not part of the DMR. AI-assisted DMR documents follow your DMR-control SOP, including reviewer approval.Manufacturer
§820.184 / ISO 13485 §7.5.1Device history record.Not applicable to the tool. If used in DHR review (for example reviewing batch records for anomalies), the reviewer gate and audit trail apply.Manufacturer
§820.198 / ISO 13485 §8.2.2Complaint files.AI drafts the complaint investigation narrative for reviewer approval. The audit trail records AI involvement. Complaint decisions stay with your complaint-handling unit.Manufacturer
§820.200 / ISO 13485 §7.5.4Servicing.Not applicable to the tool. AI-assisted service records get the reviewer gate and audit trail.Manufacturer
04ISO 14971:2019

Risk management lives in your existing risk file.

The AI capability's risks, such as incorrect output influencing a submission, an audit-trail gap, or a supplier failure, go into your current risk-management file, not a separate one.

ReferenceRequirementHow the architecture meets itOwner
§4 / §5Risk management process and risk analysis.Intended use documented. Hazardous situations identified: incorrect output influencing a submission decision, tool unavailable at a regulatory deadline, audit-trail gap, supplier failure (Microsoft or nBrain), model drift between qualification cycles.Manufacturer
§6Risk evaluation against acceptability criteria.Your existing criteria apply. Built-in controls (reviewer approval, audit trail, supplier and model qualification) typically bring residual risk to acceptable. Your risk-acceptance authority signs off.Manufacturer
§7Risk control measures and residual risk.Human reviewer gate, role-based access, audit trail, signed records, periodic model-qualification review, supplier monitoring, change control. You evaluate residual risk under your SOP.Shared
§8Risk management report and overall residual risk.The AI tool is included in your risk-management report, reflecting built-in controls plus any manufacturer-specific compensating controls.Manufacturer
§9Production and post-production information.Anomaly signals (Microsoft Sentinel) and periodic model-qualification results feed your post-production risk activities. Significant anomalies go through CAPA.Shared
05EU MDR (2017/745)

EU MDR alignment for CE-marked devices.

Where AI assists QMS workflows that produce technical documentation, the architecture aligns to Annex I and Annex VII.

  • Annex I §17, electronic programmable systems. Doesn't apply to a production-support tool. If AI becomes part of a CE-marked device, IEC 62304 and Annex I §17 apply (out of scope here).
  • Annex VII, technical documentation. AI-assisted content follows your technical-documentation SOP, including reviewer approval. The audit trail shows AI involvement.
  • Notified body inspection. Supported with read-only audit access on request, in the same audit-trail format as MDSAP.
  • Post-market surveillance (Article 83) and PSUR (Article 86). AI-assisted narratives and PSUR drafts pass the reviewer gate before commitment.
EU AI Act

Where AI is used in workflows the EU AI Act classifies as high-risk, extra conformity obligations may apply. The architecture supports the technical and audit requirements; the legal classification and conformity path are yours to determine with counsel.

06MDSAP

One audit, five regulators.

MDSAP (FDA, Health Canada, ANVISA, TGA, MHLW) audits your QMS once for all five. Tool validation, supplier qualification, audit trail, and integrated CAPA cover its chapters without jurisdiction-specific duplication.

ChapterHow the AI capability fits
1 · ManagementInput to management review; documented authority for deployment, expansion, and decommissioning.
2 · Marketing authorization and registrationA production-support tool, not a marketed device. No separate filing.
3 · Measurement, analysis, improvementAI anomalies and qualification failures flow to existing CAPA.
4 · Adverse events and advisory noticesAI-assisted complaint and advisory content passes the reviewer gate.
5 · Design and developmentReviewer approval and audit trail on AI-assisted design-review and DHF content. AI is not part of the device design.
6 · Production and service controlsValidated as a production-support tool (legacy §820.70(i), ISO 13485 §7.5.6).
7 · Purchasing controlsMicrosoft and nBrain supplier qualification documented (ISO 13485 §7.4).
07The IEC 62304 boundary

Where IEC 62304 applies, and where it doesn't.

The most misunderstood boundary in device-industry AI. IEC 62304:2006/A1:2015 governs software that is part of a medical device or is itself one (SaMD).

The capability in this paper is not medical device software. Your people use it to produce QMS records: submissions, complaint investigations, CAPA narratives, design-review minutes, supplier-audit reports. FDA's quality system rules and ISO 13485 §7.5.6 govern it, not IEC 62304.

If the intended use crosses the line (the AI is built into a marketed device, drives device behavior, or gives diagnostic or treatment output to clinicians or patients), it becomes SaMD or SiMD. That takes a separate IEC 62304 lifecycle, an FDA pre-submission, and a predetermined change control plan if the model will be updated after clearance.

Use caseIEC 62304?Path
AI helps draft a 510(k), approved by a reviewer before submissionNoProduction-support tool
AI helps draft complaint investigation narrativesNoProduction-support tool
AI helps write CAPA root-cause analysisNoProduction-support tool
AI helps draft supplier-audit reportsNoProduction-support tool
AI built into a marketed device (diagnostic, therapeutic, monitoring)YesSaMD / SiMD under IEC 62304, a separate engagement
AI gives clinical decision support output to clinicians or patientsLikelySaMD evaluation required, a separate engagement
Master compliance matrix

One page for your VP of Quality.

Every device-QMS control an AI deployment touches, with its status and owner.

ReferenceTopicStatusOwner
§820.20 / §5.6Management responsibilityIntegrated into management reviewManufacturer
§820.22 / §8.2.4Internal auditAuditable elementManufacturer
§820.25 / §6.2Personnel trainingModule providedManufacturer
§820.40 / §4.2Document controlseDMS and change controlManufacturer
§820.50 / §7.4Purchasing and supplier qualificationMicrosoft and nBrain dossierManufacturer
§820.70(i) / §7.5.6Software validation (production-support tool)Implemented: IQ/OQ/PQ and model qualificationnBrain
§820.100 / §8.5CAPAIntegrated into existing CAPAManufacturer
§820.180 / §4.2.5Records: audit trail, retention, reproducibilityImplemented (signed bundle export)nBrain
§820.181 / §4.2.3DMR / medical device fileNot part of the DMR; reviewer-gatedManufacturer
§820.198 / §8.2.2ComplaintsReviewer-gatedManufacturer
ISO 14971 §4–9Risk managementIntegrated into existing risk fileShared
EU MDR Annex I §17Electronic programmable systemsNot applicable (production-support)N/A
EU MDR Annex VIITechnical documentationReviewer-gated where AI assistsManufacturer
EU MDR Art. 83 / 86PMS and PSURReviewer-gated where AI assistsManufacturer
MDSAP Ch. 1ManagementManagement review inputManufacturer
MDSAP Ch. 3CAPAIntegratedManufacturer
MDSAP Ch. 6Production and service controlsProduction-support tool validationnBrain
MDSAP Ch. 7Purchasing controlsSupplier qualificationManufacturer
IEC 62304Medical device software lifecycleOut of scope (not SaMD or SiMD)N/A
Strategic positioning

Three things let this architecture carry device-QMS scrutiny.

01

The model does not train on regulated content

The model is pre-trained by its provider on public data. Each prompt and its retrieved context go to the Azure OpenAI endpoint in your tenant and a response comes back. Prompts are not used for training under Microsoft's data protection terms. For elevated IP protection, customer-managed keys and an approved exemption from abuse monitoring keep prompts from being stored for review.

02

Regulated records stay inside your Azure boundary

Gateway, vector database, Azure OpenAI endpoint, and audit-log store all run in an Azure region you control. Network rules deny outbound traffic to the public internet; the only egress allowed is to documented Microsoft service endpoints within your DPA scope.

03

The audit trail is QMS-native and auditor-ready

Every prompt, retrieved document, response, reviewer action, and admin event is logged and the AI service can be limited to append-only rights to the log. An FDA investigator, notified body, or MDSAP auditor can get read-only access or a signed export to check any claim against the records.

The one line

Consumer AI exposes your IP. AI-enabled device SaaS rents your IP. Private AI lets your AI work inside your QMS without your IP, or your audit trail, ever leaving your perimeter.

30 to 45 minute architecture review

Walk through this mapping with the engineers who built it.

Bring your VP of Quality, VP of Regulatory Affairs, and Software QA lead. We'll go through this mapping, the validation deliverables, and the model-qualification protocol your QMS workflows need. No pitch deck.

Book a strategy session