0% found this document useful (0 votes)
17 views29 pages

Hospital Management Systemmm..

The document presents a project report on the development of a Hospital Management System (HMS) aimed at streamlining hospital operations through automation of tasks like patient registration, appointment scheduling, and billing. It discusses the system's design, objectives, research gaps, and methodologies, emphasizing its user-friendly interface and data security features. The project aims to enhance operational efficiency and patient care while addressing existing challenges in current HMS implementations.

Uploaded by

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

Hospital Management Systemmm..

The document presents a project report on the development of a Hospital Management System (HMS) aimed at streamlining hospital operations through automation of tasks like patient registration, appointment scheduling, and billing. It discusses the system's design, objectives, research gaps, and methodologies, emphasizing its user-friendly interface and data security features. The project aims to enhance operational efficiency and patient care while addressing existing challenges in current HMS implementations.

Uploaded by

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

PROJECT WORK II

CAP3502

Hospital Management System

submitted By
Gauri - 220160212013
Simran - 220160212017

A report submitted in part fulfilment of the degree of


Program: Bachelor’s of Computer Applications

supervisor
Ms. Jyoti

School of Engineering and sciences


Department of Computer Science and Engineering

GD Goenka University
Gurgaon, Haryana
TABLE OF CONTENT

S.NO. CONTENT PAGE NO.

1. Abstract 3

2. Introduction 4

3. Research Gaps 8

4. Project objective 12

5. Project Hypothesis 13

6. Research Methodology 18

7. System design 23

8. Results and discussion 26

9. Future Enhancement 28

10. Conclusion 29

11. Bibliography 30
ABSTRACT

The Hospital Management System (HMS) is a web-based application developed using


HTML, CSS, Java, and Python to streamline hospital operations. It automates key
tasks such as patient registration, appointment scheduling, billing, and staff
coordination, reducing manual work and improving efficiency.It eliminates the
inefficiencies of traditional manual systems by automating routine tasks, reducing
paperwork, and minimizing human error.

By combining intuitive front-end design with a powerful Python-powered backend, the


system delivers a seamless experience to both healthcare providers and administrative
staff. It ensures data privacy and security, supports rapid information retrieval, and
offers scalability for future upgrades such as mobile integration or inventory tracking.
With features like real-time data access, role-based logins, and secure record
management, the system enhances decision-making and patient care. Its user-friendly
interface and centralized design make it ideal for hospitals seeking digital
transformation. This project also provides practical experience in full-stack
development, data handling, and healthcare automation.

Keywords: hospital management system, patient care, web application, Python,


healthcare automation, secure data, admin dashboard.
4
1 INTRODUCTION

1.1 DOMAIN INTRODUCTION

A Hospital Management System (HMS) is a digital solution within the **Healthcare


Management domain designed to streamline hospital operations and enhance patient care. It
manages key tasks such as patient registration, appointment scheduling, billing, medical
records, and staff coordination. By automating these processes, HMS improves efficiency,
reduces errors, and ensures smooth hospital functioning.

The system supports:


1. Patient Registration & Scheduling
2. Medical Record Management
3. Billing & Payment
4. Discharge & Reporting

In healthcare, timely data and smooth workflows are critical. The HMS integrates secure
databases, user-friendly interfaces, and role-based access to provide real-time access to
information while ensuring data privacy. Features such as staff login, patient history
tracking, automated billing, and analytics enable administrators and healthcare providers to
monitor operations in real time. These tools help in managing hospital workflows, improving
communication between departments, and delivering timely and accurate services to patients.

It allows doctors, staff, and administrators to manage operations more effectively, improve
patient experiences, and maintain compliance. With centralized control and automation,
HMS ensures faster services, better coordination, and higher satisfaction—making it essential
for modern healthcare facilities.

The domain also focuses on improving patient satisfaction through features like quick
registration, reduced waiting times, and transparent billing. By maintaining a centralized
platform for all medical and administrative tasks, the Hospital Management System ensures
that patients, doctors, and hospital staff benefit from a streamlined and digitally enabled
healthcare environment, ultimately leading to better service quality and institutional growth.
4 1.2 LITERATURE REVIEW

1. Overview of Hospital Management Systems


Early implementations of Hospital Management Systems aimed to digitize basic
administrative tasks such as patient registration, appointment scheduling, and billing.
These systems helped centralize patient data and improve workflow efficiency. As
healthcare demands increased, HMS evolved to include modules for laboratory
management, pharmacy inventory, diagnostics, and electronic health records (EHR). The
transition from paper-based systems to digital platforms marked a significant shift in
hospital administration, improving data accessibility and patient care (Patel et al., 2017).

