Professional Documents
Culture Documents
Hospital Management System: School of Computer Science and Engineering
Hospital Management System: School of Computer Science and Engineering
REVIEW REPORT
Submitted by
YASHWANTH (19BCI0022)
MARUTHI (19BCE0128)
BHARATH VISWATH (19BCE0453)
Prepared For
Submitted To
Dr. Nithya S
Associate Professor
The hospital management system organizes the stable functioning of daily tasks
and interactions. This is a special tool to support the smooth operating of the
software components that are vital for the clinic administration. The hospital
records management software keeps track of all the operations, stores the users’
data, performs its analysis and generates the reports. The medical institution is
given the opportunity to collect its information in one place. It includes the
patient and doctors’ records as well as the data concerning financial affairs,
supply management, etc. Furthermore, it is only processed, classified and
accessible for authorized users. The hospital database management system
provides users with data security due to all regulations. Implementation of
different functions empowers smooth and clear functionality.
TABLE OF CONTENTS
1. Introduction
1.1 Background
1.2 Motivation
1.3 Objective
3. Literature Survey
5. Implementation
5.1 Introduction
5.2 Implementation
6. Snapshort
1.2) Motivation
Often we encounter situations in emergency services where things get
delayed due to hefty paperwork. On visiting a government hospital due to
personal reasons, I encountered that a lot of time is wasted in transferring of
papers and finding out details from files. While on the other hand Private
(Corporate based) Nursing homes/Hospitals save a lot of time doing these works
in a digitalized format. Here we understood the need for web based database
systems in daily life and planned of undertaking this project.
1.3)Objective
The main objective of this project integrates all the information regarding
patients, doctors, staff, hospital administrative details etc. into one software.
It has sections for various professionals that helps us to get a total over view
about it
● Appointment booking
Helps patients cut the long queue and saves their time. It is equipped with features like
automated email.
● Role-Based Access Control
Allows employees to access only the necessary information to effectively perform their
job duties increases data security and integrity
● Overall cost reduction
Cuts down paper costs as all the data are computerized. No separate costs for setting up
physical servers
● Data accuracy
Removes human errors.
● Data security
Helps to keep patients records private. Restricts access through role-based access
control
● Revenue management
Makes daily auditing simple. Helps with statistics and other financial aspects
2. Project Resource Requirements
3) Literature Survey
4.1)ER DIAGRAM
TIMINGS VARCHAR(50)
TIME TIMESTAMP
ADVANCE NUMBER(4)
MEDICLAIM VARCHAR
ADDRESS VARCHAR(50)
REPORTS VARCHAR(50)
TABLES WE EXECUTED
SELECT*FROM DOCTOR;
b)Display all the hospital bill details.
SELECT*FROM HOSPITAL;
2)Prescribed_Medicines.Medi_Name,In_Patient_Prescription.Pat_ID
FROM Prescribed_Medicines
INNER JOIN In_Patient_Prescription ON
In_Patient_Prescription.Pres_ID=Prescribed_Medicines.Pres_ID
WHERE Pat_ID='P101';
3) SELECT Patient.Pat_Name,Test_Results.Result FROM Lab_Tests
INNER JOIN Patient ON Lab_Tests.Pat_ID=Patient.Pat_ID INNER
JOIN Test_Results ON Lab_Tests.Test_ID=Test_Results.Test_ID
WHERE Pat_Name='Mani';
CODE:-
DECLARE
p_id patient.PAT_ID%type := 'P101';
p_name patient.PAT_NAME%type;
p_addr patient.P_ADDRESS%type;
BEGIN
SELECT PAT_NAME, P_ADDRESS INTO p_name, p_addr
FROM patient
WHERE PAT_ID = p_id;
dbms_output.put_line
('Patient ' ||p_name || ' from ' || p_addr);
END;
INPUT:- OUTPUT:-
2)Write a PL/SQL program to find the number of doctors in a given department with
a given qualification (read values for department and qualification from user during
runtime). If number is more than the number of doctors in that department with
other qualifications then display ‘Well qualified’ else ‘Qualified’.
Code
Declare
DT_NAME varchar2(12):=&DT_NAME;
Qual varchar2(12):=&Qual;
QUAL_DOCT_CNT number; NON_QUAL_DOCT_CNT number;
begin
SELECT COUNT(1) INTO QUAL_DOCT_CNT FROM DOCTOR DR
INNER JOIN DEPARTMENT DT ON DR.D_DEPT_NO=DT.DEPT_NO
WHERE DT.DEPT_NAME=DT_NAME AND QUALIFICATION=Qual;
IF QUAL_DOCT_CNT>NON_QUAL_DOCT_CNT THEN
dbms_output.put_line('Well Qualified');
ELSE
dbms_output.put_line('Qualified'); END IF;
end;
3)Write a PL/SQL program to insert records into any of the tables in your database.
Code
Code
set serveroutput on;
create or replace procedure ptype(p_id char,amt
number) is a hospital_bill.payment_type%type;
begin
update hospital_bill set payment_type='Cash' where i_pat_id=p_id and
bill_amount=amt; select payment_type into a from hospital_bill where
i_pat_id=p_id and bill_amount=amt; DBMS_OUTPUT.PUT_LINE('New
Payment_Type= '||a);
end;
/
exec ptype('&p_id',&amt);
Cursors:
Code:-
DECLARE
p pat%rowtype;
exit
when pat%notfound;
age:=months_between(sysdate,p.p_dob )/12;
if(age>=60) then
end if;
end loop;
/
Output
Triggers:
1. Add an attribute with patients table to store the age of the
patients. Write a Trigger to find and fill the age of a patient
whenever a patient record is inserted into patients table.
alter table patient add age integer;
create or replace trigger
age_trigger before insert on patient
for each row when(1=1) declare p_age integer;
begin
p_age:=
trunc(months_between(sysdate, :new.ptdob)/12);
:new.age:
=p_age;
dbms_output.put_line('age calculatiion triggered');
end;
/
6. Screenshot (front end-with explanation):-
USED XAMPP CONTROL PANEL v3.2.4
A)LOGIN PAGE
B)REGISTERING A NEW PATIENT NAME –”NAVEEN’
7.1)CONCLUSION:-