OBDM: Open Blood Donation Management
A doctor asks, the blood centre answers from the shelf, and nearby donors are recruited through a chat for the rest. Then everyone is told how it ended, including when it ends badly.
The problem
When a hospital needs blood, three disconnected things happen: a paper request form, a phone call to the blood centre, and, when the shelf is empty, a message forwarded around asking strangers to show up. No shared state, no record of what happened, and no one tells the doctor how it ended. In a medical-college hospital, that runs many times a day.
Who it’s for
Five roles, each with its own app, address and sign-in: ward doctors raising requests, blood-centre staff answering them, donors replying through a web chat, volunteer coordinators running donor drives, and administrators managing staff accounts. A public demand board shows live need by blood group and place, never a person.
How it works
- A doctor asks. A request is a slip: blood group, product, units and urgency, with an ID short enough to read aloud to the patient’s bystander.
- The centre answers from stock, oldest expiry first. Units are held for that request, and whatever the shelf can’t cover becomes donor demand in the same transaction.
- Donors are asked for the rest. The nearest eligible donors are messaged in waves, screened with a few health questions, and confirmed until the units are covered.
- Everyone hears how it ended. Donors are thanked with their next eligible date, anyone still holding a place is stood down, and a cancelled request releases its units and its donors at once.
Decisions worth naming
- Clinical conservatism on purpose. Issuing from stock is exact-group-match only. Substituting a compatible group stays a decision a person makes.
- Eligibility is computed, never asked. Group compatibility, distance, age, weight and time since last donation are checked before a message goes out, so every ping a donor gets is one they can act on.
- One application per role. Each staff app is its own origin with its own session cookie, so a session from one is useless in the others, and a compromised admin account reaches no clinical action.
- Minimal disclosure. The donor chat and the demand board show groups, units and places, never a patient. A donor’s phone number reaches the centre only after they say yes.
- The build is the reviewer. With no second reader on a commit, CI does the job: the clinical rules live in one pure package, the full 8×8 compatibility matrix is tested against a hand-written table, and tests connect as each database role to prove what it cannot do.
Where it stands
Built in phases, each closed with a decision record, and the full loop runs end to end. It runs on one small server behind Cloudflare Tunnel at roughly zero cost. The phases for tag readers and vision are waiting on hardware.
It is a prototype on synthetic data, not for managing real patients, donors or blood, and not a medical device.
See it
- Live prototype: obdm.deeprajr.com, the landing page and donor chat
- Demand board: volunteer-obdm.deeprajr.com/board
- Code: github.com/DeeprajR/obdm, Apache-2.0