Uploaded by ramadanjad76

database

advertisement
Hospital Blood donation system jan 29 2022
SQL Project jan 29 2022
Jad Ramadan
Page | 1
Hospital Blood
Donation System!
Introduction + Abstract :
A blood donation is a voluntary procedure that occurs when a person voluntarily donates blood.
The donation may be of whole blood or specific components, such as enzymes or plasma.
In the developed world, most people donate blood to a community supply. However, in some
countries, such as those in the US, regular donations are not possible due to the lack of
established supplies. Many people donate due to various reasons, such as social pressure and
charity.
Despite the many reasons that people donate, not enough potential donors actively donate.
However, this is reversed during disasters when blood donations increase, often creating an
excess supply that will have to be later discarded. In countries that allow paid donation some
people are paid, and in some cases there are incentives other than money such as paid time off
from work. People can also have blood drawn for their own future use (autologous donation).
Donating is relatively safe, but some donors have bruising where the needle is inserted or may
feel faint.
Charles Richard Drew (1904–1950) was an American surgeon and medical researcher. He
researched in the field of blood transfusions, developing improved techniques for blood storage,
and applied his expert knowledge to developing large-scale blood banks early in World War II.
This allowed medics to save thousands of lives of the Allied forces. As the most prominent
African American in the field, Drew protested against the practice of racial segregation in the
Hospital Blood Donation System
Hospital Blood donation system jan 29 2022
donation of blood, as it lacked scientific foundation, and resigned his position with the American
Red Cross, which maintained the policy until 1950.
In Resume, Blood banks collect, store and provide collected blood to the patients who are in
need of blood.
Page | 2
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.
Challenges + Solution+Objective+Actors
using the system
The major concern each hospital that takes care of blood donations 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 'Hospital
Blood Donation Management Database System”
It is mainly so hard and challenging to be able to track all of those without the need of a proper
system where everything is related throughout a proper and organized database system that will
facilitate the monitoring of every case of blood donation, transfusion and many more.
The 'Hospital Blood Donation Database 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. But this system will
be automated. 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 operate, recover and analyze all the information possible 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 not much man power is
not required , and that correlates with the purpose of the whole database course which is the clear
objective of this database
Hospital Blood Donation System
Hospital Blood donation system jan 29 2022
Study The Documents for the System
Page | 3
1. Blood Donor Info
BD_ID
BD_FirstName
BD_LastName
BD_Age
BD_Type
BD_Num
BD_Address
2. Blood Recepient Info
RC_ID
RC_FirstName
RC_LastName
RC_Type
RC_Num
RC_Adress
RC_Age
3. Blood Info
Bld_ID
BLD_Type
Hospital Blood Donation System
Hospital Blood donation system jan 29 2022
BLD_Status
4. Hospital City
Page | 4
City_ID
City_Name
Data Dictionary
1. Blood Donor
bd_id
bd_FirstName
bd_LastName
bd_type
bd_Num
bd_Age
bd_adress
Int
varchar
varchar
char
int
int
2. Blood Recepient
RC_ID
int
RC_FirstName
varchar
RC_LastName
varchar
RC_Type
char
RC_Num
int
RC_Adress
varchar
RC_Age
int
3. Blood
Bld_Id int
Bld_type
char
Bld_status char ( contaminated / safe)
Hospital Blood Donation System
Hospital Blood donation system jan 29 2022
Page | 5
4. Hospital City
City_id
int
City_Name varchar
Normalization:
1nf
bd_id,bd_FirstName,bd_LastName,bd_type,bd_Num,bd_Age
bd_adress, bd_id,bd_FirstName,bd_LastName,bd_type,bd_Num,bd_Age
bd_adress,
RC_ID,RC_FirstName,RC_LastName,RC_Type,RC_Num,RC_Adress
RC_Age,Bld_id,Bld_type,Bld_status,City_Id,City_Name
2nf , 3nf , 4f
( No duplicates + No calculations + No composition)
Blood Donor {
bd_id,bd_FirstName,bd_LastName,bd_type,bd_Num,bd_Age
bd_adress}
Recepient {
RC_ID,RC_FirstName,RC_LastName,RC_Type,RC_Num,RC_Adress
RC_Age }
Blood {Bld_Id,Bld_type,Bld_Status}
Hospital Location {City_id,City_Name}
Relations:
Hospital Blood Donation System
Hospital Blood donation system jan 29 2022
Page | 6
Blood Donor {
bd_id(PK),bd_FirstName,bd_LastName,bd_type,bd_Num,bd_Age
bd_adress}
Recepient {
RC_ID(PK),RC_FirstName,RC_LastName,RC_Type,RC_Num,RC_Adr
ess,RC_Age }
Blood {Bld_id(PK),Bld_type,Bld_Status}
Hospital Location {City_id(PK),City_Name}
Table creation code:
CREATE TABLE Blood_Donor
( bd_ID int NOT NULL,
bd_Firstname varchar(max) NOT NULL,
bd_Lastname varchar(max) NOT NULL,
bd_age varchar(max),
bd_type varchar(10),
City_ID int NOT NULL
CONSTRAINTPRIMARY KEY (bd_ID)
);
-CREATE TABLE Recipient
( RC_ID int NOT NULL,
RC_Firstname varchar (max) NOT NULL
RC_Lastname varchar (max) NOT NULL
RC_age varchar(max),
City_ID int NOT NULL,,
Hospital Blood Donation System
Hospital Blood donation system jan 29 2022
CONSTRAINT PRIMARY KEY RC_iD
);
Page | 7
CREATE TABLE Hospital_Location
( City_ID int NOT NULL,
City_name varchar(max) NOT NULL,
CONSTRAINT PRIMARY KEY (City_ID)
);
-CREATE TABLE Blood
( Bld_id int NOT NULL,
Bld_type varchar(10) NOT NULL,
Bld_status varchar(10) NOT NULL,
CONSTRAINT PRIMARY KEY (Bld_id)
);
Hospital Blood Donation System
Download