Coder Social home page Coder Social logo

nickmezacapa / medicine-on-blockchain Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 22.41 MB

A supply chain for the safe distribution of pharmaceutical drugs using blockchain technology and the power of AI.

License: MIT License

Solidity 16.73% JavaScript 80.87% HTML 0.12% CSS 2.28%

medicine-on-blockchain's Introduction

The journey of medicine on blockchain. πŸ’Š

An AI-based solution for improving the process of bringing raw drugs and materials from suppliers to processed medicine in pharmacies.

Conflict πŸ€”

Effective supply chain management is the biggest challenge in every industry. However, there is additional risk and complexity in healthcare as a compromised supply chain that can affect the patient’s safety. Increased adoption of technology and globalization in an industry with multiple stakeholders has given rise to a complicated health supply chain.

Lack of transparency can spell disaster for consumers of pharmaceutical drugs. Counterfeit materials remain present, and tampering within the supply chain is difficult to investigate. Consumers deserve full knowledge and clarity of what they're putting in their body.

Solution πŸ’‘ 🧠

My solution is an amalgamation of two powerful technologies - Blockchain and AI. Blockchain is an open, distributed ledger that can efficiently record transactions between two parties in a verifiable and permanent way. Blockchain technology is decentralized, distributed, transparent, and immutable; thus it proves to be an effective implementation for pin-pointing counterfeit materials. AI in pharmacology can assist in matching patients to their optimal drug (or combination of drugs), predicting drug to target or drug to drug interactions, and optimizing treatment protocols.

This project proposes a system that uses blockchain and AI for a safe and optimized supply of medicine throughout the supply chain. Each product within the chain can be transferred between authenticated entities of the chain using an event request-response mechanism. All transactions between entities are recorded into the blockchain using smart contracts with the help of a product can be traced to its source. A Rasa chatbot is integrated to enable ordering, tracing medicine supply paths, and enhancing blockchain-based credit evaluation. A DApp was then developed using React Framework. The smart contracts were deployed on a local blockchain provided by Ganache. Using Web3.js and Truffle framework, DApp is connected to the blockchain. The experimental results show that the solution is feasible and arguably more secure than existing systems.

To deploy the Smart Contract πŸ’°

  1. Install Ganache and create a workspace.
  2. Install Truffle npm package globally by running npm install -g truffle.
  3. In the truffle-config.js file update the from: address to an address from your Ganache workspace.
  4. Run truffle migrate --reset from the command line to deploy the smart contract to the blockchain.
  5. Download Metamask Chrome extension to help interaction between the application and the blockchain.

To run React development server πŸ› οΈ

cd pharma
npm install
npm start

To run Node.js server

cd server
npm install
npm start

Related Links / Information Sources πŸ“–

License βš–οΈ

MIT License

License Link

https://opensource.org/licenses/MIT

medicine-on-blockchain's People

Contributors

nickmezacapa avatar

Stargazers

Roman avatar

Watchers

 avatar  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.