decentralized-healthcare-dapp Code
Brought to you by:
varundama
| File | Date | Author | Commit |
|---|---|---|---|
| build | 2026-02-11 |
|
[5d9bc4] Initial commit - Decentralized Healthcare DApp |
| client | 2026-02-11 |
|
[5d9bc4] Initial commit - Decentralized Healthcare DApp |
| contracts | 2026-02-11 |
|
[5d9bc4] Initial commit - Decentralized Healthcare DApp |
| migrations | 2026-02-11 |
|
[5d9bc4] Initial commit - Decentralized Healthcare DApp |
| test | 2026-02-11 |
|
[5d9bc4] Initial commit - Decentralized Healthcare DApp |
| README.md | 2026-02-11 |
|
[a89f77] Enhance README with installation and project de... |
| truffle-config.js | 2026-02-11 |
|
[5d9bc4] Initial commit - Decentralized Healthcare DApp |
A decentralized healthcare management system (DApp) built using blockchain technology to securely manage patient records and doctor access. This project ensures data privacy, transparency, and role-based access control using smart contracts on Ethereum.
Traditional healthcare systems store sensitive patient data in centralized servers, making them vulnerable to data breaches, tampering, and unauthorized access.
This project uses blockchain to solve these problems by:
| Layer | Technology |
|---|---|
| Frontend | React.js |
| Blockchain | Ethereum |
| Smart Contracts | Solidity |
| Web3 Provider | Web3.js |
| Development Framework | Truffle |
| Local Blockchain | Ganache |
| Wallet | MetaMask |
healthcare-dapp/
├── contracts/
│ └── Healthcare.sol
│
├── migrations/
│ └── 2_deploy_contracts.js
│
├── client/
│ └── src/
│ ├── components/
│ │ ├── Doctor.js
│ │ └── Patient.js
│ ├── App.js
│ ├── contractConfig.js
│ ├── index.js
│ └── index.css
│
├── truffle-config.js
└── README.md
client directorynpm installtruffle compiletruffle migrate --resetnpm starthttp://localhost:3000registerPatient(name, age, gender) – Registers a patientregisterDoctor(name, specialization) – Registers a doctorauthorizeDoctor(doctorAddress) – Grants doctor accessaddRecord(patientAddress, record) – Adds medical recordviewRecords(patientAddress) – Views patient recordsgetPatient(patientAddress) – Fetch patient detailsThis project demonstrates how blockchain technology can transform healthcare systems by providing secure, decentralized, and transparent medical record management using smart contracts .