Safe, traceable, and clinically compliant human whole blood supply chains remain vulnerable across donor eligibility enforcement, 35-day Citrate Phosphate Dextrose Adenine (CPDA-1) cold-chain shelf-life control, emergency geospatial donor triage, and custody record immutability. Fragmented hospital registries and centralized portals grant broad database write access without cryptographic custody proofs, enabling silent post-hoc record modification while failing to programmatically prevent non-First-In-First-Out (FIFO) unit expiration or unsafe repeat collections inside the mandatory 90-day physiological recovery interval. In this paper, we present RedFlow, an implemented four-tier hybrid Web3 blood supply ecosystem built on React 18, Vite 5.4, Node.js, Express 4 (60 RESTful endpoints), MongoDB (nine strictly typed Mongoose schemas), and Solidity 0.8.20 smart contracts (RedFlow.sol) anchored via Ethers.js v6. Enforcing a strict Zero-PII on-chain privacy boundary, personally identifi-able clinical metadata remains confined off-chain inside MongoDB while deterministic pipe-delimited Keccak-256 digests syn-chronize immutably to Ethereum Virtual Machine (EVM) storage. Core clinical and community modules unify a nine-question Ministry of Health and Family Welfare (MoHFW) pre-screener, server-side 90-day recovery lockout guards, five-panel infec-tious marker clearance, finite-state custody validation, FIFO emergency vault matching, Haversine geodesic ranking paired with Golden-Angle (137.5°) pincode coordinate dispersion, Youth Camp drive tokenization, dynamic 1024 681 HTML5 Can-vas appreciation certificates, zero-authentication public QR provenance inspection, and a key-gated blockchain Watchdog Audit Hub. Live verification executed on a local Hardhat EVM node achieved a 100% pass rate across all 14 integration test scenarios (deployed bytecode size of 5,152 bytes, or 20.96% of the EIP-170 cap), microsecond pincode/geodesic computation (1.13 µs and 0.47 µs per call), nearby donor triage in 15.12 ms, and zero-gas public QR parity verification in 43.83 ms.
Introduction
The text presents RedFlow, a blockchain-based blood bank management system designed to improve blood donation management, blood inventory tracking, patient safety, transparency and emergency blood availability.
Whole blood plays an essential role in emergency trauma care, surgery, cancer treatment and other medical procedures. However, blood is a perishable biological product that requires strict storage and safety conditions. Blood collected using CPDA-1 anticoagulant must be stored between 2°C and 6°C and has a maximum storage period of 35 days. Donors must also satisfy mandatory eligibility requirements, including a 90-day interval between consecutive whole-blood donations and screening for five major infections: HIV, Hepatitis B, Hepatitis C, Syphilis and Malaria.
Traditional blood bank management systems face several problems, including disconnected workflows, insecure databases, manual donor eligibility verification, inefficient blood stock distribution and inaccurate identification of nearby donors.
1. Major Problems in Existing Blood Bank Systems
The research identifies three major limitations:
Data security and transparency: Centralised databases can be modified without providing reliable evidence of unauthorised changes to blood groups, screening results or expiry dates.
Clinical safety and inventory management: Manual systems may fail to enforce the mandatory 90-day donation interval and often do not follow the First-In-First-Out (FIFO) method, resulting in unnecessary blood wastage.
Geographical donor identification: Traditional systems rely on district-level searches, making it difficult to locate compatible donors accurately during emergencies. They also lack efficient digital management of campus blood donation campaigns.
2. Proposed Solution: RedFlow
To overcome these limitations, the research proposes RedFlow, a unified full-stack Web3 blood supply management platform.
The system combines blockchain technology, web development, cryptographic hashing, QR codes and geolocation services to provide secure, transparent and efficient blood bank management.
Its main objectives are:
Secure donor registration and verification.
Automatic donor eligibility checking.
Tamper-resistant blood donation records.
Efficient blood inventory and expiry management.
QR-based blood bag verification.
Location-based emergency donor identification.
Digital management of blood donation camps and certificates.
3. Blockchain-Based Architecture
RedFlow uses a four-tier hybrid Web3 architecture that separates normal database operations from blockchain verification.
Its major technologies include:
React 18 and Vite: Frontend user interface.
Node.js and Express 4: Backend services and REST APIs.
MongoDB: Storage of donor information, blood inventory, emergency requests and other operational records.
Solidity 0.8.20: Smart contracts for blockchain-based verification.
Ethereum and Ethers.js: Decentralised transaction and verification management.
The platform uses a hybrid architecture in which regular operations are performed through MongoDB and Express, while important records are verified using blockchain. This approach maintains fast application performance while providing tamper-resistant records.
4. Donor Registration and Eligibility Verification
RedFlow implements role-based access control to manage donors, administrators and authorised hospital personnel.
Important features include:
Donor registration with mobile number and password validation.
Google OAuth 2.0 authentication.
Secure password storage using Bcrypt.
JWT-based authentication.
A nine-question donor health screening questionnaire.
Automatic verification of the mandatory 90-day donation interval.
The system checks whether a donor has previously donated blood within the last 90 days. If the donor is ineligible, the system rejects the donation request automatically.
Administrators can also approve verified donors or permanently flag donors who are medically unsuitable.
5. Data Privacy and Cryptographic Security
One of RedFlow's important contributions is its Zero-PII (Zero Personally Identifiable Information) architecture.
Instead of storing sensitive personal information directly on the blockchain, the system maintains:
Names, email addresses and phone numbers in MongoDB.
Residential addresses and geographical coordinates off-chain.
Medical deferral reasons in the protected database.
Cryptographic hash values and verification information on the blockchain.
The system uses the Keccak-256 hashing algorithm to generate unique digital fingerprints of donor and blood-unit records.
These hashes allow the system to compare database records with blockchain records. If someone changes important information, such as a blood group, expiry date or screening status, the hash values will no longer match.
This provides tamper detection while protecting confidential medical information.
6. Blood Inventory and QR Code Verification
RedFlow generates unique serial numbers for blood units and creates QR codes containing their verification information.
Each blood unit has:
A unique identification number.
Donor identification details.
Blood group information.
Collection and expiry dates.
Serological screening status.
Availability and storage status.
The system automatically calculates the 35-day expiry period from the collection date.
It also aims to implement FIFO inventory management, ensuring that older eligible blood units are issued before newer units. This reduces unnecessary blood wastage and improves inventory utilisation.
7. Geographical Donor Identification and Emergency Management
RedFlow integrates geolocation services to identify nearby blood donors during emergencies.
Instead of relying only on district-level information, the system uses geographical coordinates and automated Indian pincode geocoding to identify compatible donors more accurately.
Its geographical functionality includes:
Location-based donor searching.
ABO/Rh blood group compatibility matching.
Distance-based emergency donor identification.
Improved donor distribution using Golden-Angle spatial dispersion.
The system also supports digital blood donation camp registration, serialized digital passes and verifiable donor appreciation certificates.
8. Related Research and Research Gap
Previous research has explored blockchain-based blood donation systems, smart contracts, QR-based blood bag verification, encrypted healthcare records and GPS-based donor identification.
However, existing systems often lack a complete integration of clinical safety rules, privacy protection, real-time donor matching and efficient inventory management.
RedFlow addresses these research gaps by combining blockchain verification, Zero-PII privacy, automated donor eligibility checks, FIFO inventory management, QR verification and geospatial donor matching in one platform.
Conclusion
In this paper, we presented RedFlow, a deployed four-tier hybrid Web3 blood supply ecosystem uniting off-chain MongoDB clinical responsiveness with Zero-PII Ethereum smart-contract immutability. By strictly isolating personally identifiable metadata and confi-dential clinical deferral notes off-chain while anchoring deterministic pipe-delimited Keccak-256 commitments inside RedFlow.sol (5,152-byte bytecode), RedFlow prevents silent database tampering while allowing zero-gas public QR provenance verification within 43.83 ms.
Across its integrated workflows, RedFlow enforces automated clinical safety and rapid emergency response: (1) nine-question MoHFW pre-screening paired with hard backend 90-day recovery lockouts and terminal serology states? (2) 35-day CPDA-1 FIFO vault dispatching backed by three-tier Indian pincode geocoding, Haversine ranking (15.12 ms live triage), and Golden-Angle (137.5°) marker dispersion? and (3) Youth Camp drive tokenization alongside dynamic 1024 681 Canvas appreciation certificates and a key-gated Tamper Watchdog Audit Hub achieving a 100% pass rate across all 14 integration test scenarios.
Future engineering work will focus on: (i) federating transaction signing across multi-institution hospital wallets via addAdmin(address) and serialized nonce managers? (ii) persisting Watchdog alerts inside MongoDB alongside autonomous midnight expiry cron jobs? (iii) integrating IoT 2°C–6°C cold-chain thermal telemetry probes directly with on-chain excursion proofs? (iv) extending whole-blood tracking to separated components (Packed Red Blood Cells, Platelets, and Fresh Frozen Plasma)? and (v) packaging campus intake and /verify/:unitId scanners as installable Progressive Web Applications.
References
[1] A. Agrawal, A. M. Jain, S. N. Rathod, S. P. Shah, and N. Y. Suvarna, “Blood Management System Using Blockchain,” Mapana – Journal of Sciences, vol. 22, Special Issue 2, pp. 349–361, 2023.
[2] M. Kotian, T. Raut, P. Malvia, N. Walunj, and M. Pathak, “Blood Chain: Blockchain Based Blood Registry and Supply System,” International Research Journal of Engineering and Technology (IRJET), vol. 11, no. 4, pp. 2023–2028, Apr. 2024.
[3] A. Sevinç and F. Özyurt, “A Blockchain-Based Blood Donation System: Enhancing Transparency, Accountability, and Sustainability in Healthcare,” Healthcraft Frontiers, vol. 2, no. 3, pp. 139–149, 2024.
[4] E. S. Priya and R. Priya, “Data Encryption of Blood-chain Data in Blockchain Network,” in Proc. Int. Conf. on Networking and Communications (ICNWC), IEEE, 2023.
[5] Anitha P, G. Raghu, K. S. Vaishnavi, A. Acharya U, and H. A. Devoor, “Block Chain Based Blood Donation Tracking System,” in Proc. Int. Conf. on Emerging Technologies in Electronics and Green Energy (ICETEG), IEEE, 2025.
[6] H. D. Das, R. Ahmed, N. Smrity, and L. Islam, “BDonor: A Geo-localised Blood Donor Management System Using Mobile Crowdsourcing,” in Proc. IEEE Int. Conf. on Communication Systems and Network Technologies (CSNT), pp. 313–318, 2020.
[7] Government of India, “Blockchain for Blood Bank Management System,” National Blockchain Project, Ministry of Electronics and Information Technology (MeitY), India, Blockchain Blood Bank Case Study.
[8] S. Nakamoto, “Bitcoin: A Peer-to-Peer Electronic Cash System,” 2008.
[9] V. Buterin, “Ethereum White Paper: A Next-Generation Smart Contract and Decentralized Application Platform,” 2013.
[10] M. Swan, Blockchain: Blueprint for a New Economy, 1st ed. Sebastopol, CA, USA: O’Reilly Media, 2015.
[11] W. Stallings, Cryptography and Network Security: Principles and Practice, 7th ed. Pearson Education, 2017.
[12] A. M. Antonopoulos, Mastering Ethereum: Building Smart Contracts and DApps. Sebastopol, CA, USA: O’Reilly Media, 2018.