This document describes a hospital management system project submitted by Reham Juma AlGhafri to the University of Missouri Science and Technology, Rolla, USA. The project involved creating a database using Microsoft Access and forms using C# to manage patient, staff, department, laboratory, doctor, appointment, billing, and medicine inventory information for a hospital. The document includes chapters on the hardware and software configuration, database design with various tables, form designs, coding, implementation, and conclusion.
This document describes a hospital management system project submitted by Reham Juma AlGhafri to the University of Missouri Science and Technology, Rolla, USA. The project involved creating a database using Microsoft Access and forms using C# to manage patient, staff, department, laboratory, doctor, appointment, billing, and medicine inventory information for a hospital. The document includes chapters on the hardware and software configuration, database design with various tables, form designs, coding, implementation, and conclusion.
This document describes a hospital management system project submitted by Reham Juma AlGhafri to the University of Missouri Science and Technology, Rolla, USA. The project involved creating a database using Microsoft Access and forms using C# to manage patient, staff, department, laboratory, doctor, appointment, billing, and medicine inventory information for a hospital. The document includes chapters on the hardware and software configuration, database design with various tables, form designs, coding, implementation, and conclusion.
This document describes a hospital management system project submitted by Reham Juma AlGhafri to the University of Missouri Science and Technology, Rolla, USA. The project involved creating a database using Microsoft Access and forms using C# to manage patient, staff, department, laboratory, doctor, appointment, billing, and medicine inventory information for a hospital. The document includes chapters on the hardware and software configuration, database design with various tables, form designs, coding, implementation, and conclusion.
Download as DOCX, PDF, TXT or read online from Scribd
Download as docx, pdf, or txt
You are on page 1of 117
At a glance
Powered by AI
The project report describes the development of a Hospital Management System using C# and a Microsoft Access database. It covers the system design, database design, form design and implementation.
The project involves developing a Hospital Management System to manage patient information and records, doctor and employee details, laboratory tests and pharmacy bills.
The report mentions that Microsoft Access was used for the database and forms were created using C#.
1
Project Report submitted to
University of Missouri Science and Technology, Rolla, USA (At Mazoon College, Muscat, Oman) In partial fulfilment of the requirements for the award of the degree of Bachelor of Management Information System. Submitted by Reham Juma AlGhafri ID Number: 2008331006 Under the guidance of Ms.A.Anto Therasa Mary
Mazoon University College (Affiliated to Missouri University of Science and Technology, Rolla, USA) Sultanate of Oman (Spring Semester, 2013)
2
CERTIFICATE
This is to certify that the project entitled Hospital Management System is a confide work of the following student, carried out under my supervision, as part fulfilments of the academic requirements of B.S. Degree in Computer Science &Management Information System.
Name: Reham Juma Khalfan AlGhafri Student ID: 2008331006 Signature:
Supervisor: Ms A.Anto Therasa Mary Faculty of/ IT Department Signature: Date of Submitted: 8/05/2013
Examine: Signature:
3
To our my family who encourage and support us all the time.
To all our my friends and peers.
To all faculty who teach us all previous years.
And last to everyone who provide his/her helping hand to us.
4
ACKNOWLEDGEMENT
I would like to thank those who have helped me in completing this project. I extend my special thanks to Dr. Abdullah Alani, Head of the Department ,CS & IT, for his guidance, support, advice and help. I would also like to thank Ms.A.Anto Therasa Mary, Project Supervisor and Mr.Jameel, Faculty of IT Department and all my friends for all their continuous efforts and support.
5
Abstract
A HOSPITAL MANAEGMENT SYSTEM will help the user to know information about the hospital. This project will help the user to know the management of the patients and also will provide information about doctors and the employees in the hospital. This project will show details about laboratory and bills of the pharmacy. Microsoft Access has been used for creating the database. Forms created using c#.
6
Table of Content Page Number Certificate .. 3 Acknowledgment 4 Abstract.... 5 List of Figures Chapter 1: Introduction 7 1.1 Problem definition......7 1.2 Objectives...7
Chapter 2: Hardware and Software Configuration 2.1 Hardware configuration. ..9 2.2 Software configuration..9 Chapter 3: Database Designs 3.1 Data base Tables...21 Chapter 4 : Form Designs....29 Chapter 5: Coding...03 Chapter 6: implementation..50 Chapter 7 : Conclusion ...77 References.73
7
Chapter 1 Introduction
8
Chapter1 INTRODUCTION
1.1 Problem definition: There is a huge growth of data in hospital every day. The manual writing of this information can cause lots of errors also will waste time, money and efforts. Also the store and get back of this information will take long time. This project will free errors this information also will make the store and get back of this information very fast and easily. This project will save time, money and efforts.
1.2 Objective: The manual system can cause lots of problems, and this project will use new information system that will replace the old one. The object of this new system is to store the huge data in such an organized way and it will make the get back and access of this data very fast and easy. My system will provide correct data to the user. This system will save time, money and efforts.
9
Chapter 2 Hardware and software
10
Chapter 2 Hardware and software
2.1 Hardware Configuration: Manufactures: Toshiba Minimum Processor: Intel(R) Core (TM) i7-2630M CPU @ 2.00GHz Minimum RAM: 8 GB Operating System: Windows 7 Ultimate System Type: 64-bit Operating System
2.2 Software Configuration: 1. Operating system: Windows 7. 2. Microsoft Access 2003: Microsoft Access is powerful software designed for PC. It allows you to create and manage databases. A database is an organized body of related information that is arranged for ease and speed of search and retrieval. Micro software Access is equipped with a few options that help you to enter, organize, and edit data in an easy and intuitive way. 3. Visual Basic 2008: Visual Basic .NET (VB.NET or VB .NET) is a version of Microsoft's visual basic that was designed, as part of the company's .Net product group, to make web services applications easier to develop. According to Microsoft, VB .NET was reengineered, rather than released as VB 6.0 with added features, to facilitate making fundamental changes to the language.
11
4. Internet Explorer 8.0: The internet explorer is the software provides a flexible and reliable browsing experience with enhanced web privacy features for all users.
12
Chapter 3 Database Design
13
3.1 Table Information 3.1.1 Patient Table: It contains information about the patients.
Figure 3.1.11 Patient Table
3.1.2 Staff Table: It contains information about staff of the hospital.
Figure3.1.2 Staff Table
14
3.1.3 Department Table: It contains information about the departments in the hospital
Figure3.1.3 Department Table
3.1.4 Laboratory Table: It contains information about the laboratory in the hospital.
Figure 3.1.4 Laboratory Table
15
3.1.5 Doctors Table : It contains information about the doctors .
Figure 3.1.5 Doctors Table
3.1.6 Make Appointment Table: It contains information about the appointment .
Figure 3.1.6 Make Appointment Table
16
3.1.7 Medical Charge Table: It contains information about the bills.
Figure 3.1.7 Medical Charge Table
3.1.8 Room Management Table: It contains information about the rooms in the hospital.
Figure 3.1.8 Room Management Table
17
3.1.9 Syrup Table: It contains information about the syrup medicine.
Figure 3.1.9 Syrup Table
3.1.10 Tablets Table: It contains information about tablets medicine.
Figure 3.1.10 Tablets Table
18
3.1.11 Patient Medical Record Table: It contains information about the patient medical record in the hospital.
Figure 3.1.11 Patient Medical Record Table
19
Chapter 4 Form Designs
20
Chapter 4 Form Designs 4.1.1 Form 1 Welcome screen contains a picture for Ibri hospital and button.
Figure 4.1.1 Form 1
21
4.1.2 Form 2 This form show the password and username for the user and it contains two buttons one for enter to the system and one for exit from the system.
Figure 4.1.2.Form 2
4.1.3 Form 3 This is the first form we you enter the system it contains button for details, search , video and report.
Figure 4.1.3 Form 3
22
4.1.7 Form 4 This form shows the details and button for patient details , department details, blood details, patient medical record, doctor details, laboratory details, make appointment, bills, stuff details, medicine , room
Figure 4.1.7 Form 4 4.1.5 Form 5 This form will shown when we click in the button patient details it contains information about all the patient in the hospital.
Figure 4.1.5 Form 5
23
4.1.6 Form 6 This form will shown when we click in the button department details it contains information of the different department in the hospital.
Figure 4.1.6 Form 6 4.1.8 Forma 8 This form will shown when we click in the button doctor details it contains information of all the doctors in the hospital .
Figure 4.1.8 Forma 8
24
4.1.9 Form 9 This form will shown when we click in the button labortory details it contains information about the labortory in the hospital.
Figure 4.1.9 Form 9
4.1.12 Form01 This form will shown when we click in the button make appointment .
Figure 4.1.12 Form01
25
4.1.13 Form 10 This form will shown when we click in the button bill it contains information about the bills .
Figure4.1.13 Form 10
4.1.14 Form 12 This form will shown when we click in the button stuff details it contains about the staff in the hospital .
Figure 4.1.14 Form 12
26
4.1.15 Form 13 This form will shown when we click in the button medicin details it contains two buttons syrup and tablets.
Figure 4.1.15 Form 13
4.1.16 Form 14 This is the form of syrup medicines.
Figure4.1.16 Form 14
27
4.1.17 Form 15 This is the form of tablets medicines.
Figure 4.1.17 Form 15 4.1.18 Form 16 This form will shown when we click in the button room manage it contains information about the room in the hospital and the bed in each room.
Figure 4.1.18 Form 16
28
4.1. Form 17 This form contain video of the hospital.
Figure 4.1. Form 17
4.1. Form 08 When we click the button search this form will show it contains button for search for different information.
Figure 4.1. Form 08
29
4.1.20 Form 19
This form will shown when we click on the button report .
Figure 4.1.20 Form 19
30
Chapter 5 Coding
31
Coding: This is the codes that we used: Form1: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication2 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void pictureBox2_Click(object sender, EventArgs e) {
Form 4: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;
namespace WindowsFormsApplication2 { public partial class Form4 : Form { public Form4() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { this.Hide(); Form5 F5 = new Form5();
// TODO: This line of code loads data into the 'db1DataSet.patient_table' table. You can move, or remove it, as needed. this.patient_tableTableAdapter.Fill(this.db1DataSet.patient_table);
private void patient_tableBindingNavigator_RefreshItems(object sender, EventArgs e) { } } } Form 5: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq;
42
using System.Text; using System.Windows.Forms;
namespace WindowsFormsApplication2 { public partial class Form5 : Form { public Form5() { InitializeComponent(); }
} private void Form5_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'db1DataSet.patient_table' table. You can move, or remove it, as needed.
} Form 6: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;
namespace WindowsFormsApplication2 { public partial class Form6 : Form { public Form6() { InitializeComponent(); }
this.Hide(); Form7 F7 = new Form7(); F7.ShowDialog(); }
52
private void patient_tableBindingNavigatorSaveItem_Click(object sender, EventArgs e) { this.Validate(); this.patient_tableBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.db1DataSet); } private void Form8_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'db1DataSet.patient_table' table. You can move, or remove it, as needed. this.patient_tableTableAdapter.Fill(this.db1DataSet.patient_table);
} } Form 9:
private void Form9_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'db1DataSet.DEPATMENT_TABLE' table. You can move, or remove it, as needed.
// TODO: This line of code loads data into the 'db1DataSet.DEPATMENT_TABLE' table. You can move, or remove it, as needed.
this.dEPATMENT_TABLETableAdapter.Fill(this.db1DataSet.DEPATMENT_TABLE); // TODO: This line of code loads data into the 'db1DataSet.DEPATMENT_TABLE' table. You can move, or remove it, as needed.
private void Form10_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'db1DataSet.BLOOD_TABLE' table. You can move, or remove it, as needed. this.bLOOD_TABLETableAdapter.Fill(this.db1DataSet.BLOOD_TABLE);
} Form 11: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;
namespace WindowsFormsApplication2 { public partial class Form11 : Form { public Form11()
} Form 12: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;
namespace WindowsFormsApplication2 { public partial class Form12 : Form { public Form12()
private void Form12_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'db1DataSet.DOCTOR_TABLE' table. You can move, or remove it, as needed. this.dOCTOR_TABLETableAdapter.Fill(this.db1DataSet.DOCTOR_TABLE);
} Form 13: using System; using System.Collections.Generic;
59
using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;
namespace WindowsFormsApplication2 { public partial class Form13 : Form { public Form13() { InitializeComponent(); }
private void Form13_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'db1DataSet.LABORATORY_TABLE' table. You can move, or remove it, as needed.
} Form 14: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;
namespace WindowsFormsApplication2 { public partial class Form14 : Form
} } Form 15: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;
namespace WindowsFormsApplication2 { public partial class Form15 : Form { public Form15()
63
{ InitializeComponent(); } private void mEDICAL_CHARGE_BILLBindingNavigatorSaveItem_Click(object sender, EventArgs e) { this.Validate(); this.mEDICAL_CHARGE_BILLBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.db1DataSet); } private void Form15_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'db1DataSet.MEDICAL_CHARGE_BILL' table. You can move, or remove it, as needed.
this.mEDICAL_CHARGE_BILLTableAdapter.Fill(this.db1DataSet.MEDICAL_CHARGE_ BILL); } Form 16: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing;
64
using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication2 { public partial class Form16 : Form { public Form16() { InitializeComponent(); } private void sTAFF_TABLEBindingNavigatorSaveItem_Click(object sender, EventArgs e) { this.Validate(); this.sTAFF_TABLEBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.db1DataSet); }
private void Form16_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'db1DataSet.STAFF_TABLE' table. You can move, or remove it, as needed.
private void pictureBox1_Click(object sender, EventArgs e) { this.Hide(); Form7 F7 = new Form7(); F7.ShowDialog(); } } } Form 17: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing;
66
using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication2 { public partial class Form17 : Form { public Form17() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { this.Hide(); Form18 F18 = new Form18(); F18.ShowDialog(); } private void button2_Click(object sender, EventArgs e) { this.Hide(); Form19 F19 = new Form19(); F19.ShowDialog(); }
Form 18: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication2
68
{ public partial class Form18 : Form { public Form18() { InitializeComponent(); } private void sTYRUP_TABLESBindingNavigatorSaveItem_Click(object sender, EventArgs e) { this.Validate(); this.sTYRUP_TABLESBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.db1DataSet); } private void Form18_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'db1DataSet.STYRUP_TABLES' table. You can move, or remove it, as needed. this.sTYRUP_TABLESTableAdapter.Fill(this.db1DataSet.STYRUP_TABLES); } private void pictureBox1_Click(object sender, EventArgs e) { this.Hide();
69
Form17 F17 = new Form17(); F17.ShowDialog(); } } } Form 19: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication2 { public partial class Form19 : Form { public Form19() { InitializeComponent(); }
70
private void sTYRUP_TABLESBindingNavigatorSaveItem_Click(object sender, EventArgs e) { this.Validate(); this.sTYRUP_TABLESBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.db1DataSet); } private void Form19_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'db1DataSet.STYRUP_TABLES' table. You can move, or remove it, as needed. this.sTYRUP_TABLESTableAdapter.Fill(this.db1DataSet.STYRUP_TABLES);
Form 20: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;
namespace WindowsFormsApplication2 { public partial class Form20 : Form { public Form20() { InitializeComponent(); } private void rOOM_MANAGEMENT_TABLEBindingNavigatorSaveItem_Click(object sender, EventArgs e) { this.Validate(); this.rOOM_MANAGEMENT_TABLEBindingSource.EndEdit();
72
this.tableAdapterManager.UpdateAll(this.db1DataSet); } private void Form20_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'db1DataSet.ROOM_MANAGEMENT_TABLE' table. You can move, or remove it, as needed.
private void axWindowsMediaPlayer1_Enter(object sender, EventArgs e) { } } } Form 23: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;
namespace WindowsFormsApplication2 { public partial class Form23 : Form { public Form23() { InitializeComponent(); }
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { Form 24: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq;
76
using System.Text; using System.Windows.Forms;
namespace WindowsFormsApplication2 { public partial class Form24 : Form { public Form24() { InitializeComponent(); }
private void Form24_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'db1DataSet.PATIENT_MEDICAL_RECORED' table. You can move, or remove it, as needed.
When I designed the forms I need to connect the database to the project this is the steps to add the database to the project: 1- Data 2- Add new data source. 3- Data source type I choice database. 4- Then click next. 5- Then click new connection then browser and I choice the database I have created. 6- Then next 7- Finally I choice finish.
80
Chapter 7
Conclusion
I have completed my project " HOSPITAL MANAGEMENT SYSTEM" and it is ready for use. I have design forms , creating database and coding the forms. After the entire project I have chosen it was interesting and gained much knowledge about hospital and health care. I have faces some problems during this project but with the hardworking I have solve this problems. I hope that my project will be useful for all hospitals.
81
References Book: 1- Software Engineering. Roger S. Pressman Publisher: McGraw-Hill Science/Engineering/Math;7 edition (January 20, 2009) Language: English 2- Visual Basic Programming. Amity Kalian,Product Details Publisher: Sams; 1 edition (December 31, 200) Language: English 3- Database. Gavin Powell, December 2005 Website: 1- www.wikipedia.org 2- www.moh.gov.om/ 3- www.ask.com