Pharma - SLAs, Traceability & Safety
-
dPharma etherium smart contract
- struct Nodes array:
- (0) Hospital
- (1) Warehouses
- (2) Factory
- struct Stock:
- serial
- name
- location Node
- type
- qty
- ppu
- category
- batch_no
- mfg_date
- expiry
- Total_Stocks = array Stock
- Orders mapping: (address(Hospital) => (order_no => struct Order))
- struct Order
- Stock
- price
- path array = (Node, time) # -1 for yet to reach
- order_no = unique id generated for each order placed
- struct Nodes array:
-
Backend Flask and JS
- Route calculation
- Updation of orders (Distributors)
- Updation of stocks (Manufacturers)
- Placement of orders (Hospitals)