All Blogs
Nov 12, 2026
Uncategorized

How MedRec Used Web3 Identity to Give Patients Control Over Their Health Records

Picture this: you’ve just moved to a new city, you’re sitting in a cardiologist’s office for the first time, and the intake form asks for your complete medical history. The records from your last three providers — in three different health systems, running three incompatible EHR platforms — exist somewhere. But not here, not today, and probably not for another two weeks if the fax machines cooperate.

MIT’s MedRec project was a direct engineering response to that problem. Using Ethereum smart contracts and blockchain-based digital identity, the team built a system where patients hold cryptographic control over who accesses their medical records. This isn’t a speculative pitch — it’s a technical case study with a real hospital pilot and documented outcomes.

By the end, you’ll understand what MedRec actually built, what the pilot showed, and where the model still has work to do.


Medical Records Fragmentation Runs Deeper Than Bad Software

Healthcare data fragmentation isn’t a UX problem. It’s a structural one, baked into how the industry evolved.

The average patient sees many providers across a lifetime, accumulating medical records across systems that rarely talk to each other. HIPAA guarantees your right to your own records, but “right to access” and “practical access” are very different things. A formal records request at most institutions takes 30 days under the law — and many systems still respond by mailing a CD-ROM. That’s not a joke.

Why Your Data Stays Stuck at Each Institution

Interoperability standards exist on paper. HL7 FHIR and CCD documents are supposed to let systems talk to each other. And technically, some do. But implementation is inconsistent, adoption is uneven, and the incentive structures for health systems don’t reward data sharing — they reward patient retention.

Patient portals like Epic’s MyChart are siloed by design. Your records at Hospital A live in one portal. Hospital B has another. There’s no portable, patient-controlled credential that follows you across systems.

The deeper issue: your identity in healthcare is managed by institutions, not by you. The Master Patient Index — the internal system hospitals use to match your records — fails regularly on name changes, hyphenated surnames, typos at registration, or simple data entry errors. Duplicate records are a known, expensive problem. And when the matching fails, records get lost or misassigned.

Here’s the core flaw: you have no cryptographic proof that you are you. You present a driver’s license, sign a form, and trust the institution to get it right. That’s the attack surface MedRec was designed to close.


What MedRec Actually Built

The 2016 paper by Ariel Ekblaw, Asaph Azaria, John D. Halamka, and Andrew Lippman laid out an architecture that’s more subtle than “put medical records on a blockchain.” That framing gets it wrong in an important way.

MedRec never moves the records. That’s the key design decision.

A Three-Layer Architecture

The system separates data storage from data control:

  • Ethereum blockchain — the immutable ledger for consent events and audit trails, not for health data itself
  • Smart contracts — executable code that encodes each patient-provider access relationship
  • Off-chain EHR storage — the actual clinical data stays where it already lives, inside institutional systems, behind existing firewalls

Think of it this way: the blockchain is the access control system, not the filing cabinet. MedRec never needed hospitals to migrate their data anywhere. That’s also what made the pilot feasible — the team could integrate with existing EHR APIs rather than replace them.

Here’s how the approach compares to what most patients interact with today:

CapabilityTraditional Patient PortalMedRec
Patient identifierInstitution-managed loginSelf-sovereign Ethereum address
Record portabilityPer-institution, siloedSingle credential, cross-provider
Access revocationContact records departmentOn-chain transaction (<60 seconds)
Audit trailInstitution-controlled logImmutable, on-chain, patient-visible
Data locationManaged by institutionOff-chain, behind institutional firewalls
Consent formatPaper or PDF formExecutable smart contract

Your Ethereum Address Is Your Health Identity

Each patient gets an Ethereum address, which functions as their self-sovereign identifier. The private key to that address is the credential that proves ownership. No institution holds that key. No hospital can revoke it.

This is what “Web3 identity” means in this context — a form of digital identity that uses cryptographic proof rather than institutional credentialing. No third-party authority can revoke or override it.

The enrollment bootstrapping problem is real, though. To link your blockchain identity to your actual physical self, MedRec relies on provider attestation: when you establish care with a provider, they verify your identity through existing processes (ID check, insurance verification) and then cryptographically attest that your Ethereum address corresponds to you. It’s a pragmatic compromise — it doesn’t eliminate trust in institutions entirely, but it limits that trust to the initial enrollment step.