2. Technological Advancements in HMS


Recent advancements have introduced Artificial Intelligence (AI), cloud computing, and
data analytics into HMS. AI is being utilized to support clinical decision-making, predict
patient health risks, and automate scheduling systems. Machine learning models analyze
large volumes of patient data to detect patterns in diagnoses and treatment outcomes.
Cloud-based HMS platforms, known for their scalability and remote accessibility, have
gained popularity in both urban and rural healthcare settings. These platforms ensure
data security while allowing integration with third-party tools like telemedicine apps,
insurance platforms, and diagnostic labs (Verma & Ranjan, 2020).

3. Benefits of Hospital Management Systems


The adoption of HMS provides hospitals with improved accuracy, transparency, and
speed in handling healthcare data. Automated workflows reduce the chances of human
error, especially in billing and medication tracking. Doctors can access patient history in
real time, resulting in quicker diagnoses and personalized treatment plans. HMS also aids
in staff management, resource allocation, and performance monitoring. For patients,
these systems enable easier appointment scheduling, quicker service delivery, and
improved communication with healthcare providers (Gupta & Nair, 2021).

4. Challenges of Hospital Management Systems


Despite the benefits, implementing HMS poses several challenges. High installation and
maintenance costs can be a barrier for small or government-funded hospitals. Technical
complexity and resistance to change among staff often hinder system adoption.
Inadequate training may lead to underutilization or misuse of system functionalities.
Moreover, data privacy is a major concern, as hospitals must comply with health data
regulations such as HIPAA. Unauthorized access or system breaches can compromise
sensitive patient information (Chakraborty et al., 2019).
4 5. Future Directions of Hospital Management Systems
The future of HMS lies in integrating emerging technologies like the Internet of Things
(IoT), wearable health monitors, and AI-based diagnostics. IoT can track real-time vitals,
room occupancy, and equipment status, allowing hospitals to automate facility
management. AI chatbots and virtual assistants are being introduced to help patients
book appointments, receive medication reminders, and get answers to common health
queries. Furthermore, mobile-friendly interfaces are becoming standard, providing
patients and doctors with access to HMS via smartphones, improving service efficiency
and user engagement (Mehta et al., 2022).
4
2RESEARCH GAP

Despite the increasing adoption of Hospital Management Systems (HMS) in healthcare


institutions, several research and implementation gaps remain unaddressed. One of the
primary issues is the lack of affordable and scalable solutions for small-scale hospitals and
clinics. Most existing systems are developed for large, well-funded hospitals, making them
too complex or costly for smaller healthcare settings. This creates a significant barrier for
rural and semi-urban hospitals looking to digitize their operations.

Another notable gap is the limited customization offered by many HMS platforms.
Hospitals vary widely in their size, specialties, and workflows, yet most systems adopt a
one-size-fits-all approach. This results in inefficient implementation and underutilization
of features. Moreover, the user interface in many systems is not intuitive, especially for
non-technical staff. This leads to a steep learning curve and resistance from users, thereby
affecting productivity.

Data security and privacy also remain critical concerns. Many systems are not fully
compliant with healthcare data protection regulations, making sensitive patient
information vulnerable to breaches. Furthermore, real-time access and mobile support are
often missing, restricting the flexibility of healthcare providers to access and manage data
remotely, particularly during emergencies.

Inter-departmental coordination is another area where current HMS solutions fall short.
In many hospitals, systems do not effectively integrate departments such as OPD,
pharmacy, billing, and diagnostics, which leads to communication delays and workflow
inefficiencies. Additionally, most HMS platforms lack advanced features such as AI
integration and data analytics, which could otherwise enhance decision-making, resource
allocation, and patient care.
4 Another gap observed is the minimal focus on patient-centric features in many existing
HMS platforms. While administrative efficiency is often prioritized, patient engagement
tools like appointment reminders, medical record access, or feedback systems are either
missing or underdeveloped. In an era where digital health is becoming more personalized,
empowering patients with access and control over their medical information can
significantly improve trust, satisfaction, and treatment outcomes.

Lastly, there is a considerable gap in user training and system adoption strategies. Many
hospitals struggle with onboarding and adequately training staff, which limits the effective
use of the system. Addressing these gaps is essential for developing a robust, efficient, and
user-friendly hospital management solution that can cater to diverse healthcare needs.
Let me know if you want a shorter version or if you'd like me to format this as part of
your full report.

