PDF Report
PDF Report
“JNANASANGAMA”BELAGAVI–590018
DEPARTMENT OF
ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING
CHANDANA C K [4GM23AI026]
MANIKYA S J [4GM23AI060]
CERTIFICATE
This is to certify that the Mini project entitled “BLOOD BANK AND DONAR
MANAGEMENT SYSTEM” bonafied record of the work carried out by CHANDANA C K
[4GM23AI026], MANIKYA S J[4GM23AI060], KHALANDAR KHAN [4GM23AI053] in partial
fulfillment of the requirement for the award of degree of Bachelor of Engineering in Artificial
Intelligence and Machine Learning of the Visvesvaraya Technological University, Belagavi during
the academic year 2023–24. The Miniproject report has been approved as it satisfies the
academic requirements with respect to the internship work prescribed for Bachelor of
Engineering Degree.
HEAD OF DEPARTMENT
The system is divided into three main modules: Donor, Patient/Hospital, and
Administrator. Donors can register and update their profiles, patients or hospitals can
place blood requests, and administrators oversee the entire workflow by verifying donor
eligibility, managing blood stock, and approving blood requests. This modular structure
ensures clear roles and responsibilities, enabling smooth coordination between all
parties involved.
One of the critical features of the system is real-time blood inventory management. It
maintains detailed records of blood units, including blood groups, quantities, and
expiration dates, which helps avoid shortages or wastage. Automated alerts notify
administrators about low stock levels or approaching expiration dates, enabling timely
replenishment and better blood bank management.
ii
ACKNOWLEDGEMENT
First and the foremost, I take this opportunity to express our deep sense of gratitude to
the principal Dr. Sanjay Pande M B and the esteemed institution GMIT for providing us
an opportunity to fulfill most cherished desire of reaching towards our goal.
I am highly grateful to Dr. Asha K, Head, Dept. of AI&ML, GMIT, Davangere for his kind
support, guidance and encouragement throughout the course of this Internship.
I take this opportunity to express our deep sense of gratitude to our Mini project
coordinator and guide Ms. Veena C S, Assistant Professor, Dept. of AI&ML, GMIT,
Davangere, for their kind support, guidance and encouragement throughout the course
of this Internship.
I would also like to thank all the teaching and non-teaching staff of Dept. of AI&ML for
their kind Co-operation during the course of the Internship. The support provided by
the College and Departmental library is gratefully acknowledged.
ii
CONTENTS
Abstract Acknowledgement i
Contents ii
1 PREAMBLE 1
iii
2.3.2 CLIENT SIDE 6
2.4 OUTPUT REQUIREMENTS 6
2.4.1 CRITICAL INFORMATION 7
2.4.2 ERROR MESSAGES 7
2.4.3 FUNCTIONAL REQUIREMENTS 7
2.5 SOFTWARE REQUIREMNTS 7
2.6 HARDWARE REQUIREMENTS 8
2.7 PROJECT CYCLE 9
3 SYSTEM DESIGN 10
3.1 PROJECT ARCHITECTURE AND DESCRIPTION 10
3.2 DATABASE DESIGN 11
3.3 SEQUENCE DIAGRAMS 11
3.4 DATA FLOW DIAGRAMS 12
3.5 FLOWCHART 12
3.6 UTILITIES 13
4 IMPLEMENTATION 14
4.1 SOFTWARE TOOLS USED 14
4.2 IMPLEMENTATION DETAILS 15
5 RESULTS 16
5.1 SNAP SHOTS OF THE PROJECT 16
6 CONCLUSION 17
6.1 CONCLUSION 17
iv
v
CHAPTER 1
PREAMBLE
Preamble
Blood is a vital component of human life, essential for survival. Blood banks play a crucial
role in collecting, testing, and distributing blood. However, manual blood bank
management systems are time-consuming and prone to errors. There is a need for an
efficient and reliable blood bank management system. This project aims to develop a
web-based blood bank management system. The system will automate blood donation,
collection, and storage management. It will ensure blood safety, reduce wastage, and
shortages. The system will provide a user-friendly online platform for donors, blood
banks, and hospitals. It will manage donor registration, blood inventory, and request
allocations. It will send reminders, provide reports, and analytics on blood donations. The
system will be developed using PHP, MySQL, and XAMPP. It will improve blood donation
management and reduce shortages. The system will benefit blood banks, hospitals, and
patients. It will provide a centralized platform for blood donation management. The
project will be completed within a specific timeframe and budget.
Problem Statement
Manual blood bank management systems are inefficient and prone to errors. Blood
shortages and wastage are common due to lack of automation. Donors face difficulties in
registering and donating blood. Blood banks struggle to manage inventory and allocate
blood efficiently. Hospitals face challenges in accessing reliable blood supplies. There is a
need for a reliable and efficient blood bank management system.
Solution
This project aims to develop a web-based blood bank management system using PHP,
MySQL, and XAMPP. The system will automate blood donation, collection, and storage
management. It will provide a user-friendly online platform for donors, blood banks, and
hospitals. The system will implement a centralized system for managing donor
registration and blood inventory. It will send reminders, provide reports, and analytics on
blood donations. It will ensure blood safety, reduce wastage, and shortages.
6
Objective of Project
The main objective of this project is to develop a web-based blood bank management
system. The system will automate blood donation, collection, and storage management.
It will provide a user-friendly online platform for donors, blood banks, and hospitals. The
system will manage donor registration, blood inventory, and request allocations. It will
send reminders, provide reports, and analytics on blood donations. The system will
ensure blood safety, reduce wastage, and shortages. It will improve blood donation
management and reduce shortages. The system will benefit blood banks, hospitals, and
patients. It will provide a centralized platform for blood donation management. The
project will be completed within a specific timeframe and budget It will benefit blood
banks, hospitals, and patients. It will provide a centralized platform for blood donation
management. It will reduce costs and improve efficiency. It will enhance patient care and
outcomes. It will improve donor satisfaction and retention.
Literature Survey
- Survey 1:
- Title: Blood Bank Management System
- Author: S. Kumar, R. K. Singh, and A. K. Singh
- Publication: International Journal of Computer Science and Information
Technology
- Year: 2020
- Limitations: The system has limited scalability and compatibility issues with
some browsers.
- Survey 2:
- Title: Automated Blood Bank Management System
- Author: P. K. Gupta, M. K. Singh, and R. K. Verma
- Publication: Journal of Healthcare Engineering
- Year: 2019
- Limitations: The system has high maintenance costs and require
7
8
CHAPTER 2
A Blood Bank and Donor Management System (BBDMS) is designed to streamline the
process of donor registration, blood collection, storage, inventory tracking, and blood
request management in hospitals or blood banks.
The system ensures that the right blood type is available at the right time while
maintaining donor information securely and [Link] system is designed to be
scalable and reliable, providing consistent performance across various devices and
ope2.1 USER CHARCTERSTICS/ROLES Donor Management
9
2.2 USER CHARCTERSTICS/ROLES Donor Management
Key Functions
Donor Registration:
Collects donor details such as name, age, gender, contact information,
blood group, and medical history.
Eligibility Check:
Ensures donors meet required health criteria before donation.
Donor Appointment Scheduling:
Allows donors to book donation slots.
10
2.3 USER CHARCTERSTICS/ROLES Donor Management
Key Functions
Donor Registration:
Collects donor details such as name, age, gender, contact information,
blood group, and medical history.
Eligibility Check:
Ensures donors meet required health criteria before donation.
Donor Appointment Scheduling:
Allows donors to book donation slots.
• Inventory Update:
Automatically updates stock when new blood units are added or issued.
• Blood Group Stock Status:
Displays available units of each blood group (A+, O−, etc.).
• Expiry Tracking:
Alerts when units are nearing expiration.
• Search Blood Units:
Staff can quickly check availability by blood group and component.
12
2.4 INPUT REQUIREMENTS
The Blood Bank and Donor Management System requires accurate donor
information such as name, age, gender, contact details, blood group, and medical
eligibility to create and maintain donor profiles. The system also needs secure
login credentials, including usernames and passwords for donors, staff, and
administrators. During blood donation, staff must input details like donor ID,
donation date, collected units, and screening results to ensure proper tracking. For
managing inventory, the system requires inputs related to blood group, quantity,
storage location, and expiry dates. When processing blood requests, necessary
inputs include requester details, required blood type, number of units, and
urgency level. Staff must also enter approval or rejection status for each request.
Additionally, during blood issuance, inputs such as request ID, issued units, and
recipient information are needed. The system uses filters like date range and
blood group to generate reports. All these inputs ensure efficient donor
management, accurate inventory tracking, and timely blood distribution.
..
14
2. Programming Languages:
Image Processing:
OpenCV for image processing tasks.
Data Handling:
Pandas and NumPy for data manipulation and analysis.
Web Integration:
Flask or Django for backend development.
development.
3. Database:
4. Version Control:
5. Cloud Services:
AWS, Google Cloud, or Azure for deploying the model and application
(optional but recommended for scalability)
15
2.6 HARDWARE REQUIREMENTS
1. Development Machines:
GPU: NVIDIA GPU (e.g., GTX 1660 or better) for faster model training
2. Server Requirements:
At least 32 GB of RAM.
2. Webcam:
3. Additional Peripherals:
[Link] Machines:
3. Server Requirements:
At least 32 GB of RAM.
17
18
CHAPTER-3
SYSTEM ANALYSIS
Fig 3.3.1: Sequence
The donor initiates the flow by opening the registration page in a browser. The Web UI
displays a form and the donor fills it with personal and medical details. Upon submitting,
the UI sends a POST request to the server. The server validates the input (e.g., required
fields, age eligibility, blood group format). If validation passes, the server inserts the
donor record into the database and returns a success response with a generated
donor_id. The UI then shows a confirmation message. If validation fails, the server returns
errors and the UI displays them to the donor.
When a donor donates blood, the phlebotomist labels the bag (assigns bag_id) and
records the donation via the web interface. The server stores the donation entry in the
donations table. The sample is sent to the lab, where lab staff run required tests. Lab staff
update the donation record with test results. If the sample passes testing, the server
creates an inventory record (with expiry_date set according to component type). If the
sample fails, the donation is marked rejected and not added to inventory.
Hospitals submit requests through the hospital UI, which creates a requests record in the
database with status pending. Staff review pending requests from their dashboard. When
staff approve a request, the server queries the inventory for matching available bags
(prioritizing those nearest to expiry). If enough stock exists, the server updates selected
inventory records to issued and marks the request as fulfilled, including staff details and
timestamp. The hospital is notified of fulfillment. If stock is insufficient, the request is
marked denied and the hospital is notified with details.
19
3.1 PROJECT ARCHITECTURE AND DESCRIPTION
Database Design
• Users Table: Stores system user profiles.
Columns: UserID, Username, Email, PasswordHash, Role, ContactNumber.
• Audit Log Table: Tracks all key system actions for monitoring and security.
Columns: LogID, UserID, ActionType, Description, Timestamp.
20
SEQUENCE DIAGRAMS
This diagram represents the interaction flow within a Blood Donation System. The user
can search for donors, and the system retrieves and displays donor details from the donor
module. The admin is responsible for adding new donors to keep the donor database
updated. Similarly, the user can search for nearby or available blood banks, and the blood
bank module responds by providing the requested information. The admin also manages
blood bank records by adding new blood banks into the system. Overall, the diagram
illustrates how users retrieve information while the admin maintains the system data.
21
3.2 DATA FLOW DIAGRAMS
22
23
CHAPTER 4
IMPLEMENTAION
24
1.2 IMPLEMENTATION DETAILS
Below is a practical, step-by-step outline for implementing the Blood Bank & Donor
Management System with PHP + MySQL on XAMPP.
A. Database design (recommended core tables)
Donors
• donor_id (PK, INT AUTO_INCREMENT)
• first_name, last_name, dob, gender
• blood_group (A+, O-, etc.)
• contact_no, email, address
• last_donation_date, status (active/inactive)
• created_at, updated_at
Donations
• donation_id (PK)
• donor_id (FK)
• donation_date, unit_ml
• blood_group, bag_id
• tested (yes/no), test_results (nullable)
• collected_by, notes
Inventory
• inventory_id (PK)
• bag_id (unique), blood_group
• component (whole blood / platelets / plasma)
• quantity_units, collection_date, expiry_date, status (available/issued/expired)
Requests (for hospitals/patients)
• request_id (PK)
• requester_name, hospital_name, contact
• blood_group, component, units_requested
• request_date, status (pending/approved/denied/fulfilled)
Users (system users / staff)
• user_id, username, password_hash, role (admin/staff/lab)
25
• email, created_at
Logs / Audit
• log_id, user_id, action, details, timestamp
E. Optional enhancements
• Mobile-friendly UI / PWA for staff on phones.
27
• RESTful API endpoints for external hospital systems to place requests.
• Barcode/QR generation for blood bag tracking.
• BI dashboard (charts) using [Link] for donation trends and inventory analytics.
• Two-factor authentication for admin accounts.
28
CHAPTER 5
RESULTS
29
30
31
32
CHAPTER :6 CONCLUSION AND FUTURE ENHANCEMENT
BIBLIOGRAPHY
Reference Books and Journals
1. PHP and MySQL Web Development
2. The Complete Reference: PHP
Online References
• [Link]
• [Link]
33
• [Link]
34
35
36