🩺 Patient Vitals On-Chain
A simple and transparent Solidity smart contract for recording and updating patient vital signs (like heart rate, temperature, and blood pressure) directly on the blockchain.
This project demonstrates how healthcare data can be made more secure, immutable, and decentralized using blockchain technology.
📘 Project Description
The Patient Vitals smart contract allows patients to record their vital signs on-chain.
Each patient is identified by their wallet address, which ensures ownership, privacy, and trust — only the patient can update their own vitals.
It’s a beginner-friendly Solidity project designed to help developers understand how to:
Use structs and mappings to store data
Use events for logging updates
Work with modifiers for access control
Deploy smart contracts on Celo testnet (Celo Sepolia)
⚙️ What It Does
Lets each user record their heart rate, temperature, and blood pressure.
Keeps the most recent record of each patient’s vitals.
Emits an event every time vitals are updated.
Allows anyone to view patient vitals, but only the patient can update their own.
✨ Features
✅ Decentralized Storage — patient data lives on-chain.
✅ Self-Ownership — only patients can update their own records.
✅ Transparency — events allow anyone to track history of updates.
✅ Easy Integration — can be used with web3.js or ethers.js in a frontend.
✅ Celo Compatible — deployed on the Celo Sepolia test network.
github repository link :https://github.com/kritikakashyap2025-ux/celo-on-contract
This project aims to empower individuals with secure, decentralized control over their health data.
By recording vitals on-chain, it demonstrates how blockchain enhances trust and transparency.
The system showcases core Solidity concepts like structs, mappings, modifiers, and events.
Built for Celo, it provides a simple foundation for future decentralized healthcare solutions.
Ultimately, it bridges blockchain technology with real-world medical data in an accessible way.
Modern healthcare systems struggle with securely storing and managing patient vital signs.
Traditional databases are vulnerable to tampering, centralized failure, and limited transparency.
Patients often lack ownership or direct control over their own health data.
There is no unified, trustless way for individuals to record and verify vital information.
A decentralized, patient-controlled system is needed to ensure integrity, transparency, and security.
A Solidity-based smart contract stores patient vital signs directly on the blockchain.
Each patient is identified by their wallet address, ensuring full self-ownership of data.
Only patients can update their vitals, while anyone can view them transparently.
Events log every update, creating a verifiable history of health changes.
The system runs on the Celo Sepolia testnet, offering decentralized, tamper-proof storage.
India