This project aims to bridge these gaps by offering a lightweight, web-based Hospital
Management System that is affordable, user-friendly, and tailored for small to medium
healthcare facilities. Built using HTML, CSS, JavaScript, and Python, the system
integrates core functions such as patient registration, appointment scheduling, and billing.
It emphasizes ease of use, modular design, and basic automation to improve hospital
workflows while remaining accessible and easy to adopt.
4
3PROJECT OBJECTIVE

To design and develop a comprehensive Hospital Management System (HMS) that aims
to streamline the daily operations and administrative functions of a healthcare facility.
The system will provide an integrated platform for managing patient information,
hospital staff, medical records, appointments, billing, and inventory. By automating core
processes, the HMS will enhance efficiency, reduce human errors, and improve the overall
quality of patient care. Key objectives include:

1. Centralized Database: To create a unified and secure database that stores all hospital-
related data, including patient records, staff information, and inventory details.
2. Appointment Scheduling: To provide an easy-to-use interface for patients and staff to
schedule, reschedule, and cancel appointments, minimizing scheduling conflicts.
3. Patient Management: To enable efficient management of patient data, including
personal information, medical history, treatment plans, and billing details.
4. Inventory Management: To track and manage hospital supplies, medications, and
equipment, ensuring that stock levels are maintained and replenished as needed.
5. Billing and Payment: To automate the billing process, generate invoices, and facilitate
seamless payment processing for patients and insurance providers.
6. Reporting and Analytics: To offer advanced reporting tools for administrators to
generate detailed reports on hospital operations, patient statistics, and financial data.
7. Security and Privacy: To ensure data security through encryption, user authentication,
and strict access controls, in compliance with healthcare regulations such as HIPAA or
similar standards.
8. User-Friendly Interface: To develop an intuitive and responsive user interface for
different user roles, including doctors, nurses, administrators, and patients.

This system will contribute to improving operational efficiency, patient satisfaction, and
the overall effectiveness of healthcare delivery in the hospital.
4
4PROJECT HYPOTHESIS

1. Improved Operational Efficiency: By automating manual processes such as patient


registration, appointment scheduling, and billing, the HMS will reduce the time required
for these tasks, resulting in faster service delivery and better resource allocation.

2. Reduction in Errors: The automation of data entry, management of medical records,


and billing will lead to a significant reduction in human errors, improving the accuracy of
patient information, medical history, and financial transactions.

3. Enhanced Patient Care: With centralized access to patient records and real-time
information sharing among healthcare professionals, the system will support faster
decision-making, leading to more accurate diagnoses, treatment plans, and ultimately
better patient outcomes.

4. Cost Efficiency: The implementation of an HMS will optimize the use of resources such
as hospital inventory, staff scheduling, and patient management, leading to reduced
operational costs and improved budget management.

5.Improved Reporting and Decision-Making: By providing administrators with real-time


data analytics and reporting tools, the system will enable better decision-making related
to hospital operations, patient care strategies, and financial management.

6. Patient Satisfaction: The system's ability to streamline appointments, reduce waiting


times, and maintain accurate patient records will increase overall patient satisfaction,
leading to better patient retention and hospital reputation.
4
5 RESEARCH METHODOLOGY

1. Problem Definition
- Objective: The first step involved identifying the challenges faced by hospitals in
managing patient data, appointments, billing, and inventory using manual systems or
outdated technologies.
- Approach: This phase involved reviewing existing issues in hospital operations based
on prior knowledge and understanding of common inefficiencies in hospital management.
Problems such as data handling, patient tracking, and billing errors were identified as the
key areas for improvement.

2. Literature Review
- Objective: To understand the state-of-the-art solutions available in hospital
management and to identify common practices and technologies used in similar systems.
- Approach: Relevant academic papers, articles, and case studies on hospital
management systems were reviewed. The review focused on technology trends, system
design strategies, and the challenges hospitals face in managing large amounts of data.
This step helped inform the system design and determine which technologies would be
appropriate for addressing identified challenges.

3. Requirement Analysis
- Objective: To define the system requirements that align with the core functionalities
needed for the hospital management system.
- Approach: Based on an understanding of typical hospital operations and my own
project scope, the requirements for key modules (patient registration, appointments,
billing, inventory, and reporting) were identified. The focus was on creating an automated
system to replace manual processes, reduce errors, and improve operational efficiency.

