Adobe Scan 17 Aug 2023
Adobe Scan 17 Aug 2023
ABSTRACT
This project alms to develop a Blood Bank Management System. A Blood Bank Management
System can be used In any cllnlc, 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.
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. Th is 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 w ill hoard, operate, recover and ana lyse information concerned with
the administrative and inventory management with in a blood bank. This system is developed
in a manner that it is manageable, t ime effective, cost effective, flexible and much man power
is not required.
ER DIAGRAM
INFORMATION OF ENTITIES
1. Blood_Donor:
(Attributes - bd_JD, bd_name, bd_sex, bd_age, bd_Bgroup,
bd_reg_date, bd_phNo}
The donor is the person who donates blood, on donation a donor id (bd_lD) is
generated and used as primary key to identify the donor information. Other
than that name, age, sex, blood group, phone number and registration dates
will be stored in database under Blood_Donor entity.
2. Recipient:
(Attributes - reci_/0, reci_name, reci_age, reci_Bgrp,
reci_Bqnty, reci_sex, reci_reg_date, reci_phNo}
The Recipient is the person who receives blood from blood bank, when blood
is given to a recipient a recipient ID {reci_lD) is generated and used as primary
key for the recipient entity to identify blood recipients information. Along with
it name ,age, sex, blood group {needed), blood quantity(needed), phone
number, and registration dates are also stored in the data base under recip ient
entity.
3. BB_ Manager:
(Attributes - m_lD, m_Name, m_phNo)
The blood bank manager is the person who takes ca re of the ava ilable blood
samples in the blood bank, he is also responsible for handling blood requests
from recipients and hospitals. Blood manager has a unique identification
number (m_lD) used as primary key along with name and phone number of
blood bank manager will be stored in data base under BB_Manager entity.
4. Recording_Staff :
(Attributes - reco_/0, reco_Name, reco_phNo}
The recording staff is a person who registers the blood donor and recipients
and the Recording_Staff enitity has reco_lD which is primary key along with
recorder's name and recorder's phone number will also be stored in the data
base under Recording_Staff entity.
5. BloodSpecimen :
(Attributes -specimen_number, b_group, status)
In data base, under Blood Specimen entity we will store the information of
blood samples which are available in the blood bank. In this entity
specimen_number and b_group together will be primary key along with status
attribute which will show if the blood is contaminated on not.
6. Diseasefinder :
(Attributes - dfind_/0, dfind_name, dfind_PhNo}
In data base, under DiseaseFinder entity we will store the information of the
doctor who checks the blood for any kind of contaminations. To store that
information we have unique identification number (dfind_lD) as primary key.
Along with name and phone number of the doctor will also be stored under
same entity.
7. Hospital_lnfo :
(Attributes - hosp_lD, hosp_name, hosp_needed_Bgrp,
hosp_needed_Bqnty)
In the data base, under Hospital_lnfo entity we will store the inform ation of
hospitals. In this hosp_lD and hosp_needed_Bgrp together makes the primary
key. We will store hospital name and the blood quantity required at the
hospital.
8. City:
(Attributes- city_lD, city_name)
This entity will store the information of cities where donors, recipients and
hospitals are present. A unique identification number (City_lD) will be used as
primary key to identify the information about the city. Along with ID city
names wil l also be stored under this entity.
Donor Tabl e:
• The relationship with Recording staff and Donor is 1 to many. That's
why primary key of Recording staff is used as a foreign key In Donor.
• The relationship with City and Donor is 1 t o many. That's why
primary key of City Is used as a foreign key In Donor.
Recipient Tabl e:
• The relationsh ip with Recording staff and Blood Recipient is 1 to
many. That's why primary key of Recording staff is used as a for,eign
key in Blood Recipient.
• The relat ionship with City and Blood Recip ient is 1 to many. That's
why primary key of City is used as a foreign key in Blood Recipient.
• The relationship with Blood Bank Manager and Blood Recipient is 1
to many. That's why primary key of Blood Specimen is used as a
foreign key in Blood Recipient.
City Table:
• The relationship between City and Recipients, Donor, Hospital Info
are all of 1 to many. So that's why primary key of City ls used as a
foreign key in Recipients, Donor and Hospital info.
• The relationship with City and Hospital info is 1 to ma ny. That's why
primary key of City is used as a fore ign key in Hospital info.
• The relationship with Blood Bank Manager an d Hospit al info is 1 to
many. That's why primary key of Blood Bank manager is used as a
foreign key in Hospital info.
Hospital Info
l·l#ii#ihHMM l·ll!Hld!■ Hosp_rd (111<1
SpeCimen_No (PK) Dflnd_td (PKI
BJtl)(Pl<) Hosp_Name
Olttts • Dflnd_name
Status Hosp_nttded_Bcrp (Pl()
Dfind_PhNo
M_ld (FKI GivH Order\ to Hosp_needed_qnty
J
Oty_id (FKI
Oflrid_ld (F K)
mmmall
uwlz:~h
M_ld (FK)
Rec;1_1d {PIC)
Ll-csln Hosp_PhNo
Recl_name • Clty_ld (PK)
Recl_age In
M_ld (PK) Clty_Name
~ ~ to Recl_sei 1!%111111
l
M_Name
Recl_bgrp Bd_ld(Pll:I
M_PhNo
Re(;I_Bqnty Bd_Name
LhlH In
Recl_reg_date Bd_ase
Realrds Reco_ld (FKI Bd_sex
lil~!·ll·IBi!II Oty_ld (FKI Bd_bQrp
Reco_ld (PK)
M_ld(FK) Bd_rl'gdalP
Reco_Name ~,tsters w,u, Reco_,d (f l()
Reco_PhNo
Clty_ld (FK)
NORMALIZATION
Normalization Rule
Normalization rules are divided into the fo llowing normal forms:
1. First Normal Form
2. Second Normal Form
3. Third Normal Form
{M_id} = >{m_name}
{M_id} = > {m_phNo} (functional dependency exists}
- Sample Query - 1 -
CREATE VIEW Blood_Recipient_SameBGrp AS
select Blood_Donor. bd_name,Recipient. reci_name, reco_ Name from
Record ing_Staff
inner join Blood_Donor on Recording_Staff.reco_lD =
Blood- Donor.reco- ID
inner join Recipient on Recording_Staff.reco_lD = Recipient.reco_lD
where Blood_Donor.bd_Bgroup = Recipient. reci_Brgp and
Blood_Donor.bd_reg_date = Recipient.reci_reg_date;
select* from Blood_ Recipient_ SameBGrp;
Output:
-- Sample Query - 2 --
Select specimen_number,b_group from BloodSpecimen, DiseaseFinder
WH ERE BloodSpecimen.dfind_lD= DiseaseFinder.dfind_lD AND
dfind_name='shivam' AND status=1;
Output:
1013 B-
-- Sample Query - 3 --
se,lect BB_ Manager.M_ id,mName,Recipient.reci_name,
Recipient.reci_ Brgp,BloodSpecimen.b _group from
BB_ Manager,Recipient ,BloodSpecimen
where Recipient.M_id = BloodSpecimen.M_id and Recipient.reci_Brgp =
BloodSpecimen.b_group and Recipient.M_id = BB_Manager.M_id
and status = 1;
Output:
-- Sample Query - 4 --
Select bd_l D,bd_name,reci_lD ,reci_name FROM
Blood_ Donor, Recipient
WH ERE bd_Bgroup=reci_ Brgp AND Blood_Donor.City_lD=
Recipient.City_lD;
Output:
Output:
11