The Two Smart Contracts at the Core

Registrar Contract
  └─ Maps patient Ethereum addresses to known provider relationships
  └─ Manages relationship state (active, revoked, pending)

Summary Link Contract
  └─ Stores pointer + hash to off-chain EHR data
  └─ Does NOT store the data itself
  └─ Triggers consent events patients can audit

When a provider requests access to your records, that request fires an on-chain event. You see it. You approve or deny it. That approval is logged permanently. If you later revoke access, that revocation is logged too. The audit trail is complete, immutable, and controlled by no single institution.


Data Privacy by Design — and Its Real Limits

Consent as a PDF form has a fundamental problem: it’s a point-in-time snapshot. You sign it, it goes into a folder, and you have no ongoing visibility into who accessed what. MedRec flips that model.

Consent as Executable Code

Access permissions in MedRec are smart contract logic, not signed documents. That means:

  • Revoking access is an on-chain transaction, not a phone call
  • Granular sharing is possible — you can grant a cardiologist access to cardiac records without exposing your psychiatry notes
  • Every access event is logged automatically, with no reliance on the institution to maintain accurate audit logs

I’d argue this is the most underappreciated aspect of the design. The problem with traditional consent processes isn’t just inconvenience — it’s that the audit trail lives inside institutional systems that you can’t directly verify.

MedRec moves that trail somewhere neither you nor the institution can selectively edit. That’s what genuine data privacy looks like in practice: not a checkbox on a form, but executable logic with an on-chain paper trail.

The Public Blockchain Problem

Here’s the tension the team had to solve honestly: Ethereum is a public blockchain. Every transaction is visible to anyone. That sounds disastrous for health data.

But MedRec never puts health data on-chain. What’s on the blockchain is a pointer and a hash — a cryptographic fingerprint that confirms the linked data hasn’t been tampered with, without revealing what the data contains. The actual clinical record stays behind the hospital’s firewall.

The remaining privacy risk is metadata. Even without seeing your records, an observer watching the blockchain can potentially infer which providers you’ve visited and when, based on the pattern of consent transactions tied to your address. MedRec uses pseudonymous addresses, not your name, but pseudonymity isn’t the same as anonymity. The team acknowledged this in the paper — it’s not a solved problem.

For most threat models, this is an acceptable trade-off. For specific patient populations (HIV, addiction medicine, reproductive health), it warrants more careful thought.


What the Beth Israel Pilot Actually Showed

In 2016, MedRec ran a pilot with Beth Israel Deaconess Medical Center in Boston. The scope was limited — synthetic patient data, real EHR API integration — but it was real infrastructure, not a demo environment.

The Numbers Worth Noting

The team reported that patients could grant or revoke provider access to their medical records in under 60 seconds. For context, the standard release-of-information process at most US hospitals runs between 15 and 30 days. Even accounting for the fact that the pilot used synthetic data, the control-plane latency difference is stark.

Every access event was logged on-chain, automatically, with no manual intervention. Audit trail completeness was 100% by design — there’s no mechanism for a gap because the consent transaction and the data access are architecturally linked.

Worth noting separately: the miner incentive model. Network participants who process MedRec transactions earn data access credits — a mechanism designed to align provider incentives with network participation. It’s a novel economic alignment approach, though it adds complexity that real-world deployment would need to validate at scale.

Where It Fell Short

The team was candid in the paper about v1 limitations:

  • Key loss means permanent record lockout. There’s no account recovery mechanism. If you lose your private key, you lose control of your health identity. This is the standard Web3 UX problem, and it’s not a minor footnote for a healthcare application where patients may be elderly, cognitively impaired, or simply not technical.
  • Gas costs on Ethereum impose transaction fees for every consent event. At 2016 prices those were trivial; at peak Ethereum congestion they’re not.
  • Real-world identity bootstrapping — linking a blockchain address to a verified human — remained the architecturally hardest piece. Provider attestation works, but it concentrates initial trust in the same institutions the system is trying to work around.

The pilot was a proof of concept. It proved the concept. But production-scale deployment would require solutions to all three of those gaps.


