Coder Social home page Coder Social logo

jzafrap / healthchain Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eddex/healthchain

0.0 0.0 0.0 1.81 MB

Store your medical records in a blockchain and give doctors permissions to view them when they need it :hospital:

License: MIT License

JavaScript 92.43% PowerShell 0.20% CSS 2.04% HTML 5.33%

healthchain's Introduction

Healthchain

Store your medical records in a blockchain and give doctors permissions when they need it 🏥

⚠️ ⚠️ ⚠️

This projects is a proof of concept and by no means ready to use in real world use cases. Deploying the smart contract on the real ethereum network might result in high costs!

About

Patient's view

A patient can log in to the web-app and upload his medical records. A list of all uploaded documents is displayed. The documents can be downloaded or deleted. After a medical record document is uploaded, the patient can give a doctor access to his documents. As soon as the Doctor doesn't need access anymore, the permissions can be revoked.

Doctor's view

A doctor sees all documents that he has access to. Document can be downloaded to view them.

Setup development environment

  1. Install Ganche from the official webpage or the latest release on github.
  2. run npm install truffle -g to install truffle globally
  3. [Windows] If you don't have Visual Studio installed, run npm install --global --production windows-build-tools

Building the smart contract

  1. Start Ganache and create a new workspace (quickstart). Make sure the RPC server is set to 127.0.0.1:7545.
  2. in the root of this repository, run:
truffle compile
truffle migrate
  1. Copy the smart contract to the server:
copy-contracts-to-server.ps1

By default the smart contract is deployed to the client. Truffle can't deploy to multiple directories.

Client

A website for patients and doctors to store, view and manage medical records.

Start the react app:

cd client
npm start

Server

Files are uploaded to the server. The server can access the blockchain to check if a user is allowed to download the requested file.

Start the nodejs server:

cd server
npm start

testimonials

This project is based on the react truffle box: https://www.trufflesuite.com/boxes/react

healthchain's People

Contributors

eddex avatar jackle1996 avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.