Skip to content

Latest commit

 

History

History
211 lines (173 loc) · 5.37 KB

SUBMISSION.md

File metadata and controls

211 lines (173 loc) · 5.37 KB

Pharmaceutical Supply Chain

Project Design & Seminar

Jaipur National University

Team

  • Sounak Pradhan (6CS33)
  • Rahul Bishnoi (6CS23)

Mentors

  • Dr. Savita Shiwani
  • Ms. Neha Agrawal

Overview

  • Tracking medical products is costly and inefficient
  • Creating a supply chain using blockchain enables us to automate payments between different actors
  • It also helps tracking medical products from the source of raw materials to the final consumer
  • Our system helps maintain transparency which enables quality assurance using algorand notes
  • Each actor can check and verify all the precious interactions

System Structure and Flow

Actors

  • Farmers
  • Manufacturers
  • Transporters
  • Distributors
  • Pharmacies
  • Patients

Interactions

Purchase

Farmer will send raw materials to Manufacturer. Multiple farmers can send different raw materials to a manufacturer for a particular medicine.

Purchase

{
    "seller": {
      "name": "",
      "age": 0,
      "location": {
        "lat": "",
        "lng": ""
      }
    },
    "buyer": {
      "name": "",
      "location": {
        "lat": "",
        "lng": ""
      }
    },
    "timestamp": "",
    "ingredients": [
      {
        "name": "",
        "quantity": "",
        "price": 0
      },
      {
        "name": "",
        "quantity": "",
        "price": 0
      }
    ]
}

A farmerManufacture multisig account will be created which will be signed by farmer once he send the ingredients and then manufacture can confirm it and release funds to the farmer.

After this manufacture will prepare medicine and then divide it among batches, each batch will be an account with batchId as it's account address. Manufacture will send each batch a tx with a note like this template:

{
  "name": "Purchase",
  "proof": "txID"
}

proof is the txId of transaction between farmer and manufacture.

Delivery

Manufactures the medicines and sends the medicines to different distributors via transporters.

Delivery

{
  "manufacturer": {
    "name": "",
    "location": {
      "lat": 0,
      "lng": 0
    }
  },
  "transporter": {
    "name": "",
    "vehicleNo": "",
    "tempSensor": {
      "ideal": 0,
      "crossed" : 0
    }
  },
  "timestamp": 3232323,
  "distributor": {
    "name": "",
    "location": {
      "lat": 0,
      "lng": 0
    }
  },
  "ingredientSource": "",
  "medicines": {
    "quantity": 0,
    "name": "",
    "price": 0,
    "batchId": ""
    }
  }
}

Again a three way multisig will be created between transporter. distributor and manufacturer. First manufacture will sign, then transporter after he completes the delivery and in the end distributor will sign to release the funds to manufacturer from him.

The truck has a IOT sensor within it which automatically increment a value if temp exceeds the ideal value. The duration of temp above than ideal value is used to calculate score for the medicine. score = 10 * (1 - crossed / 240) On avg it should take 240 minutes to reach destination. Now the distributor will send a tx to the batchId of medicine with the same template as manufacture did with just one extra field, score.

Note that if score < 7 then distributor will have to reject the batch

Transferring

Distributor transfers the medicine to pharmacies.

Transfer

{
    "distributor": {
      "name": "",
      "location": {
        "lat": "",
        "lng": ""
      }
    },
    "medicines": [
      {
        "name": "",
        "quantity": 0,
        "price": 0,
        "id": ""
      }
    ],
    "pharmacy": {
      "name": "",
      "location": {
        "lat": "",
        "lng": ""
      }
    },
    "source": "",
    "timestamp": ""
}

Pharmacies will send a tx with transfer note to the batchID.

Buying Medicine

Patients will go to pharmacies to buy medicines. Before buying they can see the batchId written on top of medicine and then they can just enter that id in our explorer to get the complete history of that medicine starting from it's ingredients. He'll also be able to see the score by distributor.

{
  "name": "",
  "proof": "",
  "score": 0
}

Portal UI/UX

Features

  • Anyone with the unique identifier of a batch should be able to view the current status of a particular batch.
    • If the retailer wants to verify that the medicine was from a authorized manufacturer and that the distributor brought it in proper conditions, he can view that by searching the batch serial (unique identifier of a batch)
    • If a patient wants to verify the same, even he can do that in the same way.
  • Any actor should be able to emit events of the structures mentioned above once they are satisfied with the previous progress and takes up their task.
    • In the case of the distributor this will be handled by an IoT device (temperature sensor fitted with camera?)

Technologies Used

  • Javascript
  • React JS
  • Algorand
  • Algo SDK
  • Algorand Notes
  • Google Maps API
  • Multisignatures

Media Coverage