PROJECT 26 • DAY 24 OF 90 • COLD-CHAIN CUSTODY & DEMAND INTELLIGENCE

SANGVAIL
BLOOD BANK BI.

A clinical blood inventory management and demand intelligence platform — maintaining unit-level cold-chain custody, First-Expiry-First-Out (FEFO) allocation, component wastage monitors, and Scikit-Learn shortage forecasting.

Python 3.11+Streamlit 1.41+SQLAlchemy 2.0+Scikit-Learn 1.6+Plotly 5.24+ReportLab PDF32/32 Pytest
SANGVAIL Preview
CUSTODY BI
Unit-Level Ledger
TEST SUITE
32 / 32 Passed
FEFO Engine
Automated Allocation Rule
Shortage Model
Scikit-Learn Demand Forecasting
Data Audit
100% Integrity Score
32 / 32
Automated Pytest Passed
01 / Overview

COLD-CHAIN HEALTHCARE SUPPLY CHAIN INTELLIGENCE.

Blood components have strict shelf lives (platelets 5 days, RBC 35-42 days) and require cold-chain temperature adherence. SANGVAIL prevents stockouts and eliminates expiration wastage through automated FEFO allocation.

01

Operations Overview

Real-time command center displaying available released units, quarantined testing stock, urgent hospital demands, and approaching expiries.

02

Unit Custody Ledger

Tracks each individual blood unit from voluntary donation through component separation, viral testing clearance, and hospital issue.

03

FEFO Allocation Engine

Automates First-Expiry-First-Out allocation algorithms to ensure expiring units are dispatched to emergency hospital requests first.

04

Predictive Shortage Forecasting

Scikit-Learn time-series models forecasting demand surges by blood group to trigger donor recruitment drives.

05

Data Quality Centre

14-check data integrity auditor validating cold-chain timestamps, blood type compatibilities, and volume reconciliations.

06

Hospital Network Dispatch

Monitors regional blood bank inter-depot transfers to balance supply deficits across hospital clusters.

02 / Architecture

HOW IT WORKS.

Relational healthcare custody database backed by SQLAlchemy, SQLite WAL, and Scikit-Learn.

STAGE 01

Donation Intake

Donor screened, whole blood collected, and unit barcode generated.

→
STAGE 02

Testing & Release

Pathology results validated; cleared units moved to released stock.

→
STAGE 03

Hospital Request

Incoming clinical order evaluated for ABO/Rh compatibility.

→
STAGE 04

FEFO Dispatch

Algorithm selects closest-to-expiry matching units automatically.

→
STAGE 05

Demand Forecast

Historical issue trends train predictive machine learning models.

03 / Screenshots

APPLICATION SCREENSHOTS.

Live screens captured from the running application. Click any image to view full size, or follow setup instructions in the GitHub repository.

04 / Technical Details

HEALTHCARE INVENTORY SPECS & CAPABILITIES.

Key modules, rules, safety checks, and automated test results documented in the repository.

Subsystem Technical Implementation Verified Capability
Custody Tracking Unit-level relational ledger with UUIDs 100% auditable blood unit chain-of-custody
Allocation Algorithm Automated FEFO matching engine Platelet & RBC wastage minimization
Forecasting Engine Scikit-Learn linear & ensemble regressors Explainable 30-day shortage risk score
Verification Suite Pytest automated test suite 32 / 32 automated tests passed
05 / Tech Stack

CORE TECHNOLOGIES.

Frameworks, databases, visualization tools, and testing libraries used in SANGVAIL.

FRONTEND UI
Streamlit 1.41+
DATABASE ORM
SQLAlchemy 2.0+ • SQLite WAL
MACHINE LEARNING
Scikit-Learn 1.6+ • Pandas
CHARTS & REPORTS
Plotly • ReportLab PDF
SECURITY
Bcrypt Password Hashing
TEST SUITE
Pytest (32/32 Passed)
06 / Next Steps

FUTURE ENHANCEMENTS.

Upcoming improvements planned for SANGVAIL.

IoT RFID cold-chain temperature sensor integration with automated breach alerts.
e-RaktKosh national blood portal API synchronization.
Predictive donor call-list optimization based on predicted regional shortages.
OPEN-SOURCE PROJECT • GITHUB.COM/RAGURAMRRP

EXPLORE SOURCE & DOCS.

View the complete codebase, sample datasets, quick-launch scripts, and automated test suites on GitHub.