Final-year project
Blood Bank Management System
A database-driven system for a blood bank to register donors, record donations, track stock by blood group and component with expiry dates, and handle hospital requests using compatibility rules.
Java (Spring Boot or Swing)MySQL or PostgreSQLJDBC
The problem
When a patient needs blood urgently, the blood bank must know at once what is in stock, which units expire first, and which blood groups are compatible. Many small blood banks still track this in registers. This project builds the database and application behind a real blood bank, and is a strong DBMS project because every rule maps to tables, constraints and queries.
Features to build
- Register donors with blood group, contact details and last donation date
- Check donor eligibility before a donation, using the rules in your country's current guidelines, such as the minimum gap since the last donation
- Record each donation as a unit with a unique bag number, collection date and expiry date
- Stock dashboard by blood group and component, with units expiring in the next 3 days highlighted
- Hospital requests: patient blood group, component and units needed
- Suggest compatible units for a request, issuing the ones that expire first
- Mark expired units automatically and keep a full history of every unit
- Reports: donations per month, units issued and units wasted through expiry
Suggested data model
status is one of available, issued, expired or discarded; enforce it with a CHECK constraint.
Build plan
- 1
Learn the rules first
Read your national blood transfusion guidelines (in India, from the National Blood Transfusion Council) for donor eligibility and storage limits, and list the rules you will implement.
- 2
Design and normalise the database
Create the tables with keys, foreign keys and CHECK constraints for blood groups and statuses. Put the compatibility rules in their own table.
- 3
Build the screens
Make forms for donors, donations, hospitals and requests, using JDBC prepared statements or Spring Data for database access.
- 4
Issue blood correctly
For a request, find available, unexpired, compatible units ordered by expiry date, and mark them issued in one transaction.
- 5
Reports and expiry
Write queries with GROUP BY for the dashboard and reports, and a daily job or view that marks expired units.
Learn these first
Each part of the project is taught in one of these free lessons.
- SQL CREATE TABLE: Define a New Table Step by Step
- SQL Constraints: PRIMARY KEY, FOREIGN KEY, UNIQUE, NOT NULL, CHECK, DEFAULT
- SQL INSERT INTO: Add New Rows to a Table
- SQL UPDATE: Change Existing Rows Safely
- SQL GROUP BY Explained Simply (With Examples)
- SQL Date Functions: Current Date, Extract Year and Month, Add Days, Date Differences
- SQL Views: Save a Query as a Virtual Table
- SQL Transactions: BEGIN, COMMIT, ROLLBACK and ACID
- Java Collections Framework Overview: List, Set, Map and Queue
- Java Exceptions: try, catch, finally, throw, Checked vs Unchecked
Make it stand out
- SMS or WhatsApp messages to eligible donors of a needed group during shortages
- Blood donation camp management
- Separate stock for whole blood, red cells, platelets and plasma
- A public page showing which blood groups are in short supply
Viva and interview questions
Try to answer each one aloud before you open it.
Which blood group is the universal donor for red cells, and which is the universal recipient?
O negative red cells can be given to patients of any ABO and Rh group, so O negative is the universal red-cell donor. AB positive patients can receive red cells of any group, so AB positive is the universal recipient.
Why issue the units that expire first?
This is first-expiry, first-out. It uses older units before they expire, which reduces wasted blood, since red cells can only be stored for a few weeks and platelets for only a few days.
Why put compatibility rules in a table instead of if-else code?
A table such as compatibility(recipient_group, donor_group) can be checked with a simple join, is easy to review against the guidelines, and can be changed without changing the program.
Why use a transaction when issuing units?
Issuing changes several units and the request together. A transaction makes sure that either all of them are updated or none are, so two staff members cannot issue the same bag to two requests.
What normal form is your design in, and why does it matter?
At least third normal form: each table describes one thing and non-key columns depend only on the key. For example, donor details are stored once in donors, not repeated in every donation, so they cannot get out of step.
What to put in your project report
- Abstract: the problem, your solution and the result in one paragraph.
- Introduction and problem statement: who has the problem and why it matters.
- Requirements: the features (functional) and qualities such as speed and security (non-functional).
- Design: architecture diagram, database tables or data flow, and screen layouts.
- Implementation: the main modules and the most interesting code, explained.
- Testing: the test cases you ran, with inputs, expected and actual results.
- Results: screenshots or numbers that show the project working.
- Conclusion and future scope: what you achieved and what you would add next.
Your college may give its own format. Follow that first, and use this list to check nothing is missing.
More project ideas
- Student Result Management System in PythonMini project
- Library Management System in JavaMini project
- College Attendance Management SystemFinal-year project