4. System Design
- Objective: To design a functional and scalable architecture for the hospital
management system.
- Approach:
- System Architecture: The architecture was designed to be modular, supporting
functionalities like patient management, billing, appointment scheduling, and inventory
control.
4 Database Design: A relational database model was created to efficiently manage
patient records, medical data, and hospital inventories.
Technology Stack Selection: The system was designed using web-based
technologies. The frontend was developed with HTML, CSS, and JavaScript,
while the backend was implemented using Python (Django) with a MySQL
database to handle system data and requests.

5. System Development
Objective: To implement the hospital management system based on the designed
architecture.
Approach: The system was developed in stages, starting with core modules such as
patient registration, appointments, and billing, followed by additional modules like
inventory management and reporting. The development followed a logical
progression to ensure that each module integrated seamlessly with the others.

6. System Testing
Objective: To ensure the system functions correctly and meets the expected
requirements.
Approach:
Unit Testing: Each component of the system was tested individually to ensure
that they performed as intended.
Integration Testing: The modules were tested together to ensure data flowed
correctly between them (e.g., data from patient registration should be reflected in
billing and appointment scheduling).
Functionality Testing: Each feature was tested based on the defined requirements
to verify that it met the expected criteria for use.

7. System Evaluation
Objective: To assess the effectiveness and performance of the system once developed.
Approach: Evaluation was carried out by comparing the system’s performance and
features against the objectives defined at the outset of the project. Key metrics such as
speed, reliability, and user-friendliness were evaluated. The system’s ability to
automate tasks and streamline hospital operations was also reviewed.

8. Conclusion and Future Enhancements


Objective: To conclude the development process and suggest possible improvements.
Approach: After completing the testing phase and evaluating the system, the project
was concluded by summarizing its success in meeting the initial objectives.
Recommendations for future enhancements included adding mobile accessibility,
advanced analytics for hospital operations, and further optimization of system
security.
4 Existing system
1. Electronic Health Records (EHR) Systems
Overview: EHR systems are designed to digitally store patients’ medical records,
including history, diagnoses, medications, treatment plans, and test results. These systems
allow healthcare professionals to access and update records in real time, improving
clinical decision-making.
Examples:
- Epic Systems:Widely used in large hospitals for managing patient health records and
clinical workflows.
- Cerner: Provides cloud-based EHR solutions with interoperability and data-sharing
features.
Limitations: EHR systems can be costly to implement and maintain, and may require
extensive training for healthcare staff. Data interoperability between different EHR
platforms is often limited.

2. Hospital Information Systems (HIS)


Overview: HIS integrates various departments within a hospital—such as pharmacy,
laboratory, radiology, and finance—into a single system to streamline hospital
operations.
Examples:
- Mediware: Offers modules for different departments including blood bank, pharmacy,
and laboratory.
- Meditech: Provides a suite of HIS tools that cover both clinical and administrative
needs.
Limitations: Many HIS are complex and can be over-engineered for smaller hospitals or
clinics. Integration with third-party applications is often limited or costly.

3. Patient Management Systems (PMS)


Overview: These systems focus on the administrative side of patient care—scheduling,
registration, admission, discharge, and transfer processes.
Limitations:They often lack deep clinical features and may require integration with EHRs
or HIS for full functionality.

Proposed System

The proposed Hospital Management System is designed to overcome the limitations of


traditional healthcare administration by leveraging modern technologies to create a
centralized, efficient, and patient-centric digital solution. It aims to improve operational
workflows, enhance data accessibility, and ensure the delivery of quality healthcare services
through automation and integration of core hospital functions. The system is built to be
scalable, secure, and user-friendly, catering to hospitals and clinics of varying sizes.
4 Key Features of the Proposed System

Centralized Healthcare Management


- A unified platform that integrates patient registration, appointments, billing, diagnostics, and
discharge processes.
- Real-time updates across departments (OPD, pharmacy, lab, etc.) for better coordination and
decision-making.

Automated Patient Registration and Appointment Scheduling


- Easy-to-use patient portal for self-registration and appointment booking with available doctors.
- Auto-generated appointment reminders and updates via SMS/email.

Smart Ward and Resource Allocation


- Automated tracking and allocation of beds, medical equipment, and staff based on availability
and patient needs.
- Efficient management of inpatient and outpatient records.

Secure Patient Data Management


- End-to-end encryption and role-based access to protect sensitive medical information.
- Compliance with healthcare data regulations and standards such as HIPAA.
6SYSTEM DESIGN

