0% found this document useful (0 votes)
57 views

Course Project On Data Base Management System: K.L.E Society's B.V.Bhoomaraddi College of Engg. & Tech. HUBLI-580031

The document describes a course project to create a hospital management database system. It includes entity relationship diagrams and schema definitions for tables to store information about jobs, doctors, patients, tests, operations, wards and bills. Sample data is inserted into the tables.

Uploaded by

vishal_pshetti
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views

Course Project On Data Base Management System: K.L.E Society's B.V.Bhoomaraddi College of Engg. & Tech. HUBLI-580031

The document describes a course project to create a hospital management database system. It includes entity relationship diagrams and schema definitions for tables to store information about jobs, doctors, patients, tests, operations, wards and bills. Sample data is inserted into the tables.

Uploaded by

vishal_pshetti
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

K.L.

E Societys
B.V.BHOOMARADDI COLLEGE OF ENGG. & TECH.
HUBLI-580031

DEPARTMENT OF
INSTRUMENTATION TECHNOLOGY

Course project on Data Base Management System


Submitted By
Aditya Desai ( 2B13IT001)
Ganesh B ( 2B13IT132)

Under the guidance of


Prof. Vishal P
signature
----------------------------

Problem statement
To create a Hospital Management Database system that can
update or modify various records in the system.

Requirements
The objective of the system is to provide and maintain
information about the working of a hospital and the
various aspects associated with it.
The various attributes required are Job_Designation,
Hospital, Patient, Ward, Tests, bills & operations.

ER diagram

Schema
JOB_
DESIGNATION
Job_ID

Job_name

shift

experience

Doctor
D_ID

Name

Age

Place

Address

Job_ID

Gender

Hospital
Name

D_ID

Ph_No

Patient
P_ID

P_name

Address

Ph_no

Age

Gender

Tests
T_ID

Name

P_ID

Result

D_ID

Operation
0_ID

Type

P_ID

Cost

Ward
R_No

Type

D_ID

P_ID

N0_of_Bed

Bill
B_N0

Tables

Doc_charge

P_ID

Room_charge

JOB_DESCRIPTION
Job_id

Job_name

Shift

experience

Jb01

Physician

Day

10

Jb02

sNuer

Day

12

Jb03

Surgen

Night

15

Jb04

Anothprgisl

Day

10

Doctor
D_ID

D01
D02
D03
D04

NAME
ROHIT
ADITYA
PRIYA
POOJA

AGE
40
50
35
34

JOB_ID
Jb01
Jb02
Jb03
Jb04

GENDER
M
M
F
F

place
HUBLI
DHARWAD
HYDERABAD
AGRA

Address
JAYANAGAR
VIDYANAGAR
RAJNAGAR
VANINAGAR

D_ID
D01
D02
D03
D04

Ph_no
7458236540
8865924130
9856241340
3698521470

Hospital
Name
KIMS
BIMS
HKDB
BGES

Patient
P_ID

P_name

0P1t

Sonal

0P2t

pSarsid

0P3t

Neha

0P4t

Anad

Address
Gokul
oadrhubli
Madhur
ycoln
hubli
Madhur
ycoln
hubli
eMashwlr
th
am6
cros
aBnelogr

Phone_No

Age

Gendr

9123876

23

Female

876539

Male

7865432

25

Female

678534

26

Male

Tests
T_ID

T_name

T_Date

D_I

P_ID

Ts01

HB-RBc

e12b-f0

Ts02

CT scan

10-dec-2009

D02

0P2t

Ts03

MRIscan

a08n-j24

D03

0P3t

Ts04

paothgyl

08-sept19

D04

0P4t

D01

0P1t

OPERATION
O_ID
O01
O02

TYPE
DIALYSIS
KIDNEY

O03
O04

HEART
LEG

P_ID

COST
6000
7000

0P1t
0P2t
0P3t
0P4t

8500
7400

WARD
W_NO
W01
W02
W03
W04

YTPE
AC
EX
NAC
GEN

_DI
D01
D02
D03
D04

DP_I
0P1t
0P2t
0P3t
0P4t

EBD
2
6
1
3

BILLS
B_N0
B01
B02
B03
B04

D0C_CHARGE
5000
6520
32510
15697

