0% found this document useful (0 votes)
23 views34 pages

STE Pro

Uploaded by

priyabhat530
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)
23 views34 pages

STE Pro

Uploaded by

priyabhat530
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/ 34

Latthe Education Society’s Polytechnic Sangli

Department of computer engineering

Micro-Project Proposal

Subject- Software testing (22518)

Title-Hospital Management System

Submitted by

Roll No Student Name Enrollment Number

243244 Miss.Priya Rajkumar Bhat 2200430275


Introduction

The Hospital Management System (HMS) is a comprehensive software solution


designed to streamline and enhance the operations of healthcare facilities. This project aims to
automate and integrate various functions within a hospital setting, including patient management,
staff management, appointment scheduling, billing, and medical records management. The system
is developed using Java, a robust and widely-used programming language, which ensures
scalability, reliability, and maintainability.

To facilitate the efficient management of patient information, including


personal details, medical history, and treatment records. This helps in providing timely and
accurate medical care.To provide a user-friendly interface for scheduling, rescheduling, and
canceling appointments, thereby reducing wait times and optimizing the utilization of medical
resources.

 Key Features

1) User Authentication and Authorization: Secure login mechanisms for different types of

users, including administrators, doctors, nurses, and patients, to ensure that each user has access

to appropriate functionalities.

2) Patient Registration and Management: Tools for registering new patients, updating patient

information, and managing patient records, including medical history and treatment plans.

3) Appointment System: Interfaces for scheduling, managing, and viewing appointments,

along with notifications and reminders for both patients and medical staff.

4) Billing and Invoicing: Features for generating and managing invoices, processing payments,

and maintaining records of financial transactions.

5) Staff Management: Functionality for maintaining staff profiles, scheduling shifts, and

tracking performance and availability.

6) Medical Records and Reports: Tools for recording and viewing medical data, generating

reports, and tracking patient progress.


Software Testing:- Testing is the method to check weather the actual software product matches
expected requirements and to ensure that software product is defect free. Ti involves execution of
software / system component using manual or automated tools to Evaluate one or more properties of
interest. The purpose of software testing is to identify errors, gaps or missing requirements in contrast to
actual requirements.

Why Testing:- The testing is important since it discover defects/bugs before the delivery to the
client,which guarantees the quality of the software . it makes the software more reliable and easy to
use.Thoroughly tested software ensure reliable and high-performance software Operation

AIM OF THE MICRO-PROJECT

1. Automate Administrative Task: Streamline processes like Patient registration, Appointment


scheduling and billing

2. Manage Medical Records: Securely Store and access patients medical Histories and Information.

3. Optimize Inventory: Track and Manage Medical supplies and equipment efficiently

4. Enhance Reporting: Generate reports and Analytic for better decision-making and Operational
insights

INTENTED COURSE OUTCOMES

 Apply various software testing methods.

 Prepare test case for different type and levels of Testing

 Prepare test plan for an application.

 Test software for performance measure using automated testing tools


LITERATURE REVIEW

 https://www.geeksforgeeks.org/c-program-for-hospital-management-system/
In the Above website we learn about software testing and their concepts.
 https://www.javatpoint.com/hospital-management-system-in-c
In the above website we prepare our micro-project.
 https://www.slideshare.net/slideshow/hospital-management-system-project-report-
pdf/267927517
We took reference to our project from this website.

RESOURCE REQUIRED :

Sr.no Requirement Specification Remark

1. Laptop Intel(R)Core(TM)i5
CPU RAM 8 GB.

2. Software Visual studio express


2012,Microsoft SQL
Database
Management System
MS WORD

3. Any Other Resource Laser printer


used

4. Printing Material Printing


Paper,ink,toner
ACTUAL METHODOLOGY FOLLOWED

For implementing Login Page System various models can be used.

We are going to use waterfall model to implement our software

Waterfall model:

The waterfall model is a popular version of the systems development life cycle model
forsoftware engineering. Often considered the classic approach to the systems development life
cycle, the waterfall model describes a development method that is linear and sequential. Waterfall
development has distinct goals for each phase of development. Imagine a waterfall on the cliff of a
steep mountain. Once the water has flowed over the edge of the cliff and has begun its journey
down the side of the mountain, it cannot turn back. It is the same with waterfall development. Once
a phase of development is completed, the development proceeds to the next phase and there is no
turning point.

 Login Form : The login authentication system is very common for any web
application. It allows registered users to access the website and members-only features.
It is also helpful when we want to store information for users.

 Insert Hospital data: this feature is use to insert a Hospital’s data into system. When
new doctor or new Patient comes into Hospital then we have to add details of that
doctor or patient into system so we use this feature.

 Search result: get result which can be added.

 ppointments : show the patient and doctor all data and also shows the appointments of
the patients
Hospital management System

 Login From

