A Healthcare Information Exchange System implemented using Blockchain Technology, I'm calling this system MediChain for short.
What can MediChain do for you in today's world?
- Integrated Payment Methods
- Pay your doctor at your own convenience through multiple payment methods.
- Add your preferred hospital
- Add your hospital for easier access.
- Manage your patients all in one platform
- Access/create/update your patients medical records all in this one stop platform for you doctors.
- Manage your doctors all in one platform
- Add and remove doctors in your hospital in an instant
Follow the instructions below.
0. Set up the lab environment
1. Download the fileblockchain_network/healthcare-blockchain(Clean).bna file
2.Run the following commands:
- cd easy-hyperledger-composer
- npm run build_image
- npm run test_bna
- npm run setup_crypto
- npm run start_fabric
- npm run start_playground
- go to localhost:8080/ and import our healthcare-blockchain(Clean).bna file in and deploy
- Under Credentials for System Adminstrator, select 'ID and Secret'
- Input Enrollment ID: admin and Enrollment Secret: adminpw
3. Set up the following participants:
- Hospital identified as h1
- Doctor identified as d1 assigned to h1 hospital
- Patient identified as p1 assigned to h1 hospital
4. Issue new identities to participants on the composer.
- Doctor d1 as d1
- Patient p1 as p1
5. To start the rest server:
- npm run start_rest-server p1@blockchain-healthcare 3001
- npm run start_rest-server d1@blockchain-healthcare 3002
**Great! Now you have the blockchain network up and running!
- Clone this repo
- Move to the appropriate directory
- Run
yarn
ornpm install
to install dependencies. - Run
npm start
to see the example app athttp://localhost:3000
.
Now you're ready to build on our Blockchain Application!
Logging in as a patient
userid : bcd
password: password
Logging in as a doctor
userid : abc
password: password
Common problems when launching front-end such as:
- internal/modules/cjs/loader.js:596 throw err;
Error: Cannot find module './types.json
FIX: Remove node_modules folder and re-run npm install on terminal - Cannot find module 'express-http-proxy'
FIX: npm install express-http-proxy
Project made as a part of individual study on "Strategic implementation of blockchain in healthcare industry" at Schulich School of Business, York University.