Professional Documents
Culture Documents
PROJECT ASSOCIATES
PROJECT GUIDES
2022-2023
Bapuji Institute of Engineering & Technology
Department of Computer Science and Engineering
Davanagere - 577004
Bapuji Institute of Engineering and Technology
Davangere -577004
CERTIFICATE
This is to certify that MAYUR A KASAL and SAGAR K R bearing USN 4BD20CS054 and
4BD20CS082 respectively of Computer Science and Engineering department have satisfactorily
submitted the mini project report entitled “BLOOD BANK MANAGEMENT SYSTEM” for DBMS
LABORATORY WITH MINI PROJECT (18CSL58). The report of the mini project has been
approved as it satisfies the academic requirements in respect of mini project work prescribed for the
year 2022-2023.
Guide Co-Guide
(2)
ACKNOWLEDGEMENT
We express our sincere thanks to our resourceful guides Dr. Gururaj T and Prof.
Chandrashekar M V for giving us constant encouragement, support and valuable guidance
throughout the course of project without whose guidance this project would not have been
achieved.
We express whole hearted gratitude to Dr. Nirmala C R, H.O.D of Computer Science &
Engineering Department. We wish to thank her for making our task easy by providing her
valuable help and encouragement.
We also express our whole hearted gratitude to our principal, Dr. H B Aravind for his moral
support and encouragement.
We would like to extend our gratitude to all staff of Computer Science and Engineering
Department for their help and support. We have benefited a lot from the feedback, suggestions
given by them.
We would like to extend our gratitude to all my family members and friends especially for their
advice and moral support.
MAYUR A KASAL
4BD20CS054
SAGAR K R
4BD20CS082
VISION AND MISSION OF THE INSTITUTE
Vision
To be centre of excellence recognized nationally and internationally, in distinctive areas of
engineering education and research, based on a culture of innovation and invention.
Mission
BIET contributes to the growth and development of its students by imparting a board-
based engineering education and empowering them to be successful in their chosen field
by inculcating in them positive approach, leadership qualities and ethical values.
Vision
To be a centre of excellence by imparting state-of-the-art technology in the field of
Computer Science and Engineering, thereby enabling students to excel professionally
and be ethical.”
Mission
• Adapting best class teaching and learning techniques that cultivates questioning and
reasoning culture among the students.
• Establishing industry institute relationship to bridge the skill gap and make then
PEO1 To apply skills acquired in the discipline of Computer Science and Engineering for
solving societal and industrial problems with apt technology intervention
Analyze and develop solutions for problems that are complex in nature by
PSO1 applying the knowledge acquired from the core subject of this program
To develop secure, scalable, resilient and disturbed applications for industry and
PSO2 societal requirements
To learn and apply the concepts and construct of emerging technologies like
PSO3 Artificial Intelligence, Machine learning, Deep learning, Big data analytics, IOT,
Cloud computing etc. for any real time problems.
3. Course Outcomes(COs):
This project aims to develop a Blood Bank Management System. A Blood Bank Management System
can be used in any clinic, hospital, labs or any emergency situation which requires blood units for
survival. Our system can be used to find required type of blood in emergency situations from either
blood bank or even blood donors. Current system uses a grapevine communication for finding blood
in cases of emergency, may it be by a donor or blood bank. The intentions of proposing such a system
is to abolish the panic caused during an emergency due to unavailability of blood.
CONTENTS
CHAPTERS Page No
CHAPTER 1: INTRODUCTION
1.1 Introduction 1
1.3 PHP 4
1.5 Obiectives 4
CHAPTER 3- DESIGNS
3.1 ER Diagram 7
3.2 Description 8
CONCLUSION 27
REFERENCES 28
LIST OF FIGURES :
LIST OF ACRONYMS
CHAPTER 1
INTRODUCTION
1.1 INTRODUCTION
Blood banks collect, store and provide collected blood to the patients who are in need of blood.
The people who donate blood are called ‘donors’. The banks then group the blood which they
receive according to the blood groups. They also make sure that the blood is not contaminated.
The main mission of the blood bank is to provide the blood to the hospitals and health care
systems which saves the patient’s life. No hospital can maintain the health care system without
pure and adequate blood.
The major concern each blood bank has is to monitor the quality of the blood and monitor the
people who donates the blood, that is ‘donors’. But this a tough job. The existing system will not
satisfy the need of maintaining quality blood and keep track of donors. To overcome all these
limitations we introduced a new system called ‘Blood Donation Management System’.
The ‘Blood Bank Management System’ allows us to keep track of quality of blood and also keeps
track of available blood when requested by the acceptor. The existing systems are Manual
systems which are time consuming and not so effective. ‘Blood Bank Management system’
automates the distribution of blood. This database consists of thousands of records of each blood
bank.
By using this system searching the available blood becomes easy and saves lot of time than the
manual system. It will hoard, operate, recover and analyse information concerned with the
administrative and inventory management within a blood bank. This system is developed in a
manner that it is manageable, time effective, cost effective, flexible and much man power is not
required
A database management system (DBMS) refers to the technology for creating and managing
databases. DBMS is a software tool to organize, create, retrieve, update and manage data in a
database. Databases and database technology have a major impact on the growing use of
computers. It is fair to say that databases play a critical role in almost all areas where computers
are used including business, electronic, commerce, engineering, medicine, genetics, law,
education, and library science.
2
BLOOD_BANK MANAGEMENT SYSTEM
details of data representation and storage. DBMS can supply an abstract view of the data for
insulating application code from such facts.
Efficient data access: DBMS utilizes a mixture of sophisticated concepts and techniques for
storing and retrieving data competently, and this feature becomes important in cases where the
data is stored on external storage devices.
Data integrity and security: If data is accessed through the DBMS, the DBMS can enforce
Data administration: When several users share the data, integrating the administration of data
can offer major improvements. Experienced professionals understand the nature of the data being
managed and can be responsible for organizing the data representation to reduce redundancy and
make the data to retrieve efficiently.
/ or Internal.
DBMS: Software that allows users to create and manipulate database access.
language which is used to develop dynamic and interactive web applications and also used as a
general-purpose programming language.
3
BLOOD_BANK MANAGEMENT SYSTEM
PHP is the most popular and widely used server side scripting language for web development.
It is used to make the Dynamic pages in websites. Rasmus Lerdorf was the creator of PHP in
1995. PHP codes are embedding in HTML source codes for making the page dynamic. PHP
can deal with most of the requirements in web development like Database, File handling, String
operations, Arrays, Graphics, File Uploads, Data processing etc. PHP can be used in any
operating system with a web server Supports PHP. Apache web server is one of the popular
web server dealing with PHP + MySQL. Moreover PHP is absolutely free to use.
1.5 OBJECTIVES
• Blood banking is the process that takes place in the lab to make sure that donated blood, or
blood products, are safe before they are used in blood transfusions and other medical
procedures. Blood banking includes typing the blood for transfusion and testing for
infectious diseases.
• A blood bank collects, separates, tests and stores blood until a patient needs it. If you've
donated blood before, you've been part of the blood banking process
Despite the immense technological advancement, blood bank systems use manual date for
storing valuable data. Even it is time consuming to retrieve any data if required. Consequently,
one of the major issues in blood bank systems, as talked in many articles and research papers
it has lack of data security. People doubt whether their personal information and medical
records are safely secured or not. Therefore our project aims to develop blood bank
management system along with database security and encryption.
Admin/User has to login first. All the personal details of the person is recorded and stored in the
database. Admin can search for any personal details. He can retrieve any donation/receive
history. They can even have the complete information about the stock present in the blood bank.
Apart from this, we will be using concepts of database encryption to make sure that the person’s
information is kept secure and confidential. This will help us keep their donation and receive
records protected from any threats from individuals with potentially malicious intentions or
unforeseen hazards to the security of the data.
CHAPTER 2
REQIUREMENT SPECIFICATION
• Language : PHP
• Database : My SQL
• Software : APACHE
CHAPTER 3
DESIGNS
3.2 DESCRIPTION :
The ER Model figure shows the proposed system. It defines the conceptual view of the
database. It works around real-world entities and the associations among them .At view level,
the ER model is considered a good option for designing databases .So , let’s see each entity
* User:
The entity stores the information about admin to register with the user ID and password.
The attributes are username,usr_password
* Person:
This entity is used to store all the personal details of the donor or receiver.
The attributes are p_id , p_name ,p_address ,p_phone,p_bloodgroup, p_gender, p_dob,
p_medissue.
* Donation:
This entity is used to record the date and time along with quantity of blood donted by a
person. Personal details is accessed using person ID.
The attributes are p_id, d_date, d_time, quantity.
* Receive:
In this entity date and time, quantity of blood received along with hospital details are
recorded.
The attributes are r_date, p_id, quantity, r_hospital,
* Stock:
Here we can check availability of each blood group blood.
The attributes are s_blood_group, quantity.
8
CS&E Dept ,B.I.E.T, Davanagere
BLOOD_BANK MANAGEMENT SYSTEM
For each regular (strong) entity type E in the ER schema, create a relation R that includes all
the simple attributes of E. Include only the simple component attributes of a composite
attribute. Choose one of the key attributes of E as the primary key for R. If the chosen key of
E is a composite, then the set of simple attributes that form it will together form the primary
key of R. If multiple keys were identified for E during the conceptual design, the information
describing the attributes that form each additional key is kept in order to specify secondary
(unique) keys of relation R. Knowledge about keys is also kept for indexing purposes and other
types of analyses.
For each weak entity type W in the ER schema with owner entity type E, create a relation
R and include all simple attributes (or simple components of composite attributes) of was
attributes of R. In addition, include as foreign key attributes of R, the primary key attribute(s)
of the relation(s) that correspond to the owner entity type(s); this takes care of mapping the
identifying relationship type of W. The primary key of R is the combination of the primary
key(s) of the owner(s) and the partial key of the weak entity type W, if any. If there is a weak
entity type E2 whose owner is also a weak entity type E1, then E1 should be mapped before E2
to determine its primary key first.
For each binary 1:1 relationship type R in the ER schema, identify the relations S and T
that correspond to the entity types participating in R. There are three possible approaches:
1. The foreign key approach.
2. The merged relationship approach, and
The first approach is the most useful and should be followed unless special conditions exist, as
we discuss below.
9
CS&E Dept ,B.I.E.T, Davanagere
BLOOD_BANK MANAGEMENT SYSTEM
For each regular binary 1:N relationship type R, identify the relation S that represents the
participating entity type at the N-side of the relationship type. Include as foreign key in S the
primary key of the relation T that represents the other entity type participating in R; we do this
because each entity instance on the N-side is related to at most one entity instance on the 1-side
of the relationship type. Include any simple attributes (or simple components of composite
attributes) of the 1:N relationship type as attributes of S.
10
CS&E Dept ,B.I.E.T, Davanagere
BLOOD_BANK MANAGEMENT SYSTEM
For each binary M:N relationship type R, create a new relation S to represent R. Include as
foreign key attributes in S the primary keys of the relations that represent the participating
entity types; their combination will form the primary key of S. Also include any simple
attributes of the M:N relationship type (or simple components of composite attributes) as
attributes of S.
Notice that we cannot represent an M:N relationship type by a single foreign key attribute in
one of the participating relations (as we did for 1:1 or 1:N relationship types) because of the
M:N cardinality ratio; we must create a separate relationship relation S.
For each multivalued attribute A, create a new relation R. This relation R will include an
attribute corresponding to A, plus the primary key attribute K—as a foreign key in R—of the
relation that represents the entity type or relationship type that has A as a multivalued attribute.
The primary key of R is the combination of A and K. If the multivalued attribute is composite,
we include its simple components.
For each n-array relationship type R, where n > 2, create a new relation S to represent R. Include
as foreign key attributes in S the primary keys of the relations that represent the participating
entity types. Also include any simple attributes of the n-array relationship type (or simple
components of composite attributes) as attributes of S. The primary key of S is usually a
combination of all the foreign keys that reference the relations representing the participating
entity types. However, if the cardinality constraints on any of the entity types E participating
in R is 1, then the primary key of S should not include the foreign key attribute that references
the relation E ‘corresponding to E.
11
CS&E Dept ,B.I.E.T, Davanagere
BLOOD_BANK MANAGEMENT SYSTEM
12
CS&E Dept ,B.I.E.T, Davanagere
BLOOD_BANK MANAGEMENT SYSTEM
13
CS&E Dept ,B.I.E.T, Davanagere
BLOOD_BANK MANAGEMENT SYSTEM
14
CS&E Dept ,B.I.E.T, Davanagere
BLOOD_BANK MANAGEMENT SYSTEM
15
CS&E Dept ,B.I.E.T, Davanagere
BLOOD_BANK MANAGEMENT SYSTEM
CHAPTER 4
IMPLEMENTATION CODE
<?php
$host = "localhost";
$user = "root";
$password = '';
$db_name = "blood_bank";
Create commands:
16
CS&E Dept ,B.I.E.T, Davanagere
BLOOD_BANK MANAGEMENT SYSTEM
Insert Commands:
INSERT INTO `stock` (`s_blood_group`, `s_quantity`) VALUES
('A+', 0),
('A-', 0),
('AB+', 0),
('AB-', 0),
('B+', 0),
('B-', 0),
('O+', 0),
('O-', 0);
('SuperAdmin', '12345678'),
('test_user', 'qwertyuiop');
18
CS&E Dept ,B.I.E.T, Davanagere
BLOOD_BANK MANAGEMENT SYSTEM
return 1;
}else{
return 3;
}
}
19
CS&E Dept ,B.I.E.T, Davanagere
BLOOD_BANK MANAGEMENT SYSTEM
CHAPTER 5
SNAPSHOTS
20
CS&E Dept ,B.I.E.T, Davanagere
BLOOD_BANK MANAGEMENT SYSTEM
21
CS&E Dept ,B.I.E.T, Davanagere
BLOOD_BANK MANAGEMENT SYSTEM
22
CS&E Dept ,B.I.E.T, Davanagere
BLOOD_BANK MANAGEMENT SYSTEM
23
CS&E Dept ,B.I.E.T, Davanagere
BLOOD_BANK MANAGEMENT SYSTEM
24
CS&E Dept ,B.I.E.T, Davanagere
BLOOD_BANK MANAGEMENT SYSTEM
25
CS&E Dept ,B.I.E.T, Davanagere
BLOOD_BANK MANAGEMENT SYSTEM
26
CS&E Dept ,B.I.E.T, Davanagere
BLOOD_BANK MANAGEMENT SYSTEM
CONCLUSION:
The main purpose of our blood management system is to provide blood bank with easier way to
store and retrieve data and keep record of the availability of blood in blood bank.
After inserting the data to database, staff need not register of the same person again. They can
simply search for recorded data and retrieve them for future blood donation or receiving purpose
of that person.
In the nutshell, it can be summarized that the future scope of the project circles around maintaining
information regarding:
❖ The person can fix their donation schedule using online reservation for donation of blood.
❖ The person can search for availability of required blood in the local blood bank in the case
of emergency.
❖ The blood bank to store the details of the blood donated by person, like RBC, WBC,
platelet count etc.
The above mentioned points are the enhancements which can be done to increase the
applicability and usage of this project.
27
CS&E Dept ,B.I.E.T, Davanagere
BLOOD_BANK MANAGEMENT SYSTEM
REFERENCES
BOOKS:
1. Fundamentals of database systems,Ramez Elmasri and Shamkant B Navathe, 7th Edition,
2017 , Pearson.
2. Database management systems, Ramakrishnan, and Gehrke, 3rd Edition, 2014, McGraw Hill.
4. Silberschatz Korth and Sudharshan, Database System Concepts, 6th Edition, McGraw Hill,
2013.
LIST OF WEBSITES:
https://www.w3schools.com/
28
CS&E Dept ,B.I.E.T, Davanagere