Problem Statement
Problem Statement
PROBLEM STATEMENT
This project aims to build a web application that will facilitate the interaction
between the doctors and patients .This system will maintain the data base of
the patients that indicates the recovery of the previous treatment that builds a
reference to the upcoming doctors which helps for the prescription and fetch
the details of the patients.This medicard will also enables the particulars of the
upcoming doctors prescription in the web application.
2
DATA REQUIREMENTS
ENTITIES
Patient
Doctor
Hospital
ATTRIBUTES
Patient
1.mid
2.pname
3.ps
4.pd
5.pme
6.hid
7.did
Doctor
1.mid
2.did
3.dname
Hospital
1.hid
2.hname
3.haddress
3
ER Diagrams
dname
did mid
Doctor
Treats Present in
pme did
hid
pd ps
hid hname haddress
4
Patient:
mid pname ps pd
Doctor:
Hospital:
Treats:
NORMALIZATION
First Normal Form:
A table is said to be in First Normal Form if and only if all attributes have atomic
values.
Patient:
mid pname,ps,pd,pme,hid,did
Doctor:
did mid,dname
Hospital:
did did,hname
Treats:
did hid,pme
Patient:
mid pname,ps,pd,pme,hid,did
Doctor:
did mid,dname
Hospital:
hid did,hname
Treats:
did hid,pme
Patient:
mid pname,ps,pd,pme,hid,did
Doctor:
did mid,dname
Hospital:
hid did,hname
Patient:
mid pname,ps,pd,pme,hid,did
Doctor:
did mid,dname
Hospital:
hid did,hname
Patient:
mid pname,ps,pd,pme,hid,did
Doctor:
did mid,dname
Hospital:
hid did,hname
Doctor table:
Create table doctor (did int, mid int, dname varchar2(50), primary key(did),
foreign key(mid) references patient(mid));
Hospital table:
7.SAMPLE DATA
Patient:
insert into patient values (100000 , ’Rakesh’ ,’Male’ ,’HeartFailure’
,’Digoxin’, 200000,300000);
Doctor:
Hospital:
insert into hospital values(300,’Ramesh Hospitals’,’Vijayawada’);