raj-71 / healthcare-hyperledger

Secure healthcare records management using Hyperledger Fabric.
3 stars 7 forks source link
blockchain healthcare hyperledger-fabric nodejs reactjs

Healthcare Records on Hyperledger Fabric

Introduction

This project is a healthcare records management system built on the Hyperledger Fabric blockchain. It allows patients to securely store and share his records with different healthcare providers, like doctor, pharmacy, lab. Patient can even claim for insurance for a record using the same system. This ensures patient privacy and data security.

Technologies Used

Features

Patient

Doctor

Pharmacy

Lab

Insurance

Installation and Usage

Prerequisites

Verify that you have the following installed:

$ node -v
v16.20.0
$ npm -v
8.19.4
$ docker -v
Docker version 23.0.1, build a5ee5b1
$ docker-compose -v
Docker Compose version v2.15.1
$ git --version
git version 2.39.2

Installation

POSTMAN API: https://api.postman.com/collections/25063944-f42cbb68-f9f8-4911-afd4-671d502b89ba?access_key=PMAT-01GY310EJ295VY22436MYX0SBQ

Usage

Architecture

Hyperledger Fabric Network

Troubleshooting

Incase if any of the commands fail due to configurations or the network was not brought down properly use the following commands to clear the corrupted docker images and fix the issue.

  1. Stop the network

    $ ./fablo down
  2. Again Up the network

    $ ./fablo up fablo-config.json
  3. Stop the containers

    $ docker stop $(docker ps -a -q)
  4. Remove the containers

    $ docker rm $(docker ps -a -q)
  5. Remove all local volumns

    $ docker volume prune
  6. Remove all wallets

    $ rm -rf /backend/*-wallet
  7. Authorization error code 71 -> Regenerate all connection profies in backend

    $ cd backend/config
    $ ./generate-ccp
  8. Incase of affiliation error -> authorization error code 20

    Copy paste these lines in all the fabric-ca-server-config.yaml (total 6 such files) files in the network. File locations:

    /fablo-target/fablo-config/fabric-ca-server-config/*.healthcare.com/fabric-ca-server-config.yaml

    affiliations:
        patient:
            - department1
        doctor:
            - department1
        pharmacy:
            - department1
        lab:
            - department1
        insurance:
            - department1

Contributions

Project Work: CS731 - Blockchain Technology and Application Professor: Angshuman Karmakar

Team Members:

  1. Raj Kumar - 22111050
  2. Madhav Maheswari - 22111037
  3. Sarthak Neema - 22111079
  4. Sumit Chaudhary - 22111060