HealthTrack is a blockchain-based electronic health record (EHR) registry designed to provide secure and decentralized storage of patient records. By leveraging the Ethereum blockchain, HealthTrack ensures that patient data is safely managed, authenticated, and stored without relying on a centralized authority.
- Decentralized Record Storage: Patient records are securely stored on the Ethereum blockchain, ensuring data integrity and privacy.
- Patient Authentication: Integrated smart contracts handle patient authentication, guaranteeing that only authorized individuals can access records.
- Record Management: Provides an easy-to-use interface for patients and healthcare providers to manage health records, with secure data handling via smart contracts.
- Frontend: ReactJS
- Smart Contracts: Solidity, Hardhat
- Backend: Node.js, ExpressJS
- Blockchain Integration: Web3.js
The project is organized as follows:
HealthTrack/
│
├── artifacts/
│ ├── build-info/
│ ├── contracts/
│ ├── MedicalRecords.dbg.json
│ └── MedicalRecords.json
│
├── cache/
│ └── solidity-files-cache.json
│
├── contracts/
│ └── medicalRecord.sol
│
├── ignition/
│ └── Lock.js
│
├── scripts/
│ ├── deploy.js
│ └── seeding.js
│
├── src/
│ └── [Frontend files go here]
│
├── test/
│ └── MedicalRecordTest.js
│
└── hardhat.config.js
- artifacts/: Contains build information and compiled contract files such as
MedicalRecords.dbg.json
andMedicalRecords.json
. - cache/: Stores Solidity cache information, including the
solidity-files-cache.json
file. - contracts/: Contains the Solidity source code, including
medicalRecord.sol
. - ignition/: Contains initialization scripts like
Lock.js
. - scripts/: Contains deployment and seeding scripts, including
deploy.js
andseeding.js
. - src/: Holds the frontend ReactJS code.
- test/: Contains test scripts like
MedicalRecordTest.js
to ensure smart contract functionality. - hardhat.config.js: Configuration file for the Hardhat development environment.
- Node.js
- Hardhat
- MetaMask (for interacting with the Ethereum blockchain)
- Ganache (optional, for local blockchain development)
- Clone the repository:
git clone /~https://github.com/ishangawande55/HealthTrack.git
cd HealthTrack
- Install dependencies:
npm install
- Compile the smart contracts:
npx hardhat compile
- Deploy the contracts:
npx hardhat run scripts/deploy.js --network localhost
- Run the frontend:
npm start
To run the tests for the smart contracts, use the following command:
npx hardhat test
Contributions are welcome! Please open an issue or submit a pull request with any improvements or bug fixes.
This project is licensed under the MIT License.