You are on page 1of 20

INDEX

SR.NO CONTENTS PAGE NO.

1.0 RATIONALE 2

2.0 LITERATURE REVIEW 2

3.0 PROPOSED METHODOLOGY 2

4.0 ACTION PLAN 3

RESOURCE REQUIRED
5.0 5.1 SOTWARE REQUIREDMENT 3
5.2 HARDWARE COMPONENTS

6.0 COURSE OUTCOME ADDRESSED 4

ACTUAL PROCEDURE FOLLOWED


7.0 4

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

SKILLS DEVELOPED/ LEARNING


9.0 20
OUTCOME OF THIS PROJECT

10.0 CONCLUSION AND REFERENCE 20

1
PART A : MICRO-PROJECT PROPOSAL
HOSPITAL MANAGEMENT SYSTEM

1.0 Rationale:-

Database Management Systems (DBMS) are vital components of modern information


systems.Database applications are pervasive and range in size from small in-memory
databases to terra bytes or even larger in various applications domains. The course focuses on
the fundamentals of knowledgebase and relational database management systems, and the
current developments in database theory and their practice.

2.0 Literature Review:-

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.

3.0 Proposed Methodology:-

 Select the Topic of Micro-project.


 Collect all the data required for micro-project.
 Create Tables and insert data required for the microproject.
 After creating tables and inserting data write down the result of it and
prepare its report.
 Organize all the information in proper order.
 Submit the hard copy of the micro-project to the subject teacher.

2
4.0 Action Plan:-

Details of Process started Process Finish Name of group


Sr. No
activity date date members
To select the 2/9/2023 4/9/2023
1 Atul Davari
title of Project.
Search the 8/9/2023 11/9/2023
information
2 Aditya Jagtap
related to
micro-project
Write the 5/10/2023 20/10/2023
Animesh
3 queries on
Dorugade
oracle
Execute queries 21/10/2023 27/10/2023
4 write the results Sudarshan patil
of it.

5.0 Resources used :-

Sr no. Name of Specification Qty Remarks


Resource/Material
1 Hardware Intel(R) 1 Used
computer system Core(TM) i3
CPU 530
2.93GHz ,64Bit
2 Operating System Windows 10 1 Used
pro
3 Software MS-Office 2 Used
(MS-word),
ORACLE

3
Part B:- Micro-project Report

6.0 Course Outcomes Addressed:-

1. Design Normalized database on given data.


2. Create and manage Data base using SQL command.
3. Write PL/SQL code for given database.
4. Apply Security Confidentiality on given database.

7.0 Actual Procedure Followed:-

 Designed plans through which we can get ideology of executing queries.


 Created four tables using DML commands.
 Inserted values into those four tables.
 we connected the three tables with foreign key.
 we selecting data from two and more than two tables.
 Attached the output of project at the end.
 Finalized report

4
8.1 INTRODUCTION:-

Hospital management software is a comprehensive software solution designed to manage the


various aspects of a hospital's operations. This software aims to streamline processes, improve
efficiency, and enhance patient care within the hospital. It is a user-friendly and efficient tool
that helps hospital administrators and staff to manage their daily tasks and responsibilities
effectively.

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:-

select dname,(salary*2) as incremented_salary from doctor;

select * from patient where disease in('allergies','cancer');

13
select * from patient right outer join hospital
on(patient.hid=hospital.hid);

create view a1 as select pid,pname,disease from patient;

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;
/

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;
/

select * from doctor1;

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:-

Database management system by Mahesh mali (reference book) Edition 5th

20

You might also like