Professional Documents
Culture Documents
1.0 RATIONALE 2
RESOURCE REQUIRED
5.0 5.1 SOTWARE REQUIREDMENT 3
5.2 HARDWARE COMPONENTS
OUTPUTS OF MICRO-PROJECT
8.1 INTRODUCTION
8.2 ATTRIBUTE
8.3 E-R DIAGRAM
8.0 8.5 TABLE STRUCTURE 5-19
8.5 DATA INSERTING
8.6 SQL QUERY
8.7 PL/SQL QUERY
1
PART A : MICRO-PROJECT PROPOSAL
HOSPITAL MANAGEMENT SYSTEM
1.0 Rationale:-
To satisfy the needs of users outside of business applications, DBMSs must be expanded tooffer
services in two other dimensions, namely object management and knowledge management.
Object management entails efficiently storing and manipulating non- traditional data types
such as bitmaps, icons, text, and polygons. Object management problems abound in CAD and
many other engineering applications. Knowledge management entails the ability to store and
enforce a collection of rules that are part of the semantics of an application. Such rules describe
integrity constraints about the application, as well as allowing the derivation of data that is not
directly stored in the database.
2
4.0 Action Plan:-
3
Part B:- Micro-project Report
4
8.1 INTRODUCTION:-
The hospital management software micro-project is a small-scale project that aims to develop
a software application that can efficiently manage various aspects of a hospital's operations.
This project involves designing, developing, and implementing a software solution that meets
the specific needs and requirements of a hospital. The project team will work closely with
hospital administrators, doctors, and other staff members to understand their workflows and
design a system that caters to their needs.
The hospital management software will have various modules that will handle different
functions of the hospital, such as patient management, staff management, inventory
management, billing and financial management, appointment management, electronic health
records, reporting and analytics, security and privacy, and integration with external systems.
The patient management module will handle patient registration, appointment scheduling, and
tracking patient medical records. The staff management module will manage staff information,
including their roles, schedules, and attendance. The inventory management module will track
and manage hospital inventory, including medicines, medical equipment, and supplies.
The billing and financial management module will handle billing processes, including
generating invoices, managing payments, and tracking financial transactions. The appointment
management module will facilitate appointment scheduling for patients and ensure efficient
utilization of doctors' time. The electronic health records (EHR) module will maintain
electronic health records for patients, allowing for easy access to medical history and facilitating
information exchange between healthcare providers.
5
8.2 Attributes:-
1) HOSPITAL:-
a) Hid
b) Hname
c) Pid
d) Did
2) PATIENT:-
a) Pid
b) Pname
c) Pdiagnosis
d) Did
e) Hid
f) Nid
3) DOCTOR:-
a) Did
b) Dname
c) Qualification
d) Salary
e) Hid
4) NURSE:-
a) Nid
b) Name
c) Salary
6
8.3 E-R Diagram:-
7
8.4 TABLE STRUCTURE:-
1) HOSPITAL TABLE:-
create table hospital(
hid number(3) primary key,
hname varchar2(20) not null,pid
number(3) not null,
did number(3) not null
);
2) DOCTOR TABLE:-
create table doctor(
did number(3) primary key, hid
number(3) not null, dname
varchar2(20) not null,
qualification varchar2(20) not null,
salary number(7) not null,
foreign key (hid) references
hospital (hid)
);
8
3) NURSE TABLE:-
create table nurse(
nid number(3) primary key,
name varchar2(20) not null,
salary number(7) not null
);
4) PATIENT TABLE:-
create table patient(
pid number(3) primary key,did
number(3) not null,
hid number(3) not null, pname
varchar2(20) not null,disease
varchar2(20) not null,foreign
key(did) references doctor (did),
foreign key(hid) references
hospital (hid)
);
9
8.5 INSERTING DATA:-
1) HOSPITAL TABLE:-
insert all into hospital
values(1,'bombay hospital',101,201)
into hospital values(2,'D Y patil hospital',102,202)
into hospital
values(3,'Tata memorial',103,203)
into hospital
values(4,'sunrise hospital',104,204)
select * from dual;
10
2) DOCTOR TABLE:-
insert all into doctor
values(201,1,'ajit','MBBS',80000)
into doctor
values(202,2,'tejas','MS',50000)
into doctor
values(203,3,'ramesh','BHMS',65000)
into doctor
values(204,4,'advait','MD',70000)
select * from dual;
3) NURSE TABLE:-
insert all into nurse
values(10,'ankita',30000)
into nurse
values(35,'radhika',25000)
into nurse
values(46,'arpita',20000)
into nurse
values(30,'girish',35000)
into nurse
11
values(20,'aniket',28000)
select * from dual;
4) PATIENT TABLE:-
insert all into patient
values(101,201,1,'animesh','allergies')into
patient values(102,202,2,'atul','colds and
flu')into patient
values(103,203,3,'raj','conjunctivitis')into
patient values(104,204,4,'om','allergies')
into patient
values(105,201,1,'rahul','colds and flu') into
patient values(106,202,2,'sanchit','colds and
flu')into patient
values(109,202,2,'aditya','cancer')
into patient
values(110,204,4,'raj','cancer')select
* from dual;
12
8.6 SQL QUERY:-
13
select * from patient right outer join hospital
on(patient.hid=hospital.hid);
14
8.7 PL/SQL QUERY:-
DECLARE
p_id patient1.pid%TYPE:=101;
p_name patient1.pname%TYPE;
dis patient1.disease%type;
BEGIN
SELECT pid,pname,disease INTO p_id,p_name,disFROM patient1
WHERE pid = p_id; dbms_output.put_line('patient1 name is ' ||
p_id;
dbms_output.put_line('patient1 name is ' || p_name);
dbms_output.put_line('patient1 name is ' || dis);
exception
WHEN no_data_found THEN
dbms_output.put_line('No such patient');
WHEN others then
dbms_output.put_line('Error');
END;
/
15
declare
total_rows number(5);
BEGIN
update doctor1
set salary=salary+3000;
IF sql%notfound THEN
dbms_output.put_line('NO DOCTORS FOUND');
ELSIF
sql%notfound THEN
total_rows:=sql%rowcount;
dbms_output.put_line(total_rows||'DOCTORS FOUND');
END IF;
END;
/
16
create or replace procedure pro1(d_id in number)
is
sal number(8,2);
begin
select salary into sal from doctor where did=d_id;
if sal>70000 then
update doctor set salary=sal*0.2 where did=d_id;
else
update doctor set salary=40000 where did=d_id;
end if;
end pro1;
declare
doctor_did number;
begin
pro1(&doctor_did);
end;
/
17
create or replace function f return sys_refcursor
as
c sys_refcursor;
begin
open c for select * from patient
where pname='animesh';
return c;
end;
/
18
DECLARE
d_id doctor1.did%type;
d_name doctor1.dname%type;
d_salary doctor1.salary%type;
cursor c_doctor1 is
select did,dname,salary from doctor1;
BEGIN
open c_doctor1;
loop
FETCH c_doctor1 into d_id,d_name,d_salary;
exit when c_doctor1%notfound;
dbms_output.put_line(d_id||''||d_name ||''||d_salary);
end loop;
close c_doctor1;
end;
19
9.0 SKILLS DEVELOPED/ LEARNING OUTCOME OF THIS PROJECT:
Through this project, participants develop skills in database design and SQL/PLSQL, which
are essential for managing and querying large datasets. Additionally, they gain proficiency in
creating functional applications, automating processes, and enhancing data-driven decision-
making, all of which are valuable skills in the fields of data management, software development,
and real estate services.
10.1 CONCLUSION:-
Hospital Management System is a system enabling hospitals to manage information and data
related to all aspects of healthcare – processes, providers, patients, and more, which in turn
ensures that processes are completed swiftly and effectively. This can be a powerful tool to help
healthcare organizations improve their processes and streamline their operations. It can provide
an integrated, comprehensive solution to managing patient records, billing and scheduling, as
well as provide real-time insights into hospital performance. When used correctly and
effectively, a hospital management system can help hospitals ensure that their operations are as
efficient and effective as possible.
10.2 REFERENCE:-
Wed References:-
https://www.geeksforgeeks.org/dbms/
https://in.pinterest.com/pin/hospital-management-system-database-design-student-
project-guidance- development--734016439265146782/
https://www.slideshare.net/AbdulQadir441/hospital-database-management-system-
project-report
https://www.w3schools.com/sql/
https://www.tutorialspoint.com/sql/
Book References:-
20