Hospital Management System
Submitted in fulfillment of the requirements of
micro-project
Advanced Java Programming
By
“Soham Parab”
“Aryan Tambe”
ROLL NO:- 19
20
ENROLLMENT NO:- 2109640211
2109640212
SUBJECT INCHARGE
Mrs. Smita Kuldiwar
Computer Engineering Department
Academic Year 2024-2025
CERTIFICATE
This is to certify that the microproject
"Hospital Management System"
is done by
“Soham Parab”
“Aryan Tambe”
is submitted for
“Advanced Java Programming”
for
the diploma in Computer Engineering to the
Maharashtra State Board of Technical Education,
Mumbai (Autonomous) (ISO-9001-2008) (ISO/IEC 27001:2013)
Subject Incharge Head of Department
(Mrs.Smita Kuldiwar) (Mrs.Smita
Kuldiwar)
Hospital Management System
Submitted in fulfillment of the requirements
of micro-project
Advanced Java Programming
By
Roll Name Enrollment Process and Individual Total(10)
No No product Presentation/
assessment(6 work(4
Marks) marks)
SOHAM P. 2109640211
PARAB
ARYAN J. 2109640212
TAMBE
SUBJECT INCHARGE
Mrs. Smita Kuldiwar
Computer Engineering Department
Academic Year 2024-2025
COMPUTER ENGINEERING DEPARTMENT
VISION AND MISSION OF THE PROGRAMME
Vision: -
To provide technically competent and skilled diploma computer
engineers to fulfill the needs of industry and society.
Mission: -
M1:- To provide industry oriented quality education and training.
M2:- To impart and inculcate theoretical and practical knowledge.
M3:- To provide interpersonal skills and social ethics.
COMPUTER ENGINEERING DEPARTMENT
PROGRAMME OUTCOMES
PO1: Basic and Discipline specific knowledge: Apply knowledge of basic
mathematics, science and engineering fundamentals and engineering specialization to solve
the engineering problems.
PO2: Problem analysis: Identify and analyze well-defined engineering problems
using codified standard methods.
PO3: Design/ Development of solutions: Design solutions for well-defined
technical problems and assist with the design of systems components or processes to
meet specified needs.
PO4: Engineering Tools, Experimentation and Testing: Apply modern
engineering tools and appropriate technique to conduct standard tests and
measurements.
PO5: Engineering practices for society, sustainability and environment:
Apply appropriate technology in context of society, sustainability, environment and
ethical practices
PO6: Project Management: Use engineering management principles individually, as
a team member or a leader to manage projects and effectively communicate about well-
defined engineering activities.
PO7: Life-long learning: Ability to analyze individual needs and engage in updating
in the context of technological changes
COMPUTER ENGINEERING DEPARTMENT
PROGRAMME EDUCATIONAL OBJECTIVES
PEO1: Provide socially responsible, environment friendly solutions to
Computer engineering related broad-based problems adapting professional ethics.
PEO2: Adapt state-of-the-art Computer engineering broad-based technologies to work
in multidisciplinary work environments.
PEO3: Solve broad-based problems individually and as a team member
communicating effectively in the world of work.
PROGRAMME SPECIFIC OUTCOMES
PSO1: Computer Software and Hardware Usage: Use state-of-the-art technologies
for operation and application of computer software and hardware.
PSO2: Computer Engineering Maintenance: Maintain computer engineering
related software and hardware systems.
Hospital Management System
Aim
Develop a Hospital Management System Program. Which takes user information as input and
performs operations on it?
Course Outcomes
1. Develop programs using GUI Framework (AWT and Swing).
2. Handle events of AWT and Swings components.
3. Develop programs to handle events in Java programming.
Proposed Methodology
● First, Search the topic for which you want to make a project, and then propose it to the
Subject In charge.
● After finalizing the topic, start gathering the information about your project.
● For Program Execution, write the source code of your program in any suitable IDE.
● Recheck the program with the subject in charge.
● Now, it’s time to make a report of your Selected Project.
Action Plan
Sr. Detail of activity Plan Start Date Plan Finish Date
No.
1. Searching of Topic 04-08-2024 06-08-2024
2. Gathering information 09-08-2024 13-08-2024
3. Execution of Program 15-08-2024 22-08-2024
4. Report Making 05-09-2024 12-09-2024
Subject In-charge
(Mrs.Smita Kuldiwar)
Hospital Management System
Rationale
Java technology is widely used for web application development.Based on the object oriented
concepts and core java concepts, this course will equip the students with the required knowledge
and skill of object oriented programming approach needed for the development of robust, powerful
web applications.Through this course students will get hands-on experience on GUI Technologies
viz. AWT and swings, event handling mechanisms and network programming.The course also
gives coverage to various web applications aspects like Database Interaction,server side
components and servlets.
Literature
Hospital management system is a computer system that helps manage the information related to
health care and aids in the job completion of health care providers effectively. They manage the
data related to all departments of healthcare. Hospital management system is a computer system
that helps manage the information related to health care and aids in the job completion of health
care providers effectively. They manage the data related to all departments of healthcare.
Actual Methodology Followed
Topic Work Done Data Work Done By
1. Searching of topic (Hospital Management System) Aryan Tambe
2. Gathering of Information (Rationale, Aim, Applications, Aryan Tambe
etc.)
3. Execution of Program 1. Download Intellij. Soham Parab
2. Install Intellij.
3. Run the program.
4. Get output.
4. Report Making Finalization of report Soham Parab
Resources Required
Sr. Name of Resources Specification Qty. Remark
No.
1. Computer Intel i3, 4GB RAM or above 1 -
2. MS-Word Office 2007 or above 1 -
3. Android IDE Version 3.0 or above 1 -
Source Code
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
interface Displayablee {
void display();
}
class Person11 {
protected String name;
protected int age;
protected long phno;
public Person11(String name, int age, long phno) {
this.name = name;
this.age = age;
this.phno = phno;
}
}
class Patientt1 extends Person11 implements Displayablee {
public Patientt1(String name, int age, long phno)
{ super(name, age, phno);
}
@Override
public void display() {
JOptionPane.showMessageDialog(null, "Patient details:\n" +
"Patient name: " + name + "\n" +
"Patient age: " + age + "\n" +
"Phone number: " + phno+"\n"+
"\nAvailable doctors:\n1] Dr.Soham\n2]
Dr.Aryan"+ "\nYour appointment is booked!");
}
}
class HospitalManagementSystemGUI1 extends JFrame {
private Patientt1[] patients;
private int currentPatientIndex = 0;
private JLabel nameLabel;
private JLabel ageLabel;
private JLabel phnoLabel;
private JTextField nameField;
private JTextField ageField;
private JTextField phnoField;
private JButton addPatientButton;
private JButton displayPatientButton;
private JButton exitButton;
public HospitalManagementSystemGUI1() {
setTitle("Hospital Management System");
setSize(400, 200);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE)
; setLayout(new BorderLayout());
JPanel inputPanel = new JPanel(new GridLayout(4, 2));
add(inputPanel, BorderLayout.NORTH);
patients = new Patientt1[10];
inputPanel.add(new JLabel("Patient name: "));
nameField = new JTextField(20);
inputPanel.add(nameField);
inputPanel.add(new JLabel("Age: "));
ageField = new JTextField(3 );
inputPanel.add(ageField);
inputPanel.add(new JLabel("Phone number: "));
phnoField = new JTextField(15);
inputPanel.add(phnoField);
JButton addPatientButton = new JButton("Add Patient");
add(addPatientButton, BorderLayout.EAST);
JButton displayPatientButton = new JButton("Display Patient");
add(displayPatientButton, BorderLayout.CENTER);
JButton exitButton = new JButton("Exit");
add(exitButton, BorderLayout.WEST);
addPatientButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
String name = nameField.getText();
int age = Integer.parseInt(ageField.getText());
long phno = Long.parseLong(phnoField.getText());
patients[currentPatientIndex] = new Patientt1(name, age, phno);
currentPatientIndex++;
nameField.setText("");
ageField.setText("");
phnoField.setText("");
}
});
displayPatientButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
if (currentPatientIndex > 0) {
String input = JOptionPane.showInputDialog(null, "Enter patient number (1-" +
currentPatientIndex + "):");
int pat_no = Integer.parseInt(input);
if (pat_no >= 1 && pat_no <= currentPatientIndex) {
patients[pat_no - 1].display();
} else {
JOptionPane.showMessageDialog(null, "Invalid patient number!");
}
} else {
JOptionPane.showMessageDialog(null, "No patients added yet!");
}
}
});
exitButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
System.exit(0);
}
});
}
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
new
HospitalManagementSystemGUI1().setVisible(true); }
});
}
}
Output
Skill Developed
1. Able to develop Java Programs
2. Able to analyze and fix the errors.
3. Able to debug the program.
Application
Can be used in college and school level programs.
Subject In-charge
(Mrs. Smita Kuldiwar)