TC_Sr. Step Input Expected Actual Result

1 Enter Username Admin Username username is Pass


should be filled
filled successful
2 Enter wrong in valid adminS Username Username Pass
username should be not should not
accepted accepted
3 Enter password ***** Password Password Pass
should be should
accepted accepted
4 Enter a wrong password ****** Password Password Pass
should not be should not
accepted accepted
5 Click on login button Log In Login Login Pass
successfully successfully

 Add Patient

Test Test case Name steps Input data Expected Actual


Case ID result result

Enter valid Patient should patient is


TC_01 Add Patient Name name in string : be filled filled Pass
e.g XYZ successful

TC_02 Click on OK Patient add Patient should Patient added Pass


Button be add successfully
Enter detail in
TC_02 Add Patient Detail string or Details of Detail of Pass
number: e.g patients should patients
DOB:13 jan be accepted accepted
2004 successfully

TC_03 Click on OK Patient details Patients Patients Pass


Button add detailed info detailed info
should be add added
successfully
 View Patients

Test Test case Name steps Input data Expected Actual


Case ID result result

Enter valid Patient name Patient name


TC_01 Enter Patient Name name in string : should be is filled Pass
e.g XYZ filled successful

TC_02 Click on OK Patients shows Patients name Patient name Pass


Button and there and there
detailed info detailed info
should be shows
shows successfully

 Delete Patient

Test Test case Name steps Input data Expected Actual


Case ID result result

Enter valid Patient name Patient name


TC_01 Enter Patient Name name in string : should be is filled Pass
e.g XYZ filled successful

TC_02 Click on OK Patients delete Patients name Patient name Pass


Button and there and there
detailed info detailed info
should be remove
delete successfully

 Add Doctor

Test Test case Name steps Input data Expected Actual


Case ID result result

Enter valid Doctor name Doctor name


TC_01 Add Doctor Name name in string : should be is filled Pass
e.g XYZ filled successful

TC_02 Click on OK Doctor add Doctor should Doctor added Pass


Button be add successfully
Enter detail in
TC_02 Add doctor string or Details of Detail of Pass
Specialization number: e.g doctor should doctor
detail DOB:13 jan be accepted accepted
2004 successfully
TC_03 Click on OK Doctor details Doctor Doctor Pass
Button add detailed info detailed info
should be add added
successfully

 View all Doctors available in hospital

Test Test case Name steps Input data Expected Actual


Case ID result result

Enter valid Doctor name Doctor name


TC_01 Enter Doctor Name name in string : should be is filled Pass
e.g XYZ filled successful

TC_02 Click on OK Doctor shows Doctor name Doctor name Pass


Button and there and there
detailed info detailed info
should be shows
shows successfully

 Delete Doctor

Test Test case Name steps Input data Expected Actual


Case ID result result

Enter valid Doctor name Doctor name


TC_01 Enter Doctor Name name in string : should be is filled Pass
e.g XYZ filled successful

TC_02 Click on OK Doctor delete Doctor name Doctor name Pass


Button and there and there
detailed info detailed info
should be remove
delete successfully
 Add Appointment

Test Test case Name steps Input data Expected Actual


Case ID result result

Enter valid Patient should patient is


TC_01 Add Patient Name name in string : be filled filled Pass
e.g XYZ successful

TC_02 Click on OK Appointment Appointment Appointment Pass


Button add should be add added
successfully
Enter valid
TC_02 Add Doctor Name name in string : Name of Name of Pass
e.g XYZ Doctor should Doctor
be accepted accepted
successfully

TC_03 Click on OK Appointment Appointment Appointment Pass


Button add should be add added
successfully

TC_04 Date of Enter valid date Appointment Appointment Pass


appointment in number :e.g date should date accepted
2024-07-30 accepted successfully

TC_05 Click on OK Appointment Appointment Appointment Pass


Button date add date should be date added
add successfully

TC_04 Date of Enter valid date Appointment Appointment Pass


appointment in number :e.g date should date accepted
2024-07-30 accepted successfully

TC_05 Click on OK Appointment Appointment Appointment Pass


Button Time add Time should Time added
be add successfully
 View Appointment :

Test Test case Name steps Input data Expected Actual


Case ID result result

Enter valid Patient name Patient name


TC_01 Enter Patient Name name in string : should be is filled Pass
e.g XYZ filled successful
Appointment
TC_02 Click on OK Appointment and there Appointment Pass
Button shows detailed info and there
should be detailed info
shows shows
successfully

 Delete Appointment :

Test Test case Name steps Input data Expected Actual


Case ID result result

Enter valid Patient name Patient name


TC_01 Enter Patient Name name in string : should be is filled Pass
e.g XYZ filled successful

TC_02 Click on OK Appointment Appointment Appointment Pass


Button delete and there and there
detailed info detailed info
should be remove
delete successfully
 Program Code

