Advanced Dbms
Advanced Dbms
Page | 1
BLOOD DONATION SYSTEM
1. INTRODUCTION
In our previous part of this project we tried to see the background information, the
objective, the drawbacks, system definition and requirement collection and analysis for our
blood bank management system. In this one, we will see the process of constructing an ER
model.
Since in the process of designing our ER model we discover a lot of new things that we
didn’t discover in our first project, we started this document with our modified user view
and modified requirement collection and analysis part. Then we will list our entity types
along with their descriptions and attributes. We will also see the relationship type that we
have between this entity types. Then we will classify our attributes in to primary, candidate
and alternate keys. We will also try to list the attribute domains. Next we will try to see if
any generalization or specialization method I used. At last the last part of our ER model will
be attached.
Page | 2
BLOOD DONATION SYSTEM
2. OBEJECTIVES
2.1 GENERAL OBEJECTIVE
The main purpose of this system is to keep an organize records management of blood
inventory. It would be a great help in the properly monitoring of blood available in the blood
bank and for easy processing of blood request.
Page | 3
BLOOD DONATION SYSTEM
3. IDENTIFING PROBLEMS
There are so many drawbacks on the existing system and because of this drawbacks the
users of blood donation system demand for a better system to emerge or take place. What
are the reasons or causes for this new system? The answer is easy, it is because of this
problems:
Patients facing difficulty in tracing their donors
Managers facing difficulty in managing blood bank accounts
Addressing the efficiency of doing transactions in Hospitals
The existing system is time consuming
No inquiry for directly contacting Blood bank
User view of Blood bank information is not location dependent.
Donors can't easily donate their blood near Blood bank Location
Patient can’t easily request for blood near Blood bank location
There is no online system that connects donors to patients
The donation is recorded in paper, less secured and it can easily get lost
Summary report that contains all records including blood donation, blood request
and blood stock for the administrator is hardly accessible or even exists
Page | 4
BLOOD DONATION SYSTEM
1. Between donor and blood bank: the relationship between this two is many to many
because a donor can donate at more than one blood bank and a blood bank can accept
blood from many donors.
2. Between blood bank and hospital: the relationship between this two is many to many
because blood bank can supply to many hospitals and a hospital can accept blood from more
than one blood bank too.
3. Between hospital and nurse: here there would be more than 2 relationships, because as I
said, there are two kinds of nurses. One that connects with the blood bank and one that
connects with the hospital. The former is one to many because blood bank can hire so many
nurses but a nurse works at one and only one blood bank organization (assuming that she
works full time). The latter is also one to many because can a hospital can hire so many
nurses but a nurse works at one and only one hospital (assuming that she works full time
again).
Page | 5
BLOOD DONATION SYSTEM
Hospital name
Hospital type
Hospital address
Hospital contact number
Hospital email
Nurse ID
3. Donors
Donor ID
Donor’s full name
Donor’s medical information
Donor’s gender
Donor’s address
Donor’s contact number
Donor’s DOB
Donor’s age
Donor’s health status
Blood bank ID
Donor’s blood type
Donor’s weight
Donor’s pulse rate
Donor’s blood pressure
4. Nurse
Nurse ID
Nurse’s full name
Nurse’s gender
Nurse’s qualification
Nurse’s address
Nurse’s contact information
Nurse’s DOB
Nurse’s age
Patient Id
Donor ID
Attribute constraints:
Age (nurse, donor): 0-9/age>100
Gender (nurse, donor, and patient): ‘F’ or ‘M’
Blood type (donor): ‘A’ or ’B’ or ’O’ or ’AB’
Health status(donor): ‘healthy’ or ’not healthy’
Keys
1. Candidate keys (a specific type of field in a relational database that can identify each unique
record independently of any other data)
Blood bank:
blood bank Id
blood bank name
blood bank contact number
hospital
hospital name, hospital address
hospital name, hospital contact information
donor
donor ID
donor’s full name, donors contact information
donor’s full name, donors address
Nurse
Nurse ID
Nurse’s full name, nurse’s contact information
Nurse’s full name, nurse’s address
2. Primary keys (a field in a table which uniquely identifies each row/record in a database
table)
Blood bank:
blood bank Id
hospital
hospital name, hospital contact information
donor
donor ID
Nurse
Nurse ID
Page | 7