What MedRec’s Design Tells Us About Identity, Years Later

MedRec was published before the W3C Decentralized Identifier (DID) specification existed. But if you read the architecture alongside a modern DID document, the structural similarity is hard to miss. The Ethereum address maps to a DID. The Registrar Contract slots in as a DID registry. And the Summary Link Contract? That’s your Verifiable Credential binding.

The Patterns That Survived

The “registrar as attestor” pattern — where a trusted entity verifies real-world identity and then makes an on-chain attestation — reappears throughout modern Self-Sovereign Identity frameworks. It’s a pragmatic answer to the bootstrapping problem that MedRec identified.

Patient-controlled health wallets like Apple Health Records and CommonHealth don’t use a blockchain, but their consent model echoes MedRec closely: the patient holds a portable credential, providers request access, the patient approves. The cryptographic layer is different; the user mental model is the same.

The Problems That Remain Open

HIPAA’s authorization requirements were written for paper and later adapted for electronic records. Whether an on-chain consent event constitutes a valid HIPAA authorization — and meets data privacy compliance standards — hasn’t been definitively tested in a regulatory context.

The adoption asymmetry is real: patients gain portability and control, but providers absorb integration engineering costs. The incentive mismatch slows deployment. And key management UX — the gap between “you hold your private key” and “this is usable by someone who didn’t grow up understanding public-key cryptography” — is an unsolved design problem across the entire Web3 space, not just MedRec.


Frequently Asked Questions

What is MedRec and who built it?

MedRec is a blockchain-based medical records access system developed at MIT, described in a 2016 paper by Ariel Ekblaw, Asaph Azaria, John D. Halamka, and Andrew Lippman. It uses Ethereum smart contracts to give patients cryptographic control over who can access their health records, while leaving the actual clinical data stored in existing hospital EHR systems. The project ran a pilot with Beth Israel Deaconess Medical Center in Boston.

Does MedRec store medical records on the blockchain?

No — and this is the most common misunderstanding about the architecture. MedRec stores only pointers and cryptographic hashes on the Ethereum blockchain. The actual health records remain in institutional EHR systems behind existing security controls. The blockchain manages consent and access permissions; it’s not a data repository.

How does identity verification work in MedRec?

At enrollment, a patient’s Ethereum address (their self-sovereign identifier) gets linked to their real-world identity through provider attestation. The first provider they establish a relationship with verifies their identity through standard means — ID check, insurance verification — and then makes a cryptographic attestation connecting the patient’s blockchain address to that verified identity. Subsequent providers can reference this attestation rather than repeating the full verification process.

What happens if a patient loses their private key?

In MedRec v1, key loss means permanent loss of access — there’s no recovery mechanism. The original team acknowledged this as a significant limitation for a healthcare application where patients may not be technically sophisticated. It remains an open problem across blockchain-based identity systems: how to offer account recovery without putting a centralized authority back in charge.

How does MedRec compare to current patient portal systems like Epic MyChart?

Epic MyChart and similar portals are institution-specific — your records at Hospital A live in one portal, Hospital B in another, and there’s no portable credential connecting them. MedRec’s model gives the patient a single identity credential (an Ethereum address) that works across any provider participating in the network. The trade-off is that MedRec requires network participation and smart contract integration from each provider, while MyChart is fully controlled by Epic and its hospital clients.


The Honest Takeaway

MedRec proved something worth proving: cryptographic identity and smart contract access control can return meaningful medical records portability to patients, with an audit trail that paper-based consent processes structurally cannot match.

The pilot was small. The data was synthetic. The hard problems — key recovery, HIPAA regulatory alignment, provider adoption economics — remain open questions, not solved ones.

But the architecture is sound, and the patterns it introduced have shown up in every serious Self-Sovereign Identity framework since. If you want to go deeper, the original Ekblaw et al. whitepaper is publicly available through MIT Media Lab, and comparing MedRec’s consent model against current SMART on FHIR implementations is a productive exercise — the design thinking translates more directly than you’d expect.

Upgrade from Hiring Developers to Deploying an AI-Augmented Engineering Team.

Tell us about your product, platform, or business software requirement. We will suggest the right team structure, roadmap, and engagement model within 48 hours.