P_ID

0P1t
0P2t
0P3t
0P4t

ROOM_CHARGE
1500
2000
366
120

DATA VALUES
create table job_desigation(
job_id varchar2(20) primary key not null,
job_name varchar(25) not null,
shift varchar2(15),
year_of_experience int);
create table doctor(
s_id varchar2(20) primary key not null,
s_fname varchar2(20),
s_lname varchar2(20),
date_of_emp date,
adrress varchar2(40),
phone_no varchar2(20),
job_id varchar2(20),
foreign key (job_id) references job_designation(job_id),
salary int);
create table hospital(
p_id varchar2(20) primary key not null,
p_fname varchar2(20),
p_lname varchar2(20),
address varchar2(40),
phone_no varchar2(20),
email_id varchar2(20),

create table patient_prescription1(


prec_id varchar2(20) primary key not null,
diagnosis varchar2(20),
medicine varchar2(20),
prec_date date,
s_id varchar2(20),
p_id varchar2(20),
foreign key (s_id) references staff(s_id),
foreign key (p_id) references patient(p_id));

create table ward1(


w_no varchar2(20) primary key not null,
no_of_beds int,
phone_no varchar2(20),
s_id varchar2(20),
foreign key (s_id) references staff(s_id);
create table tests1(
t_id varchar2(20) primary key not null,
t_name varchar2(20),
t_date date,
s_id varchar2(20),
foreign key (s_id) references staff(s_id),
prec_id varchar2(20),
foreign key (prec_id) references patient_prescription(prec_id));

Insert values

insert into job_designation values('jb01','physician','day','10');


insert into job_designation values('jb02','nurse','day','12');
insert into job_designation values('jb03','surgen','night','15');
insert into job_designation values('jb04','anthropologist',null,'05');
insert into job_designation values('jb05','ward boy','day','10');
insert into job_designation values('jb06','lab technician','day','18');
insert into job_designation values('jb07','radiologist','day','10');
insert into doctor values('sf01','rohit','mishra','10-feb-1998','17th cross5th main
jaynagar bangalore','9886256641','jb01','40000');
insert into doctor values('sf02','pooja','mehta','23-jan-1995','vidyanagar
hubli','9886257656','jb02','50000');
insert into doctor values('sf03','anand','prakash','15-apr-1998','banshankri 2nd
phase bangalore','9900692198','jb03','55000');
insert into doctor values('sf04','prashant','patil','07-feb-1984','shirure park 2nd
phase hubli','9900692199','jb01','35000');
insert into doctor values('sf05','amit','kulkarni','10-sep-1984','malleshwaran
bangalore','9900692099','jb04','30000');

insert into doctor values('sf06','shruthi','shettar','27-feb-1976','gokulroad


hubli','9944692099','jb02','40000');
insert into patient values('pt01','sonal','kulkarni','gokul road
hubli','9844692099','[email protected]','23','female');
insert into patient values('pt02','saiprasad','bhat','madhura colony
hubli','9844693099','[email protected]','22','male');
insert into patient values('pt03','neha','patil','madhura colony
hubli','7734693099','[email protected]','25','female');
insert into patient values('pt04','anand','patil','maleshwaram 6th cross
bangalore','6786534590','[email protected]','25','male');

insert into patient_prescription values('pc01','malaria','luminal','12-jun2000','sf01','pt01');


insert into patient_prescription values('pc02','jaundice','coartem','10-feb1998','sf01','pt02');
insert into patient_prescription values('pc03','aids','ziagen','05-may2005','sf05','pt01');
insert into patient_prescription values('pc04','fever','crocin plus','15-dec2002','sf03','pt04');

insert into ward values('wd01',2,'224651','sf06');


insert into ward values('wd02',2,'772934','sf01');
insert into ward values('wd03',2,'427654','sf02');
insert into ward values('wd04',3,'248403','sf06');
insert into tests values('ts01','hb rbc','12-feb-2002','sf06','pc01');
insert into tests values('ts02','ct scan','12-dec-2009','sf05','pc02');
insert into tests values('ts03','mri scan','08-jan-2004','sf06','pc01');
insert into tests values('ts04','pathology','08-sep-1999','sf03','pc03');

Results and Screenshots

You might also like