A decentralized healthcare record management system built on Ethereum blockchain. This system allows doctors to securely manage patient records while ensuring data integrity and privacy. Patients can access their medical history through a user-friendly interface.
The project includes the following features:
- Doctor Registration and Authentication
- Patient Record Management
- Secure Data Storage on Blockchain
- Real-time Blockchain Explorer
- Responsive Web Interface
- Patient Consent Management
- Multi-doctor Access Control
- Emergency Access Protocol
Before you begin, make sure you meet the following requirements:
- Node.js (v14 or higher)
- MetaMask browser extension
- Git
- A modern web browser (Chrome, Firefox, or Edge)
- Basic understanding of blockchain concepts
To install the Healthcare Blockchain System, follow these steps:
- Clone the repository:
git clone https://github.com/rahul-jaiswar-git/Blockchain-Based-Health-Records-System.git
cd Blockchain-Based-Health-Records-System- Install dependencies:
npm install
cd frontend
npm install- Start the local blockchain:
npx hardhat node- Deploy the smart contract:
npx hardhat run scripts/deploy.js --network localhost- Start the frontend application:
cd frontend
npm start- Connect your MetaMask wallet
- Click "Login as Doctor"
- Register as a doctor (first-time only)
- Access the doctor dashboard to:
- Add new patients
- Update patient records
- View patient history
- Explore blockchain transactions
- Connect your MetaMask wallet
- Click "Login as Patient"
- Access your medical records
- View your treatment history
- Check assigned doctors
- View recent blocks
- Track transactions
- Monitor contract interactions
- Verify data integrity
- Frontend: React.js, React-Bootstrap
- Smart Contract: Solidity (v0.8.0)
- Blockchain: Ethereum (Hardhat Network)
- Web3: Ethers.js
- Development: Hardhat
- Wallet Integration: MetaMask
To contribute to this project, follow these steps:
- Fork this repository
- Create a branch:
git checkout -b feature/AmazingFeature - Make your changes and commit them:
git commit -m 'Add some AmazingFeature' - Push to the branch:
git push origin feature/AmazingFeature - Open a pull request
- Role-based access control
- Immutable record storage
- Transparent transaction history
- Secure doctor authentication
- Patient data privacy
project/
├── contracts/ # Smart Contracts
│ └── HealthcareRecords.sol # Main Healthcare Contract
├── frontend/ # React Frontend
│ ├── src/
│ │ ├── components/ # React Components
│ │ ├── utils/ # Utility Functions
│ │ └── artifacts/ # Compiled Contract Files
├── scripts/ # Deployment Scripts
└── hardhat.config.js # Hardhat Configuration
|
Rahul Jaiswar |
This project is licensed under the MIT License - see the LICENSE file for details.
- This is a development version and should not be used in production without proper security audits
- Always use test networks for development
- Keep your private keys secure
- Regularly backup your data