Hospital Management system code :-


 Login Frame: For user authentication.
 Main Application Frame: For navigating to different sections of the system.
 Patient Management: To manage patient details.
 Doctor Management: To manage doctor details.
 Appointment Scheduling: To schedule and manage appointments.

 Login Frame:-

import javax.swing.*;

import java.awt.*;

import java.awt.event.ActionEvent;

import java.awt.event.ActionListener;

public class LoginFrame extends JFrame {

private JTextField usernameField;

private JPasswordField passwordField;

public LoginFrame() {

setTitle("Hospital Management System - Login");

setSize(300, 150);

setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

setLayout(new GridLayout(3, 2));

JLabel usernameLabel = new JLabel("Username:");

JLabel passwordLabel = new JLabel("Password:");


usernameField = new JTextField();

passwordField = new JPasswordField();

JButton loginButton = new JButton("Login");

JButton cancelButton = new JButton("Cancel");

add(usernameLabel);

add(usernameField);

add(passwordLabel);

add(passwordField);

add(loginButton);

add(cancelButton);

loginButton.addActionListener(new ActionListener() {

@Override

public void actionPerformed(ActionEvent e) {

String username = usernameField.getText();

String password = new String(passwordField.getPassword());

if (username.equals("admin") && password.equals("admin")) {

new MainFrame().setVisible(true);

dispose(); // Close login frame

} else {

JOptionPane.showMessageDialog(null, "Invalid username or password", "Login Error",


JOptionPane.ERROR_MESSAGE);

}
});

cancelButton.addActionListener(new ActionListener() {

@Override

public void actionPerformed(ActionEvent e) {

System.exit(0); // Close application

});

public static void main(String[] args) {

SwingUtilities.invokeLater(() -> new LoginFrame().setVisible(true));

}
 Main Application Frame

import javax.swing.*;

import java.awt.*;

import java.awt.event.ActionEvent;

import java.awt.event.ActionListener;

public class MainFrame extends JFrame {

public MainFrame() {

setTitle("Hospital Management System");

setSize(800, 600);

setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

setLayout(new BorderLayout());

JMenuBar menuBar = new JMenuBar();

JMenu patientMenu = new JMenu("Patients");

JMenu doctorMenu = new JMenu("Doctors");

JMenu appointmentMenu = new JMenu("Appointments");

JMenu exitMenu = new JMenu("Exit");

JMenuItem managePatients = new JMenuItem("Manage Patients");

JMenuItem manageDoctors = new JMenuItem("Manage Doctors");

JMenuItem manageAppointments = new JMenuItem("Manage Appointments");

JMenuItem exitItem = new JMenuItem("Exit");

patientMenu.add(managePatients);

doctorMenu.add(manageDoctors);
appointmentMenu.add(manageAppointments);

exitMenu.add(exitItem);

menuBar.add(patientMenu);

menuBar.add(doctorMenu);

menuBar.add(appointmentMenu);

menuBar.add(exitMenu);

setJMenuBar(menuBar);

managePatients.addActionListener(new ActionListener() {

@Override

public void actionPerformed(ActionEvent e) {

new PatientFrame().setVisible(true);

});

manageDoctors.addActionListener(new ActionListener() {

@Override

public void actionPerformed(ActionEvent e) {

new DoctorFrame().setVisible(true);

});

manageAppointments.addActionListener(new ActionListener() {

@Override

public void actionPerformed(ActionEvent e) {

new AppointmentFrame().setVisible(true);
}

});

exitItem.addActionListener(new ActionListener() {

@Override

public void actionPerformed(ActionEvent e) {

System.exit(0);

});

}
 Patient Management

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

public class PatientFrame extends JFrame {

private JTextArea patientArea;

public PatientFrame() {
setTitle("Manage Patients");
setSize(600, 400);
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
setLayout(new BorderLayout());

patientArea = new JTextArea();


JScrollPane scrollPane = new JScrollPane(patientArea);

JButton addButton = new JButton("Add Patient");


JButton viewButton = new JButton("View Patients");
JButton deleteButton = new JButton("Delete Patient");

JPanel panel = new JPanel();


panel.add(addButton);
panel.add(viewButton);
panel.add(deleteButton);

add(panel, BorderLayout.SOUTH);
add(scrollPane, BorderLayout.CENTER);

addButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// Dummy implementation for adding patient
String name = JOptionPane.showInputDialog("Enter patient name:");
String details = JOptionPane.showInputDialog("Enter patient details:");
if (name != null && details != null) {
patientArea.append("Patient: " + name + "\nDetails: " + details + "\n\n");
}
}
});

viewButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// Dummy implementation for viewing patients
JOptionPane.showMessageDialog(null, patientArea.getText(), "Patient List",
JOptionPane.INFORMATION_MESSAGE);
}
});

deleteButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// Dummy implementation for deleting a patient
String name = JOptionPane.showInputDialog("Enter patient name to delete:");
String text = patientArea.getText();
patientArea.setText(text.replaceAll("Patient: " + name + ".*?\\n\\n", ""));
}
});
}
}
 Doctor Management

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

