Healthcare BPJS System that utilizes blockchain to create a transparent, secure, and decentralized system to manage medical records. Features of this system includes:
- Insurance Premium Payment
- Insurance State Check
- Electronic Medical Record Submission
- Medical Checkup Management
- Insurance Claim Management
- Medical Token Payments
To run the Blockchain Healthcare System, ensure your system meets the following requirements:
- Operating System: Any OS (Windows, macOS, Linux)
- Processor: Dual-core CPU (Intel i3 or higher)
- Memory: 4 GB RAM minimum
- Disk Space: 10 GB free space
- Dependencies:
- Optional:
- A shell capable of running
.shscripts for automation.
- A shell capable of running
- Metamask: extension or your browser
The system consists of three main components:
-
Healthcare Client:
- Stack: Vite, React, TypeScript
- Purpose: Frontend for users to interact with the healthcare system.
-
Smart Contract:
- Stack: Solidity, Hardhat, TypeScript
- Purpose: Blockchain backend to manage healthcare data and transactions.
-
Oracle:
- Stack: Node.js
- Purpose: Middleware for off-chain operations and data synchronization.
Follow these steps to set up and run the project:
-
Clone the repository and navigate to the root folder.
-
Rename the .env.example in the healtcare-client folder to .env
The short way (using scripts)
-
Start the services:
Step 1: In the root folder, run:
sh run_1.sh
Step 2: Open a new terminal and run:
sh run_2.sh
Step 3: Open another terminal and run:
sh run_3.sh
The Long way
3.1. Install the dependencies using
pnpm iin folder healthcare-client, oracle, and smart-Contract
3.2. Run
npx hardhat nodein the smart-contract folder to deploy the chain
3.3. Start a new terminal and run
sh deploy_contract.shin the smart-contract folder to deploy the contract
3.3. Run the frontend with
pnpm run devIn the healthcare-client
3.4. Run the oracle with
pnpm run devIn the oracle folder
After doing all the initial setup (using the script or the long way) 4. You need to import a wallet in metamask extension in browser with private key:
ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80-
Type in the browser to go the frontend app
http://localhost:5173/
-
Below is the demo of the application that showcase its feature
A live or recorded demonstration showcasing the Blockchain Healthcare System can be seen here https://www.youtube.com/watch?v=vn1G-LYHnrw