Compliance
Dec 20, 2025
-
10 min
AEO Summary Box
What compliance requirements apply to NHS software integration?
NHS software integration requires compliance across multiple frameworks: MHRA medical device classification (including Class I self-declaration for clinical decision support), NHS Digital standards for API integration (HL7 FHIR, NHS PDS, SNOMED CT), WCAG 2.2 accessibility compliance, GDPR and NHS data governance requirements, and Clinical Safety Management (DCB0129/DCB0160). The specific requirements depend on whether your software makes clinical decisions, handles patient data, or integrates with NHS systems. Compliance is not optional—it determines whether you can operate in the NHS ecosystem.
Why NHS Compliance Is Different
Using AI or modern development practices to build healthcare software is straightforward. Using them to build healthcare software that meets MHRA medical device classification, GDPR, and NHS data standards is a different problem entirely.
Here is the gap most teams miss:
The assumption: "We'll use modern tools to generate code faster, ship the product quicker."
The reality: Speed does not matter if the output does not meet compliance requirements.
Compliance in NHS software integration is not a checklist you complete at the end. It is a framework that shapes every architectural decision from day one. Teams that treat compliance as an afterthought spend months retrofitting, re-architecting, and re-documenting work that could have been done correctly the first time.
The Compliance Landscape
NHS software integration involves multiple overlapping regulatory and standards frameworks:
MHRA Medical Device Regulation
The Medicines and Healthcare products Regulatory Agency (MHRA) regulates software that qualifies as a medical device. If your software:
Provides clinical decision support
Monitors patient conditions
Calculates treatment dosages
Analyses clinical data for diagnostic purposes
It may fall under medical device regulations.
Classification matters. Class I devices (lowest risk) require self-declaration and technical documentation. Higher classes require notified body assessment and CE/UKCA marking.
Many clinical workflow systems qualify as Class I if they support rather than replace clinical judgment. But "support" must be genuine—if clinicians routinely follow the software's recommendations without independent verification, regulators may classify it higher.
NHS Digital Standards
NHS Digital mandates specific technical standards for any system integrating with NHS infrastructure:
HL7 FHIR (Fast Healthcare Interoperability Resources)
The standard for healthcare data exchange
NHS uses UK-specific profiles with mandatory extensions
Generic FHIR libraries are not sufficient—you need NHS-specific implementations
NHS Personal Demographics Service (PDS)
The national database of NHS patient demographics
Required for verifying patient identity
Specific API patterns and data handling requirements
SNOMED CT
The clinical terminology standard for NHS
Not just codes you look up—a compositional ontology with complex relationships
Requires proper terminology services, not key-value lookups
NHS Architecture Principles
Design patterns and integration approaches
Security requirements and authentication standards
Data residency and handling requirements
Accessibility Requirements
WCAG 2.2 Level AA is required for NHS-facing software:
All interactive elements keyboard accessible
Colour contrast meeting specified ratios
Screen reader compatibility
Cognitive accessibility considerations
Mobile accessibility
Accessibility is not a feature you add later. It must be designed into components, validated during development, and maintained throughout the product lifecycle.
Data Protection
GDPR applies with additional NHS-specific requirements:
Explicit consent for special category data (health data)
Data processing agreements with all processors
Record of processing activities
Data Protection Impact Assessments for high-risk processing
Clear legal basis for each data use
NHS Data Security and Protection Toolkit (DSPT) assessment is typically required for organisations handling NHS data.
Clinical Safety
DCB0129 and DCB0160 standards govern clinical safety:
Clinical risk management system
Hazard identification and risk assessment
Safety case documentation
Incident reporting procedures
Named Clinical Safety Officer
Compliance by System Type
Different system types trigger different compliance requirements:
Clinical Decision Support Systems
Requirements:
MHRA Class I or higher medical device classification
Clinical safety case (DCB0129)
Audit trails for all recommendations
Explainability of decision logic
Clear documentation of intended use and limitations
Key challenge: Demonstrating that the system supports rather than replaces clinical judgment.
Patient-Facing Applications
Requirements:
WCAG 2.2 Level AA accessibility
NHS login integration or equivalent identity verification
Patient consent management
Data portability support
Clear privacy notices and terms
Key challenge: Balancing usability with security and consent requirements.
Clinical Workflow Systems
Requirements:
NHS Digital integration standards (FHIR, PDS, SNOMED CT)
Role-based access control matching clinical governance
Audit logging for regulatory compliance
Data retention meeting statutory requirements
Business continuity and disaster recovery
Key challenge: Integrating with legacy NHS systems while meeting modern security standards.
Analytics and Reporting Platforms
Requirements:
Data minimisation and purpose limitation
Pseudonymisation or anonymisation where possible
Access controls matching data sensitivity
Audit trails for data access
Clear governance for data sharing
Key challenge: Enabling useful analytics while protecting individual privacy.
MHRA Medical Device Compliance in Practice
For many healthcare software products, MHRA compliance is the most misunderstood requirement.
Determining if Your Software Is a Medical Device
Ask these questions:
Does the software process patient data for clinical purposes?
Does it provide recommendations, alerts, or decisions about treatment?
Does it calculate values used in clinical decision-making?
Is it intended by the manufacturer to be used for medical purposes?
If yes to any of these, your software may be a medical device.
Class I Self-Declaration
Most clinical workflow software qualifies as Class I, requiring:
Technical documentation:
Product description and intended use
Design and manufacturing information
Risk analysis (typically using ISO 14971)
Clinical evaluation
Instructions for use
Quality management system:
Documented procedures for design, development, and maintenance
Change control processes
Complaint handling procedures
Vigilance reporting procedures
Registration:
Register with MHRA before placing on market
Maintain registration annually
Common Mistakes
Assuming clinical safety means it is not a medical device. A system can be both safe and regulated. The regulation ensures ongoing safety.
Incomplete intended use statements. Regulators assess your system against what you say it does. Vague intended use creates ambiguity about compliance requirements.
No post-market surveillance. Medical devices require ongoing monitoring of safety and performance in real-world use.
AI in Healthcare Compliance
AI adds complexity to compliance requirements:
Where AI Helps
We use AI extensively for compliance-related work:
Requirements translation: "Here's a clinical workflow in plain English. Map it to FHIR profiles and identify compliance gaps."
Standards checking: "Review this data model against SNOMED CT ontology. What's missing?"
Accessibility auditing: "Analyse this component against WCAG 2.2 Level AA. Generate a remediation checklist."
Documentation generation: "Create audit trail documentation for this service interaction that meets MHRA technical file requirements."
The pattern: AI is best at cross-referencing vast rule sets (WCAG, FHIR, SNOMED) against your implementation. It accelerates the mechanical parts—mapping standards, checking coverage, generating boilerplate compliance artifacts.
Where AI Cannot Help
AI does not understand the nuanced judgment calls compliance often requires:
Whether your intended use statement adequately describes risk
Whether your clinical safety case addresses foreseeable hazards
Whether your interpretation of a regulation matches regulatory intent
Whether your data processing has adequate legal basis
AI amplifies compliance expertise. It does not replace it.
If you are building regulated software with AI assistance, you need people who already understand the regulations. The 30-40% time savings comes from not manually cross-referencing specification documents, not from skipping human judgment. Understanding when NOT to use AI is critical in healthcare.
Building a Compliance-First Architecture
Audit Logging From Day One
Clinical data must be auditable. Build audit logging into the service boundary, not bolted on later:
Every data access generates an audit event
Events are immutable once written
Retention meets regulatory requirements (often 7+ years)
Query capabilities for investigation and reporting
Soft Deletes Are Non-Negotiable
Clinical data cannot be hard-deleted. Every delete is an update with a deleted_at timestamp and a reason:
Affects queries, data models, API responses, and UI
Audit trail for why data was deleted
Recovery capability where appropriate
This affects everything. Build it in from the start.
NHS Integration Service Pattern
Isolate NHS-specific complexity into a dedicated service:
Handles FHIR transformations
Manages NHS PDS integration
Provides terminology services for SNOMED CT
Encapsulates NHS-specific business rules
Other services interact with a clean interface. NHS complexity does not leak throughout the codebase.
Frequently Asked Questions
How long does NHS Digital onboarding take?
Plan for 3-6 months from first contact to production access. This includes technical assurance, connection testing, and go-live validation. Starting early is essential.
What if we are building an MVP—do compliance requirements apply?
If you are handling real patient data or deploying to clinical settings, yes. Compliance is not proportional to development stage—it is proportional to risk. An MVP with patient data has the same compliance obligations as a mature product.
Can we use cloud services for NHS data?
Yes, with appropriate controls. Major cloud providers offer NHS-compliant configurations. You need to ensure data residency, appropriate security controls, and compliance with NHS data handling requirements.
How do we demonstrate MHRA compliance for AI features?
AI components in medical devices require additional consideration: training data governance, model validation, ongoing performance monitoring, and clear documentation of model behaviour and limitations. The MHRA has published guidance specific to AI as a medical device. Managing AI production costs while maintaining compliance is an ongoing challenge.
What happens if we get compliance wrong?
Consequences range from being unable to deploy (NHS Digital will not approve non-compliant systems) to regulatory action (MHRA can require product withdrawal) to contractual breach (NHS contracts include compliance obligations). Get it right from the start.
Related Reading
Fractional CTO Guide - Getting technical leadership with healthcare compliance experience
When NOT to Use AI - Critical considerations for healthcare AI
AI Production Costs - Managing AI economics in regulated environments
WireApps builds healthcare technology that meets NHS compliance requirements. We have delivered clinical platforms with MHRA medical device classification, NHS Digital integration, and WCAG 2.2 accessibility. If you are building healthcare software and want to discuss compliance requirements for your specific context, we are happy to share our experience.
Share
Founder & CTO





