You are on page 1of 27

PSG COLLEGE OF ARTS AND SCIENCE

DEPARTMENT OF COMPUTER
SCIENCE
III BSC CS ‘B’

Blood Donar
System

GUIDED BY, NAME : HARISH BABU A


NAME : Ms MOHANA PRIYA D ROLL NO : 18BCM518
MCA.,
DESIGNATION : ASSISTANT
Table of Contents
Introduction Table design
Module
description Future plans

Technology Stack Bibilography

Existing/Proposed Demo video

DFD and ER Conclusion


Introduction
Blood is the most precious gift that
anyone can give to another person.
A decision to donate your blood can
save a life,So crisis like covid-19
and in other emergency situation,
blood becomes demand and it may
result in patients’ death.So as a
human being in this world we
should donate blood.
Problem :

In some blood banks and in some blood collection


camps they collect blood and they sell it in
emergency times.Those people make the blood
donation process as a commercial business.But this
commercial business is hidden to blood donars who
donates blood.

Solution :

To avoid this business,my solution is make the


relationship of the blood donars with the patient
through online.This avoid community collection of
blood.So in hospitals and in blood banks they are not
able to sell blood for money because here web portal
is the intermediate for both the blood donar and the
patient;Important thing we don’t not collect money
for this relationship;
Modules
Donar Side Blood needy Side
 Admin – Default in Django  Search
 Signup (with validation)  Report donar
 Login
 My page :
 Edit profile
 Change password
 My donations
Module description :
SIGNUP : In signup module, to maintain a proper website we have to store a
proper data from the user so for that validation plays a key role.So the basic validation such as
uniqueness of email field,phone number etc., are done in this site

My Page : Here donar is able to store his donation status,update his profile,deletion of his
status.

Search : The most important part of this site as it connects needy and the blood donars.The
procedure for the creation of this relationship is the signup details are stored in the backend when
a new donar is signed up;Now in the search page the filtering is done on the basis of
country,state, district and blood group.The needy has enter those values and he/she will get the
details of the registered donars who match with the needy’s specified country,state,district,blood
group.

Report : Here the needy is able to report the donar and if the donar is reported by 10 different
needies,then his profile will automatically be deleted from the site.
Technology Stack
Front end Back end
Existing
Over
Proposed
Existing Proposed
The existing system has the search To avoid this in our site if the donar
option . But donar is able to donate donates his blood and for 90 days
his/her blood once in a considerable his/her name is not shown in the
amount of time.So if any needy see the filtering results.Only thing is the donar
donar data in the filtering results and has to enter his donation details.On the
contact him/her before the considerable 91st day,the donar details is
amount of time completed then it will be automatically shown in the searching
a disturbance to him/her. results.
Existing Proposed
In the existing system ,there is a report But in our site the report is added when
option to report the donar if the donar is someone reports the donar.After 10
not responding or has given wrong reports from 10 different donars
number . But here a needy can report a ((i.e)one person can report a donar only
donar more than once.So there is a once ),the donar account is
chance for misusing this option by some automatically deleted.
persons.
Existing Proposed
But in our site, the report is added only
In the existing model,during report after the verification of the reported mail
generation there is no process to verify id .This is is done by sending the otp to
the reporter who reports the donar.So the reporter mail id and if the reporter
people will definitely misuse the report enters the correct otp of what the site
option by giving the wrong mail id have sent then the report is added
Data flow
diagram
store details

Blood Enter /edit the donar details

Donar/Admin Retrieve details

Blood
Donars
SQL
System Database
Enter the data to search Send the filtered data
Blood needy

0-Level DFD
1-Level
Data Flow Diagram
Blood donar / Enter credentials
admin Login
Process

After donar /admin logged in


Store data
Creation of a new donar
Donar
Donar Retrieve data Table
process

Enter donation data Store data


(logged in donars / admin only)
Donation Donation
process Retrieve data Table

Blood needy Enter searching data


/admin search Retrieve searched results
(searching is for site users only)
process

Report donar Store report


Report
Report
table
process Retrieve report
Contact donar
(admin only)
ER
diagram
U
availability

U
donar_name U
patient_name

covid
U
blood_group U
hospital_name

U
landline U
mobile sU
location

U
country
Many One
Donar donate Donation
U
state
U
password
U id
user

U
district U
user_name

U
email_id sU
date sU
donation_type

U
city
U id
user U
detailed_info
sU
issue

U id
user
Many One
is reported Report

U
reporting_mail U
reported_person_name U
reported_person_mobile
Table
Design
Table : Donar

Field Name Data Type Size Constraint Description

user_id Integer -- Primary key Id of the donar

full_name Varchar 50 Not null Name of the donar

blood_group Varchar 20 Not null Blood group of the donar

mobile Varchar 10 Unique , Not null Mobile number of the donar

landline Varchar 10 Unique, Landline number of the donar


Null,Blank

country Varchar 30 Not null Country of the donar

state Varchar 30 Not null State of the donar


Field Name Data Type Size Constraint Description

district Varchar 30 Not null District of the donar

city Varchar 30 Not null City of the donar

email Email field 50 Unique , Not null Email id of the donar

user_name Varchar 20 Unique , Not null User_name of the donar

password Varchar 50 Not null Password of the donar

availability Varchar 5 Default=“A” Availability of the donar

covid Varchar 30 Default=“Unknown” It indicates whether the donar is


the covid recovered person or
not
Table : Donation

Field Name Data Type Size Constraint Description

user_id Integer -- Foreign key Id of the donar

date Date field -- Not null Date on which blood is


donated

patient_name Varchar 50 Not null Name of the pateint who is


donated

hospital_name Varchar 50 Not null Hospital name where the blood


is donated

location Varchar 50 Not null Location of the hospital

donation_type Varchar 50 Default = “b” Type of donation such as blood ,


rbc , plasma , platelets
Table : Report

Field Name Data Type Size Constraint Description

user_id Integer -- Foreign key , Null Id of the donar

reporting_mail Email field -- Not null Email id of the person who


reported the donar

reported_ Varchar 50 Not null Donar who is reported


person_name

reported_ Varchar 10 Not null Mobile number of the donar who


person_mobile is reported

issue Varchar 20 Not null Reason for reporting the donar

detailed_info Varchar 20 Not null Detailed reason for reporting the


donar
Future Plans

Sending
notification to all Verified donar Shows blood
Forgot password
donars during during signup request in the
the crisis home page and
update
automatically
once in a day
Bibilograph
y
Front end :

https://www.w3schools.com/
bootstrap4/

Backend :

https://docs.djangoproject.com/en/
3.1/
Demo video
Link :
https://
drive.google.com/file/d/1LVz
QQc1W2VmzUA3xe_mXvsD
Zr96KGglG/view?usp=drives
dk
Conclusion :
In the conclusion I would like to mention the thing in this project which stressed me a
lot.The thing is LOGIN module and I have searched a lot in the internet but I could not
get what I need.Atlast it ended up very simply but before I found out I thought I need to
write upto 20lines of code to complete the login module but in that case Django helped
me to complete the coding within 5 to 6 lines.This is because in django we have
sessions dictionary which is in the request object which is to store the things which we
need to access wherever we want in the entire program.So i used this sessions by
storing the login credentials(ie., email,password here ) in it after validating those
credentials and if I want to retrieve the user data after user logged in , i get the
credentials from the sessions and retrieve the user’s data easily from the database by
writing the query using the credentials. Likewise Django has helped me a lot
throughout my entire project to simplify my coding
Thank you!
Donate blood !
Save life !!

You might also like