/Blockchain_for_EHR

Web based ,Patient Centric Electronic Health Record Manager using Blockchain techniques.

Primary LanguageCSSOtherNOASSERTION

Electronic Health Record Manager

Implementation of web based software for handling electronic health records using Flask, html, CSS , bootstrap and mongodb to show high level implementation of blockchain.

image

Html+CSS+Bootstrap+JS has been utilized to create an intuitive website that allow users to login as admin, doctor or patient and perform their specific niche operations. The information collected to create a new medical record is based on the key points provided by the Ministry of Health and family welfare.

Blockchain implementation (Backend): Flask, the micro framework in python is utilized for the implementation.

Information collected is stored in the cloud server (MongoDB) and a block is created with hash based on attributes of the medical record and it also holds the previous hash and timestamp of creation.

Checkout the website at : https://patrec.azurewebsites.net/

Demo login

PATIENT

Username : PAT001

Password : password

DOCTOR

Username : DOC1

Password : password

Use case diagram

image

image

Patient Record Access Schema

image

Guardian Mode Access Schema

image

Patient Data Blocks

image

Patient Record Blocks

image

Steps to run the project

Requirements : Python 3.x version

  1. Clone the project to local directory

    git clone https://github.com/antoprince001/Blockchain_for_EHR.git

  2. Change directory to cloned project

    cd Blockchain_for_EHR

  3. Install the pip module dependencies (Preferably in virtual enivironment)

    pip install - r requirements.txt

  4. Then, run the main app.py file

    python app.py

  5. If you want to configure your own mongodb connection

    • Create an account in MongoDB Cloud atlas
    • Create a cluster and retrieve the connection url
    • Update the connection URL in Line 61 of app.py file
  6. View the website live at http://localhost:5000/