public class DoctorFrame extends JFrame {

private JTextArea doctorArea;

public DoctorFrame() {
setTitle("Manage Doctors");
setSize(600, 400);
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
setLayout(new BorderLayout());

doctorArea = new JTextArea();


JScrollPane scrollPane = new JScrollPane(doctorArea);

JButton addButton = new JButton("Add Doctor");


JButton viewButton = new JButton("View Doctors");
JButton deleteButton = new JButton("Delete Doctor");

JPanel panel = new JPanel();


panel.add(addButton);
panel.add(viewButton);
panel.add(deleteButton);

add(panel, BorderLayout.SOUTH);
add(scrollPane, BorderLayout.CENTER);
addButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// Dummy implementation for adding doctor
String name = JOptionPane.showInputDialog("Enter doctor name:");
String specialty = JOptionPane.showInputDialog("Enter doctor specialty:");
if (name != null && specialty != null) {
doctorArea.append("Doctor: " + name + "\nSpecialty: " + specialty + "\n\n");
}
}
});

viewButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// Dummy implementation for viewing doctors
JOptionPane.showMessageDialog(null, doctorArea.getText(), "Doctor List",
JOptionPane.INFORMATION_MESSAGE);
}
});

deleteButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// Dummy implementation for deleting a doctor
String name = JOptionPane.showInputDialog("Enter doctor name to delete:");
String text = doctorArea.getText();
doctorArea.setText(text.replaceAll("Doctor: " + name + ".*?\\n\\n", ""));
}
});
}
}
 Appointment Scheduling

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

public class AppointmentFrame extends JFrame {

private JTextArea appointmentArea;

public AppointmentFrame() {
setTitle("Manage Appointments");
setSize(600, 400);
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
setLayout(new BorderLayout());

appointmentArea = new JTextArea();


JScrollPane scrollPane = new JScrollPane(appointmentArea);

JButton addButton = new JButton("Add Appointment");


JButton viewButton = new JButton("View Appointments");
JButton deleteButton = new JButton("Delete Appointment");

JPanel panel = new JPanel();


panel.add(addButton);
panel.add(viewButton);
panel.add(deleteButton);

add(panel, BorderLayout.SOUTH);
add(scrollPane, BorderLayout.CENTER);
addButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// Dummy implementation for adding appointment
String patientName = JOptionPane.showInputDialog("Enter patient name:");
String doctorName = JOptionPane.showInputDialog("Enter doctor name:");
String date = JOptionPane.showInputDialog("Enter appointment date (e.g., 2024-07-30):");
if (patientName != null && doctorName != null && date != null) {
appointmentArea.append("Patient: " + patientName + "\nDoctor: " + doctorName + "\nDate: " +
date + "\n\n");
}
}
});

viewButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// Dummy implementation for viewing appointments
JOptionPane.showMessageDialog(null, appointmentArea.getText(), "Appointment List",
JOptionPane.INFORMATION_MESSAGE);
}
});

deleteButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// Dummy implementation for deleting an appointment
String date = JOptionPane.showInputDialog("Enter appointment date to delete:");
String text = appointmentArea.getText();
appointmentArea.setText(text.replaceAll("Patient: .*?\\nDoctor: .*?\\nDate: " + date + ".*?\\n\\n",
""));
}
});
}
}
 Compile:
javac LoginFrame.java MainFrame.java PatientFrame.java DoctorFrame.java AppointmentFrame.java

 Run:
java LoginFrame

 Output:-
 Login Frame
 If Login Frame invalid

 Patient Information

 New Patient Add


 Patients

 View all Patients


 Delete Patient
 Doctors information:-

 Add Doctors :-
 View Doctors available in hospital :-
 Delete Doctor :-

 Appointment information :-
 Add Appointment :-
 View Appointment :-

 Delete Appointment :-
SKILL DEVELOPED/LEARNING OUT OF THIS MICRO PROJECT:

By this project we understand how to use different testing methods and tools to test
software in a Ho s p i t a l management systemand understood its importance in daily life.

 We understood basics of test plan and its importance in software testing.


 We understood various software methods and how to use these methods to implement
software testing.

APPLICATION OF MICRO PROJECT

1.It is used to manage Hospital Data


2.It is used to embedded for database.
3.It is responsive for any devices.

.AREA OF FUTURE DEVELOPMENT:

 In this project, we can understand all the test plan.


 Using testing data we can test performance of software under various conditions.
 We also know about the different software testing methods and tools

You might also like