Skip to content

itsaaryan/med-chain

Repository files navigation

Med Chain

This project was created using ethereum smart contracts to reduce the supply of drugs illegally.Using blockchain technology I assured that the medicine registered go through a secure channel to the consumer,This projects tracks the cycle of the medicine from raw materials used to the hands of consumer.Every step of the medicine cycle the staus of the medicine is tracked.

Use cases

  1. It can be used to track the vaccines for covid-19.
  2. It can be used to track the international medicine tranfer.
  3. It can be used to keep track of how a medicine is performing in the market.

Features

  • Create a raw material and track its progress.
  • View the previously created raw materials.
  • Create a medicine using the created raw materials.
  • Keep track of the medicine being exported.
  • Distribute the medicine to the retailers.
  • Update the status of the medicine (sold,expired,damaged,not received etc.)
  • keep track of the medicine cycle every step of the way.

Roles

  1. Admin

    • Registers a new user (Supplier,Transporter,MAnufacturer,Distributor,Retailer).
    • Reassign roles to existing users.
    • Revoke roles of existing users.
    • keep track of the users.
  2. Supplier

    • Creates a new raw material.
    • Keeps track of previously created raw materials.
  3. Manufacturer

    • Uses the received raw material to create new medicne.
    • Registers the mew medicine.
    • Exports the new medicine to the distributor.
    • Keeps track of the existing medicines.
  4. Distributor

    • Receive the medicine from the manufacturer.
    • Distributes the medicine to the retailers.
    • Keeps track of the distributed medicine.
  5. Retailer

    • Receives medicine from the distributor.
    • Sells the medicine.
    • Updates status of the medicine.
    • Keeps track of the sold medicine.
  6. Transporter

    • Transports the medicine from supplier to manufacturer.
    • Transports the medicine from the manufacturer to distributor.
    • Transports the medicine from distributor to retailer.

ADMIN

All users


Create User

Supplier

Create Raw Package


All raw PAckages

Transporter

Pickup

Manufacturer

Receive raw packages


Create Medicine


All medicine

Distributor

Receive Medicine


Transfer to retailer

Retailer

Receive Medicne


Update status