Inspiration: The inspiration behind this project came from the growing need for secure and transparent health data management. Traditional EHR systems often face issues like data breaches, lack of interoperability, and limited patient control. Seeing how blockchain could solve these problems motivated us to create a decentralized EHR system that empowers patients while ensuring security and trust.

What We Learned: During this project, we learned how blockchain works at a practical level, including smart contract development using Solidity, and how decentralized storage like IPFS ensures data integrity. We also gained hands-on experience with frontend–blockchain integration through MetaMask and Web3.js, and understood how machine learning models can enhance healthcare by providing predictions. Overall, we learned to combine multiple technologies into a single working system.

How We Built It: We built the frontend using React.js and Tailwind CSS for a smooth user experience. Smart contracts were written in Solidity and tested on Ganache, while MetaMask handled authentication. Patient records were stored securely on IPFS, and their hashes were stored on the blockchain for immutability. The Flask backend hosted the machine learning model and connected with the frontend through APIs. Finally, all components were integrated and tested to ensure seamless data flow.

Challenges We Faced: We faced challenges in configuring IPFS and ensuring reliable file retrieval, especially with hash mismatches. Integrating MetaMask with React and handling blockchain transactions from the frontend also required deep debugging. Smart contract errors, gas issues, and asynchronous Web3 calls were tricky to manage. Connecting the Flask backend and ensuring the ML predictions displayed correctly added another layer of complexity. Despite these hurdles, solving them helped us understand the entire tech stack more deeply.

Built With

Share this project:

Updates

posted an update

Project Update: Electronic Health Record Using Blockchain

Here’s the latest progress on my decentralized EHR system!

Over the past few days, the project has evolved significantly with new features and smoother integrations. Here’s what’s new:

New Features Added

MetaMask Authentication: Users (patients/doctors) can now securely log in using their blockchain wallet.

IPFS Integration: Health records are now stored in decentralized storage with unique content hashes for tamper-proof access.

Smart Contract Access Control: Patients can grant or revoke permission for doctors through Solidity-based smart contracts.

Real-Time ML Predictions: Added symptom input + prediction feature using a Flask-based machine learning API.

Development Improvements

Improved frontend UI built with React + Tailwind for a cleaner experience.

Smoother Web3.js communication between the UI and blockchain.

Optimized smart contract logic to reduce errors and gas consumption.

Better data flow between IPFS → Blockchain → Frontend. What’s Coming Next

Adding detailed patient history dashboards

Implementing role-based authentication

Enhancing ML model accuracy

Final UI polishing + deployment

This project continues to grow, and I’m excited to see how blockchain can redefine healthcare data security and patient empowerment.

Log in or sign up for Devpost to join the conversation.