1. Login Screen:
- Objective: Secure user login.
- Features: Username, password fields, login button, forgot password link, user role
selection (Admin, Doctor, Staff), CAPTCHA, and 2FA.

2. Admin Login Screen:


- Objective: Admin login for system management.
- Features: Username and password fields, login button, reset password option, and
security features.

3. Logout Screen:
- Objective: Safe logout from the system.
- Features: Logout confirmation prompt, logout button, automatic session timeout.

4. Patient Details Screen:


- Objective: View and update patient information.
- Features: Patient ID, basic details, medical history, appointments, doctor’s notes,
treatment plan, prescriptions, and emergency contact. Option to update patient data.

5. Admin Dashboard:
- Objective: System-wide administrative management.
-Features: User management, patient management, appointment scheduling, inventory
tracking, reports, and system settings.

6. Doctor's Dashboard:
- Objective: Manage patient information and appointments.
- Features: Patient search, consultation notes, prescriptions, medical history review,
upcoming appointments.

7. Appointment Scheduling Screen:


- Objective: Schedule and manage appointments.
- Features: Doctor search, date and time selection, patient details, appointment
confirmation.
8. Billing and Payment Screen:
Objective: Handle billing and payment processing.
Features: Patient invoice, payment options, payment history, receipt printing.

9. Inventory Management Screen:


Objective: Manage medical supplies and medications.
Features: Stock overview, low stock alerts, purchase orders, stock audit.

10. Reports Screen:


Objective: Generate operational and financial reports.
Features: Patient statistics, financial reports, operational reports, export options
(PDF, CSV, Excel).

11. User Profile Management Screen:


Objective: Manage user profile and settings.
Features: Personal info, password change, notification preferences.
4 ARCHITECTURE

USE-CASE DIAGRAM
4 DATA FLOW DIAGRAM
4
7 INPUT

