/gdsc-hod

Crypto Wraiths

Primary LanguageJavaScript

dPharma

Pharma - SLAs, Traceability & Safety

Tech Specs

  1. dPharma etherium smart contract

    1. struct Nodes array:
      • (0) Hospital
      • (1) Warehouses
      • (2) Factory
    2. struct Stock:
      • serial
      • name
      • location Node
      • type
      • qty
      • ppu
      • category
      • batch_no
      • mfg_date
      • expiry
    3. Total_Stocks = array Stock
    4. Orders mapping: (address(Hospital) => (order_no => struct Order))
    5. struct Order
      • Stock
      • price
      • path array = (Node, time) # -1 for yet to reach
    6. order_no = unique id generated for each order placed
  2. Backend Flask and JS

    1. Route calculation
    2. Updation of orders (Distributors)
    3. Updation of stocks (Manufacturers)
    4. Placement of orders (Hospitals)