Patient Consent Smart Contracts

Blockchain-based patient consent management

LUMS final year project

For my undergraduate final year project, I designed and extended a prototype that records patient consent in Ethereum smart contracts. Patients decide which providers can see which types of data and can change or revoke that consent at any time. Every change is written to the chain, which gives an audit trail of who was granted access to what and when.

What I built

  • Smart contracts in Solidity for granting, updating, and revoking consent per provider and per data type
  • Role-based permissions for healthcare providers
  • Cryptographic verification of consent changes and an on-chain audit log
  • Attention to how the system would fit into existing clinical workflows

Stack

Solidity, Ethereum, smart contracts, access control