Beruflich Dokumente
Kultur Dokumente
J
KABILESH.R KANAGARAJ.J
LALRINSIAMMA MANIKANDAN.A
VANLALCHHUNGA ANANTH.K
ON
HOSPITAL MANAGEMENT
Contents
2.Introduction
Java is an object-oriented programming, multi-threaded
programming developed by Sun Microsystems is a Platform
Independent programming language which is used to create an
application useful for Hospital in managing the patients and doctors
records and use it for further purpose. Microsoft Access is the most
commonly used application to build a GUI application. One can
create a database using MS Access. With that database one can
establish an ODBC connection with any language. Here by using MS
Access as a back end and by using java the application is generated.
Given the topic Hospital Management we need to do
various operations like searching, viewing and updating. First of all
the fields required are gathered. In order to maintain simplicity we
have classified it into three parts i.e. patients, doctors and billing part.
Each part has its own features. Since Java is a multi
threaded programming language each and every module is linked.
Once the connections are made and the coding is done it is ready
for execution. It can be used as an application anywhere required.
Report is nothing but a view of specified fields as a whole. It may be
useful in the case of generating overall report. For that we have also
added a report to it.
Project Description:
i. Main Form
It is a form which helps in providing entry to the application. It
contains the fields “USERNAME” and “PASSWORD”. The person
knowing the correct username and correct password can only enter
the application. This is made in order to assure that the employee who
is assigned to work with it can alone use it.
After providing this it gets transferred to the start.java . If the
incorrect password or username is given then there arises a error
dialogue box saying to provide correct username and password.
• Name
• Address
• Contact
• Doctor Id
• Specialization
• Working from
• Working to
Once all the fields are filled then add button can be clicked. If
all the details or correct a dialog box showing “Details Added
Successfully!!” splashes.
There are three buttons in the form they are
• Add
• Clear
• Back
Clicking Back returns to the Doctor Start Form. By clicking the
Clear button it erases all the items in the text boxes and displays an
empty text boxes with cursor on the first field.
This form is to do the billing. This form is useful for the purpose
of billing. It has the following fields
➢ Patient Name
➢ Patient Number
➢ Date of Admission
➢ Date of Discharge
➢ Room Type
➢ Total Amount
First of all the patient number is entered and the search button is
clicked thereby displaying all the details specified above.
i. Report Form:
Patient’s Report
Doctor’s Report
i. Patient’s Report:
as a tabular form with the above as title and the records of each
patient as a row. Since vector is dynamic the number of patients can
be more.
• Name
• Address
• Contact
• Doctor Id
• Specialization
• Working from
• Working to
Finally the Billing details after being closed the details of bill is
also printed in the command prompt in addition.
1. Coding:
/* main.java */
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
}
else{
JOptionPane.showMessageDialog(null,"Invaild User name
and password" , "WARNING!!!",JOptionPane.INFORMATION_MESSAGE);
userTxt.setText("");
passwordTxt.setText("");
}
}
else if(source.equals(exitBtn))
{
System.exit(0);
}
}
public static void main(String[] args)
{
new main();
}
}
/*start.java*/
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.*;
bdoc=new JButton("Doctor",new
ImageIcon("images/Advances.png"));
bdoc.setBounds(430,270,180,30);
add(bdoc);
bbill=new JButton("Billing",new
ImageIcon("images/Attendance.png"));
bbill.setBounds(430,340,180,30);
add(bbill);
breport=new JButton("Reports",new
ImageIcon("images/edit.png"));
breport.setBounds(430,408,180,30);
add(breport);
bpat.addActionListener(new patient());
bdoc.addActionListener(new doctor());
bbill.addActionListener(new billing());
bexit.addActionListener(new exit());
bback.addActionListener(new back());
breport.addActionListener(new report());
2. OUTPUT
6. References:
http://www.roseindia.net/java/example/java/applet/
http://www.realapplets.com/tutorial/
http://www.web-source.net/java_applet_tutorial.htm
www.w3schools.com