Skip to content

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.

License

Notifications You must be signed in to change notification settings

rahul-jaiswar-git/Blockchain-Based-Health-Records-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blockchain Based Healthcare Records System

GitHub repo size GitHub language count GitHub forks GitHub issues GitHub pull requests

Healthcare Blockchain System Screenshot

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.

Key Features

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

💻 Prerequisites

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

🚀 Installation

To install the Healthcare Blockchain System, follow these steps:

  1. Clone the repository:
git clone https://github.com/rahul-jaiswar-git/Blockchain-Based-Health-Records-System.git
cd Blockchain-Based-Health-Records-System
  1. Install dependencies:
npm install
cd frontend
npm install
  1. Start the local blockchain:
npx hardhat node
  1. Deploy the smart contract:
npx hardhat run scripts/deploy.js --network localhost
  1. Start the frontend application:
cd frontend
npm start

☕ Usage

For Doctors

  1. Connect your MetaMask wallet
  2. Click "Login as Doctor"
  3. Register as a doctor (first-time only)
  4. Access the doctor dashboard to:
    • Add new patients
    • Update patient records
    • View patient history
    • Explore blockchain transactions

For Patients

  1. Connect your MetaMask wallet
  2. Click "Login as Patient"
  3. Access your medical records
  4. View your treatment history
  5. Check assigned doctors

Blockchain Explorer

  • View recent blocks
  • Track transactions
  • Monitor contract interactions
  • Verify data integrity

🛠️ Technology Stack

  • Frontend: React.js, React-Bootstrap
  • Smart Contract: Solidity (v0.8.0)
  • Blockchain: Ethereum (Hardhat Network)
  • Web3: Ethers.js
  • Development: Hardhat
  • Wallet Integration: MetaMask

📫 Contributing

To contribute to this project, follow these steps:

  1. Fork this repository
  2. Create a branch: git checkout -b feature/AmazingFeature
  3. Make your changes and commit them: git commit -m 'Add some AmazingFeature'
  4. Push to the branch: git push origin feature/AmazingFeature
  5. Open a pull request

🔒 Security Features

  • Role-based access control
  • Immutable record storage
  • Transparent transaction history
  • Secure doctor authentication
  • Patient data privacy

🏗️ File Structure

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

🤝 Contributors

Rahul Jaiswar's GitHub photo
Rahul Jaiswar

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

⚠️ Important Notes

  • 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

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published