package hospital.management.system;

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class AddRoom extends JFrame implements ActionListener {


JTextField t2,t4;
JComboBox t3,t5,t6;
JButton b1,b2;
AddRoom(){

JPanel panel = new JPanel();


panel.setBounds(5,5,840,600);
panel.setBackground(new Color(0, 128, 128));
panel.setLayout(null);
add(panel);

JLabel l1 = new JLabel("Add Rooms");


l1.setBounds(194,10,160,22);
l1.setFont(new Font("Tahoma", Font.BOLD,22));
l1.setForeground(Color.BLACK);
panel.add(l1);

JLabel l2 = new JLabel("Room Number");


l2.setBounds(64,70,152,22);
l2.setFont(new Font("Tahoma", Font.BOLD, 14));
l2.setForeground(Color.BLACK);
panel.add(l2);
t2 =new JTextField();
t2.setBounds(200,70,156,20);
t2.setFont(new Font("Tahoma", Font.PLAIN, 14));
t2.setForeground(Color.BLACK);
t2.setBackground(new Color(0, 128, 128));
panel.add(t2);

JLabel l3 = new JLabel("Availability");


l3.setBounds(64,110,152,22);
l3.setFont(new Font("Tahoma", Font.BOLD, 14));
l3.setForeground(Color.BLACK);
panel.add(l3);

t3 =new JComboBox(new String[] {"Available", "Occupied"});


t3.setBounds(200,110,156,20);
t3.setFont(new Font("Tahoma", Font.PLAIN, 14));
t3.setForeground(Color.BLACK);
t3.setBackground(new Color(0, 128, 128));
panel.add(t3);

JLabel l4 = new JLabel("Price");


l4.setBounds(64,150,152,22);
l4.setFont(new Font("Tahoma", Font.BOLD, 14));
l4.setForeground(Color.BLACK);
panel.add(l4);

t4 =new JTextField();
t4.setBounds(200,150,156,20);
t4.setFont(new Font("Tahoma", Font.PLAIN, 14));
t4.setForeground(Color.black);
t4.setBackground(new Color(0, 128, 128));
panel.add(t4);

JLabel l5 = new JLabel("Cleaning Status");


l5.setBounds(64,190,152,22);
l5.setFont(new Font("Tahoma", Font.BOLD, 14));
l5.setForeground(Color.BLACK);
panel.add(l5);

t5 =new JComboBox(new String[]{"Cleaned","Dirty"});


t5.setBounds(200,190,156,20);
t5.setFont(new Font("Tahoma", Font.PLAIN, 14));
t5.setForeground(Color.BLACK);
t5.setBackground(new Color(0, 128, 128));
panel.add(t5);

JLabel l6 = new JLabel("Bed Type");


l6.setBounds(64,230,152,22);
l6.setFont(new Font("Tahoma", Font.BOLD, 14));
l6.setForeground(Color.BLACK);
panel.add(l6);
4t6 =new JComboBox(new String[]{"G Bed 1","G Bed 2","G Bed 3","G Bed 4","G Bed 5","G Bed 6","Private Room","Private Room","Private
Room","Private Room","Private Room","ICU Bed 1","ICU Bed 2","ICU Bed 3","ICU Bed 4","ICU Bed 5","ICU Bed 6"});
t6.setBounds(200,230,156,20);
t6.setFont(new Font("Tahoma", Font.PLAIN, 14));
t6.setForeground(Color.BLACK);
t6.setBackground(new Color(0, 128, 128));
panel.add(t6);

b1 = new JButton("Add");
b1.setBounds(64,321,111,33);
b1.setBackground(Color.BLACK);
b1.setForeground(Color.WHITE);
b1.addActionListener(this);
panel.add(b1);

b2 = new JButton("Back");
b2.setBounds(198,321,111,33);
b2.setBackground(Color.BLACK);
b2.setForeground(Color.WHITE);
b2.addActionListener(this);
panel.add(b2);

ImageIcon imageIcon = new ImageIcon(ClassLoader.getSystemResource("icon/roomm.jpg"));


Image image = imageIcon.getImage().getScaledInstance(300,300,Image.SCALE_DEFAULT);
ImageIcon imageIcon1 = new ImageIcon(image);
JLabel label = new JLabel(imageIcon1);
label.setBounds(480,60,300,300);
panel.add(label);

setUndecorated(true);
setLocation(500,70);
setLayout(null);
setSize(850,610);
setVisible(true);
}

@Override
public void actionPerformed(ActionEvent e) {

if (e.getSource() == b1){
try{
conn c = new conn();
String room = t2.getText();
String ava = (String) t3.getSelectedItem();
String status = (String) t5.getSelectedItem();
String price = t4.getText();
String type = (String) t6.getSelectedItem();

String q = "insert into room values('"+room+"', '"+ava+"', '"+status+"', '"+price+"', '"+type+"')";


c.statement.executeUpdate(q);

JOptionPane.showMessageDialog(null,"Room Successfully Added");


setVisible(false);

}catch (Exception E){


E.printStackTrace();
}
}else {
setVisible(false);
}

public static void main(String[] args) {


new AddRoom();
}
}
4 package hospital.management.system;

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.ResultSet;
import java.util.Date;

public class add_patient extends JFrame implements ActionListener {


JComboBox comboBox;
JTextField textFieldNumber, textName, textFieldDisease, textFieldDeposite;
JRadioButton r1, r2;
Choice c1;
JLabel date;
JButton b1 ,b2;

add_patient(){

JPanel panel = new JPanel();


panel.setBounds(5,5,840,600);
panel.setBackground(new Color(0, 128, 128));
panel.setLayout(null);
add(panel);

ImageIcon imageIcon = new ImageIcon(ClassLoader.getSystemResource("icon/add patient.png"));


Image image = imageIcon.getImage().getScaledInstance(200,200,Image.SCALE_DEFAULT);
ImageIcon imageIcon1 = new ImageIcon(image);
JLabel label = new JLabel(imageIcon1);
label.setBounds(550,150,200,200);
panel.add(label);

JLabel labelName = new JLabel("ADD PATIENT");


labelName.setBounds(118,11,260,53);
labelName.setFont(new Font("Tahoma",Font.BOLD,20));
panel.add(labelName);

JLabel labelID = new JLabel("ID :");


labelID.setBounds(35,76,200,14);
labelID.setFont(new Font("Tahoma",Font.BOLD,14));
labelID.setForeground(Color.BLACK);
panel.add(labelID);

comboBox = new JComboBox(new String[] {"Aadhar Card","Voter Id","Driving License"});


comboBox.setBounds(271,73,150,20);
comboBox.setBackground(new Color(0, 128, 128));
comboBox.setForeground(Color.BLACK);
comboBox.setFont(new Font("Tahoma",Font.BOLD,14));
panel.add(comboBox);

JLabel labelNumber = new JLabel("Number :");


labelNumber.setBounds(35,111,200,14);
labelNumber.setFont(new Font("Tahoma",Font.BOLD,14));
labelNumber.setForeground(Color.BLACK);
panel.add(labelNumber);

textFieldNumber = new JTextField();


textFieldNumber.setBounds(271,111,150,20);
panel.add(textFieldNumber);

JLabel labelName1 = new JLabel("Name :");


labelName1.setBounds(35,151,200,14);
labelName1.setFont(new Font("Tahoma",Font.BOLD,14));
labelName1.setForeground(Color.BLACK);
panel.add(labelName1);

textName = new JTextField();


textName.setBounds(271,151,150,20);
panel.add(textName);

JLabel labelGender = new JLabel("Gender :");


labelGender.setBounds(35,191,200,14);
labelGender.setFont(new Font("Tahoma",Font.BOLD,14));
labelGender.setForeground(Color.BLACK);
panel.add(labelGender);
4 r1 = new JRadioButton("Male");
r1.setFont(new Font("Tahoma",Font.BOLD,14));
r1.setForeground(Color.BLACK);
r1.setBackground(new Color(0, 128, 128));
r1.setBounds(271,191,80,15);
panel.add(r1);

r2 = new JRadioButton("Female");
r2.setFont(new Font("Tahoma",Font.BOLD,14));
r2.setForeground(Color.BLACK);
r2.setBackground(new Color(0, 128, 128));
r2.setBounds(350,191,80,15);
panel.add(r2);

JLabel labelDisease = new JLabel("Disease :");


labelDisease.setBounds(35,231,200,14);
labelDisease.setFont(new Font("Tahoma",Font.BOLD,14));
labelDisease.setForeground(Color.BLACK);
panel.add(labelDisease);

textFieldDisease = new JTextField();


textFieldDisease.setBounds(271,231,150,20);
panel.add(textFieldDisease);

JLabel labelRoom = new JLabel("Room :");


labelRoom.setBounds(35,274,200,14);
labelRoom.setFont(new Font("Tahoma",Font.BOLD,14));
labelRoom.setForeground(Color.BLACK);
panel.add(labelRoom);

c1 = new Choice();
try {
conn c = new conn();
ResultSet resultSet = c.statement.executeQuery("select * from room");
while (resultSet.next()){
c1.add(resultSet.getString("roomnumber"));
}
}catch (Exception e){
e.printStackTrace();
}
c1.setBounds(271,274,150,20);
c1.setFont(new Font("Tahoma", Font.BOLD, 14));
c1.setForeground(Color.black);
c1.setBackground(new Color(0, 128, 128));
panel.add(c1);

JLabel labelDate = new JLabel("Time :");


labelDate.setBounds(35,316,200,14);
labelDate.setFont(new Font("Tahoma",Font.BOLD,14));
labelDate.setForeground(Color.BLACK);
panel.add(labelDate);

Date date1 = new Date();

date = new JLabel(""+date1);


date.setBounds(271,316,250,14);
date.setForeground(Color.BLACK);
date.setFont(new Font("Tahoma",Font.BOLD,14));
panel.add(date);

JLabel labelDeposite = new JLabel("Deposite :");


labelDeposite.setBounds(35,359,200,17);
labelDeposite.setFont(new Font("Tahoma",Font.BOLD,14));
labelDeposite.setForeground(Color.black);
panel.add(labelDeposite);

textFieldDeposite = new JTextField();


textFieldDeposite.setBounds(271,359,150,20);
panel.add(textFieldDeposite);

b1 = new JButton("ADD");
b1.setBounds(100,430,120,30);
b1.setForeground(Color.WHITE);
b1.setBackground(Color.black);
b1.addActionListener(this);
panel.add(b1);
4 labelDeposite.setBounds(35,359,200,17);
labelDeposite.setFont(new Font("Tahoma",Font.BOLD,14));
labelDeposite.setForeground(Color.black);
panel.add(labelDeposite);

textFieldDeposite = new JTextField();


textFieldDeposite.setBounds(271,359,150,20);
panel.add(textFieldDeposite);

b1 = new JButton("ADD");
b1.setBounds(100,430,120,30);
b1.setForeground(Color.WHITE);
b1.setBackground(Color.black);
b1.addActionListener(this);
panel.add(b1);

b2 = new JButton("Back");
b2.setBounds(260,430,120,30);
b2.setForeground(Color.WHITE);
b2.setBackground(Color.black);
b2.addActionListener(this);
panel.add(b2);

setUndecorated(true);
setSize(850,610);
setLayout(null);
setLocation(500,70);
setVisible(true);

@Override
public void actionPerformed(ActionEvent e) {
if (e.getSource() == b1){
conn c = new conn();
String radioBTN = null;
if (r1.isSelected()){
radioBTN = "Male";
}else if (r2.isSelected()){
radioBTN = "Female";
}
String s1 = (String)comboBox.getSelectedItem();
String s2 = textFieldNumber.getText();
String s3 = textName.getText();
String s4 = radioBTN;
String s5 = textFieldDisease.getText();
String s6 = c1.getSelectedItem();
String s7 = date.getText();
String s8 = textFieldDeposite.getText();

try {

String q ="insert into patient_info values ('"+s1+"', '"+s2+"','"+s3+"','"+s4+"', '"+s5+"', '"+s6+"', '"+s7+"', '"+s8+"')";
String q1 = "update room set Availability = 'Occupied' where roomnumber = "+s6;
c.statement.executeUpdate(q);
c.statement.executeUpdate(q1);
JOptionPane.showMessageDialog(null, "added Successfully");
setVisible(false);

}catch (Exception E) {
E.printStackTrace();
}
}else {
setVisible(false);
}

public static void main(String[] args) {


new add_patient();
}

}
4
8
OUTPUT
4
4
9 FUTURE ENHANCEMENT

To enhance healthcare delivery and operational efficiency, the Hospital Management System
can integrate several advanced technologies. AI and machine learning capabilities would
enable smarter diagnostics through pattern recognition in patient data, while predictive
analytics could forecast admission trends and resource needs. Virtual assistants powered by
natural language processing could handle routine patient inquiries, reducing administrative
burdens.

The integration of IoT devices would revolutionize patient monitoring through connected
wearables that track vital signs in real-time, enabling proactive care. Smart hospital
infrastructure using IoT sensors could automate equipment tracking and environmental
controls. Blockchain technology would ensure data integrity through decentralized, tamper-
proof medical records while enabling secure information sharing between providers.

Telemedicine features would expand access to care through integrated video consultation
platforms and digital prescription services. Advanced analytics would provide administrators
with real-time operational insights through customizable dashboards and automated
reporting tools. Cloud-based mobile applications would extend system accessibility, allowing
patients and providers to manage appointments and access records securely from any
location.

Operational efficiency could be further improved through robotic process automation for
administrative tasks and AI-powered inventory management. The system could incorporate
robotic surgical assistance interfaces for precision procedures. Personalized medicine
capabilities would leverage patient data to generate tailored treatment plans, while sentiment
analysis tools would continuously assess patient feedback for service improvements.

To address growing cybersecurity concerns, the enhanced system would implement multi-
factor authentication, advanced encryption protocols, and continuous threat monitoring.
These comprehensive upgrades would transform hospital operations, creating a more
connected, intelligent, and patient-focused healthcare ecosystem.
4
10 CONCLUSION

In this paper, we examined the development and functionality of a Hospital Management


System (HMS), emphasizing its role in streamlining healthcare operations, improving
patient care, and enhancing administrative efficiency. The system integrates core features
such as patient registration, electronic health records (EHR), appointment scheduling,
billing, and inventory management, providing a comprehensive solution for medical staff,
administrators, and patients. By automating critical workflows and offering an intuitive
interface, the HMS enhances productivity while ensuring accuracy and security in patient
data management.

Through implementation and testing, the system successfully met its primary objectives of
reducing manual workload, minimizing errors, and improving service delivery.
Performance evaluations confirmed its reliability in handling patient records,
appointment management, and billing processes, with positive feedback on usability from
both medical professionals and administrative staff. However, opportunities for
improvement remain, particularly in scalability for large healthcare networks, real-time
data analytics for decision-making, and deeper integration with wearable health devices.
Future developments could leverage AI for predictive healthcare analytics, blockchain for
enhanced data security, and mobile applications for remote patient engagement.

Despite current limitations, this Hospital Management System establishes a strong


foundation for digital transformation in healthcare, demonstrating significant potential
to enhance operational efficiency and patient outcomes. With continued refinement and
technological integration, the HMS can evolve into an even more powerful tool for
modern medical institutions.
4
11 BIBLOGRAPHY

https://www.researchgate.net/publication/367460409_The_Hospital_Management_Sy
stem
https://www.studocu.com/in/document/acharya-nagarjuna-university/mca-ii-
sem/hospital-management-system-project-documentation/41909523
https://www.geeksforgeeks.org/hospital-management-system-project-in-software-
development/
Thank You

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy