Home  /  Writing  /  Privacy & Compliance
Privacy & Compliance

DPDP Act 2023: An Engineering Architecture Checklist for HealthTech Platforms

TL;DR

The DPDP Act 2023 grants Indian patients a Right to Erasure while medical statutes mandate record retention — a paradox health platforms must resolve architecturally. The 10-point checklist covers consent-manager state machines, purpose-limitation schemas, cryptographic scrubbing of identifiers while retaining clinical fact, data-fiduciary access controls, and immutable audit logs, treating compliance as an engineering property rather than legal afterthought.

India's Digital Personal Data Protection (DPDP) Act 2023 fundamentally changes how technology companies must handle citizen data. In healthcare—where systems process highly sensitive biometric data, medical diagnoses, genetic markers, and prescription histories—the stakes are exponentially higher.

Penalties for systemic data protection failures can reach up to ₹250 Crore (~$30M USD) per breach.

However, most compliance literature is written by legal counsel for corporate boards. Engineering teams need clear architectural blueprints: How do we translate consent lifecycles, data erasure requests, and retention mandates into database schemas and microservice pipelines?

Here is our technical implementation guide and actionable 10-point architectural checklist for healthtech platforms.

1. The Fundamental Paradox: Right to Erasure vs Statutory Medical Retention

Under Section 12 of the DPDP Act, a Data Principal (patient) has the right to request the erasure of their personal data upon withdrawal of consent.

However, Indian healthcare providers are simultaneously governed by statutory mandates (National Medical Commission regulations and Clinical Establishments Acts) requiring clinical records to be retained for a mandatory minimum period (typically 3 years for outpatient, and up to lifetime for major medico-legal procedures).

The Engineering Resolution: Cryptographic Scrubbing & Split Archival

You cannot execute a hard DELETE FROM clinical_records. Instead, implement Cryptographic Scrubbing: detach all direct Personal Identifiers (PII like Name, Phone, Aadhaar, Email) from the clinical record, rotate and discard the patient's individual encryption key, and archive the pseudonymized clinical outcome for statutory compliance.

2. The Actionable 10-Point Technical Architecture Checklist

1

Granular Consent State Machine

Store consent as versioned state objects with explicit purpose tags (e.g. PURPOSE_DIAGNOSTIC_CARE vs PURPOSE_ANALYTICAL_RESEARCH). Default all opt-ins to unchecked.

2

Zero-Latency Consent Withdrawal Hooks

When consent is revoked, an event must fire through your message broker to invalidate caching layers, revoke downstream API access, and halt analytical processing within seconds.

3

Automated Machine-Readable DPAR Export

Build an asynchronous export pipeline capable of packaging all patient records into standardized JSON / FHIR R4 archives within 72 hours of a Data Principal Access Request.

4

Column-Level Encryption & Pseudonymization

Encrypt all PII columns (Phone, National ID, Address) at rest using AES-256-GCM with keys managed in a Hardware Security Module (HSM) or AWS KMS / HashiCorp Vault.

5

Immutable Tamper-Evident Audit Trails

Log all PHI read and write operations to an append-only, tamper-evident log (e.g. Amazon QLDB or signed WORM storage) recording operator ID, timestamp, and query rationale.

6

Automated Data Retention & Purge Workers

Scheduled background workers that automatically purge or pseudonymize records whose statutory retention period has expired.

7

Strict Role-Based & Contextual Access Control (RBAC)

Ensure medical staff only access patient charts when an active clinical encounter exists (preventing arbitrary browsing of celebrity or employee medical files).

8

Data Localization & Cross-Border Compliance

Ensure all primary databases, backups, and disaster recovery replicas reside within Indian data center regions (e.g. AWS ap-south-1 Mumbai / Hyderabad).

9

Vendor & Third-Party Sub-Processor Auditing

Audit all external SDKs (analytics, error loggers like Sentry, chat widgets) to ensure zero unmasked PHI or session replay captures reach third-party servers.

10

Rapid Breach Detection & Notification Telemetry

Configure automated SIEM alerting capable of flagging anomalous exfiltration volumes to meet statutory breach notification deadlines to the Data Protection Board of India.

CREATE TABLE data_principal_consents (
  id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
  patient_id UUID NOT NULL REFERENCES patients(id),
  consent_version VARCHAR(32) NOT NULL,
  purpose_code VARCHAR(64) NOT NULL,      -- e.g. 'CLINICAL_TREATMENT', 'TELECONSULT_RECORDING'
  status VARCHAR(32) NOT NULL,            -- 'GRANTED', 'REVOKED', 'EXPIRED'
  ip_address INET,
  user_agent TEXT,
  granted_at TIMESTAMPTZ DEFAULT NOW(),
  revoked_at TIMESTAMPTZ,
  expires_at TIMESTAMPTZ NOT NULL
);

CREATE INDEX idx_active_consents ON data_principal_consents(patient_id, purpose_code)
WHERE status = 'GRANTED';

4. Conclusion: Compliance as a Competitive Advantage

Treating privacy compliance not as a reactive legal tax, but as a core architectural quality metric, gives modern healthtech platforms a significant moat.

Platforms that architect clean consent state machines, zero-leak database boundaries, and automated DPAR export pipelines build lasting trust with both hospital enterprise buyers and millions of Indian citizens.

Pravesh Singh

Written by Pravesh Singh

Founder & CTO at SoftEdge Technology Solutions. Architect of mission-critical healthcare networks and multi-tenant SaaS platforms. Advises founders and executive engineering teams on high-consequence system architecture.