You are on page 1of 10

I

R
SHAHEED BENAZIR BHUTTO UNIVERSITY SBA
M NAUSHAHRO FEOZE CAMPUS

A HOSPITAL MANAGEMENT SYSYTEM


T

I UNDER THE SUPERVISION OF

N MR. MUHAMMAD FAHEEM SHAH

GROUP MEMBER
T

E
MUHAMMAD KHALID SHEIKH 17-BS (IT) 10
C
MUHAMMAD SALEH WANAGNI 17-BS (IT) 31
H
FARAZ AHMED MALIK 17-BS (IT) 27
N KASHIF ALI RAJPER 17-BS (IT) 30
O

L DATE OF SUBMISSION

O 04 NOV 2018

Y
CONTENT

S.NO PAGE NO
ABSTRACT
The project Hospital Management system includes registration of patients, storing their details
into the system, and also computerized billing. The software has the facility to give a unique id
for every patient and stores the details of every patient and the staff automatically. It includes a
search facility to know the current status of each room. User can search availability of a doctor
and the details of a patient using the id. The purpose of the project entitled as “Hospital
Management System” is to computerize the Front Office Management of Hospital to develop
software which is user friendly, simple, fast, and cost – effective. It deals with the collection of
patient’s information, conclusion details, etc. Traditionally, it was done manually. The main
function of the system is to register and store patient details and doctor details and retrieve these
details as and when required, and also to manipulate these details meaningfully System input
contains patient details, diagnosis details; while system output is to get these details on to the
screen.
INTRODUCTION

The purpose of this project to implement a hospital management software which is suitable for
small private as well as government hospitals in Pakistan specially in Sindh Providence,
especially for the ones that use a manual based system for storing information rather than having
it stored in a more efficient and safer environment like databases or access programming
software and it describe their all functionality according to their need and in this project we are
using Microsoft visual studio 2012 professional and Microsoft Access database application.
Were used in developing the user interface and the database for the software

1 Schema of Database

The schema of database is seated according to the project functionality and according to each
windows form.

1.1 This schema is used for form 1 that add the information of doctor.

1.2 This schema is used for form 2 that add the information of Patient.

1.3 This schema is used for form 3 that add information of payment.
2 Steps of coding

2.1 String connection.


namespace Project
{
publicpartialclassForm1 : Form
{
OleDbConnection con = newOleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=C:\Users\007\Desktop\HMS DataBase\HMS.accdb");
public Form1()

2.2 Add data.


con.Open();
OleDbCommand cmd = con.CreateCommand();
cmd.CommandType = CommandType.Text;
cmd.CommandText = "insert into Doctor values('" + textBox1.Text + "','" + textBox2.Text +
"','" + textBox3.Text + "','" + textBox4 .Text+ "')";
cmd.ExecuteNonQuery();
con.Close();
MessageBox.Show("Record Inserted Successfully");

2.3 Show data


con.Open();
OleDbCommand cmd = con.CreateCommand();
cmd.CommandType = CommandType.Text;
cmd.CommandText = "select * from Doctor";
cmd.ExecuteNonQuery();
DataTable dt = newDataTable();
OleDbDataAdapter da = newOleDbDataAdapter(cmd);
da.Fill(dt);
dataGridView2.DataSource = dt;
con.Close();

2.3 View data


con.Open();
OleDbCommand cmd = con.CreateCommand();
cmd.CommandType = CommandType.Text;
cmd.CommandText = "select * from Doctor";
cmd.ExecuteNonQuery();
DataTable dt = newDataTable();
OleDbDataAdapter da = newOleDbDataAdapter(cmd);
da.Fill(dt);
dataGridView2.DataSource = dt;
con.Close();
2.4 Delete data
con.Open();
OleDbCommand cmd = con.CreateCommand();
cmd.CommandType = CommandType.Text;
cmd.CommandText = "delete from doctor where name='"+textBox1.Text+"'";
cmd.ExecuteNonQuery();
con.Close();
MessageBox.Show("Record ed Successfully");
3 Project Process

3.1 This is our first form of our project that is used for login/ access the sysytem

Fig 1 shows login form.


3.2 This is our second form that functionality is as main Manu through this form we can assess

all form of the project.


Fig 2 shows main Manu
3.3 This is our third form that is used for storing the data of doctor
Fig 3 show adds doctor info.
3.4 This is our fourth form that is used for storing payment info of the patient.
Fig 4 shows payment info

You might also like