GithubHelp home page GithubHelp logo

v4u2chat / pharma-network Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 4.0 60.77 MB

A project for applying blockchain to tackle the challenge of drug-counterfeiting.

JavaScript 60.50% Shell 39.50%
hyperledger hyperledger-fabric pharma nodejs

pharma-network's Introduction

PHARMANET

A project for applying blockchain technology to tackle the challenges of drug-counterfeiting in a pharmaceutical supply chain

Network Architecture

As shown in the image above, there are five stakeholders/organisations in this supply chain network.

1. Manufacturers: All the drug manufacturers that are registered or will be registered in the future with the network will belong to this level. For example, companies like ‘Sun Pharma’ and ‘Dr. Reddy’s Laboratories’ that are drug manufacturing companies will be a part of the ‘Manufacturers’ organisation.

2. Distributors: All the drug distributors that are registered or will be registered in the future on the network will belong to this organisation. These distributors will purchase drugs directly from the manufacturers. For example, companies like ‘VG pharma’ and ‘Medico Labs’ would constitute drug distributors and be a part of the ‘Distributors’ organisation.

3. Retailers: All pharmacists or drug retailers will be a part of this organisation. The retailers will receive drug consignments from the distributors.

4. Consumers: These are the people who purchase medicines from pharmacists.

5. Transporters: A transporter is an entity that is responsible for the shipment of consignments from one point to another. For example, entities like Blue Dart or FedEx will serve as transporters to ship the drug consignments from Manufacturers to Distributors. Similarly, if a consignment has to be shipped from a Distributor to a Retailer, a transporter will be required.

Workflow

The workflow required for the case study is divided into the following four units:

Company Registration:

  • All the entities who wish to be part of the supply chain network must be first registered or, in other terms, stored on the ledger.

Drug Registration:

  • As a part of this process, any drug manufactured has to be registered on the ledger by the manufacturing company.

Transfer Drug:

  • A buyer of the product will raise a Purchase Order for a particular drug.
  • The Purchase Order will be generated for a batch of drugs. It will include information like the name of the drug, the quantity required, Buyer, etc.
  • Based on the Purchase Order, the seller of the drug will initiate the process of shipment of the drug with the help of a transporter company like ‘FedEx’, and a shipment object will be created.
  • The shipment object will contain information like, the name of the transporter, origin, destination, etc.
  • Once the consignment is received by the buyer, the buyer will become the new owner of each item of the batch.
  • If the buyer is a consumer, then the Purchase Order and the shipment process need not be initiated. Only the owner of the drug is changed from the retailer to the consumer.

View Lifecycle:

  • It is the process to view the lifecycle of the asset to date.
  • Imagine a consumer or a retailer wishes to view the lifecycle of a drug called ‘amoxicillin’ with serial number ‘medi-001’. The ‘View Lifecycle’ functionality of the smart contract will allow any participant in the network to view the entire lifecycle of the asset.

Fabric Network Properties

Let’s look at the properties of the fabric network required for the supply chain network.

  • Name of the network: pharma-network
  • The network will consist of the following organisations.
    • Manufacturer- 2 peers
    • Distributor- 2 peers
    • Retailer- 2 peers
    • Consumer- 2 peers
    • Transporter- 2 peers
  • Initially, each organisation will have only ‘Admin’ as a User.
  • Each organisation must set up a fabric-ca service.
  • TLS should be disabled on the network.
  • Orderer Type: Solo
  • The name of the channel should be ‘pharmachannel’.
  • The name of the chaincode should be ‘pharmanet’.
  • The chaincode should be installed on both the peers of all the organisations.
  • Endorsement Policy: Any one of the organisations should endorse the transaction.
  • Peer0 of each organisation should be selected as the anchor peer.

Note: There are several other attributes for the network setup that are not specified. You are free to assume the values for those attributes.

Smart Contract Properties

Network Setup

Refer the following link for detailed instructions

pharma-network's People

Contributors

v4u2chat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.