/MediChain

A Healthcare Information Exchange System implemented using Blockchain Technology, I'm calling this system MediChain for short.

Primary LanguageJavaScriptMIT LicenseMIT

Blockchain-healthcare

A Healthcare Information Exchange System implemented using Blockchain Technology, I'm calling this system MediChain for short.


Features

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

Project Images

HOME

Azzy's MediChain banner

SIGNUP

Azzy's MediChain banner

LOG IN

Azzy's MediChain banner

HOW IT WORKS


Azzy's MediChain banner

Azzy's MediChain banner

Doctor

Azzy's MediChain banner

Azzy's MediChain banner

Azzy's MediChain banner

Azzy's MediChain banner

Azzy's MediChain banner

Azzy's MediChain banner

Azzy's MediChain banner

PATIENTS

Azzy's MediChain banner

Azzy's MediChain banner

Azzy's MediChain banner

Azzy's MediChain banner

Azzy's MediChain banner


By (you guessed it right!) Azhar Mithani

Quick start

Follow the instructions below.

Hyperledger Composer


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!

Front-End

  1. Clone this repo
  2. Move to the appropriate directory
  3. Run yarn or npm install to install dependencies.
  4. Run npm start to see the example app at http://localhost:3000.

Now you're ready to build on our Blockchain Application!

Logging in


Logging in as a patient
userid : bcd
password: password


Logging in as a doctor
userid : abc
password: password

Troubleshooting

Common problems when launching front-end such as:

  1. 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
  2. Cannot find module 'express-http-proxy'
    FIX: npm install express-http-proxy

Info

Project made as a part of individual study on "Strategic implementation of blockchain in healthcare industry" at Schulich School of Business, York University.