Sie sind auf Seite 1von 17

HOSPITAL MANAGEMENT Overview

The Software is for the automation of Hospital Management. It maintains two levels of users:_ Administrator Level _ User Level The Software includes:1. Maintaining Patient details. 2. Providing Prescription, Precautions and Diet advice. 3. Providing and maintaining all kinds of tests for a patient. 4. Billing and Report generation.

Scope
It can be used in any Hospital, Clinic, Dispensary or Pathology labs for maintaining patient details and their test results. Project is related to Hospital Management System. The project maintains two levels of users: Administrator Level-Doctor User Level-Data Entry Operator Main facilities available in this project are:Maintaining 1. records of indoor/outdoor patients. 2. Maintaining patients diagnosis details, advised tests to be done. Providing 3. different test facilities to a doctor for diagnosis of patients. Maintaining 4. patients injection entry records. Maintaining 5. patients prescription, medicine and diet advice details. 6. Providing billing details for indoor/outdoor patients. 7. Maintaining backup of data as per user requirements (between mentioned dates). If 8. user forgets his/her password then it can be retrieved by hint question. In this project collection of data is from different pathology labs. Results of tests, prescription, precautions and diet advice will be automatically updated in the database. Related test reports, patient details report, prescription and billing reports can be generated as per user requirements. User or Administrator can search a patients record by his/her name or their registration date. Patients diet advice can be provided in Hindi.

Overall Description Goals of proposed system


1. Planned approach towards working: - The working in the organization will be well planned and organized. The data will be stored properly in data stores, which will help in retrieval of information as well as its storage.

2. Accuracy: - The level of accuracy in the proposed system will be higher. All operation would be done correctly and it ensures that whatever information is coming from the center is accurate. 3. Reliability: - The reliability of the proposed system will be high due to the above stated reasons. The reason for the increased reliability of the system is that now there would be proper storage of information. 4. No Redundancy: - In the proposed system utmost care would be that no information is repeated anywhere, in storage or otherwise. This would assure economic use of storage space and consistency in the data stored. 5. Immediate retrieval of information: - The main objective of proposed system is to provide for a quick and efficient retrieval of information. Any type of information would be available whenever the user requires. 6. Immediate storage of information: - In manual system there are many problems to store the largest amount of information. 7. Easy to Operate: - The system should be easy to operate and should be such that it can be developed within a short period of time and fit in the limited budget of the user.

REQUIREMENTS
MAIN REQUIREMENTS:
1. 2. 3. 4. 5. 6. HOSPITAL DETAILS SPECIALISTS CONTACT PATIENT DETAILS TEST DETAILS BILLING RECORDS

CHILD REQUIREMENTS:
HOPITAL DETAILS: HOSPITAL NAME ADDRESS BRANCH CONTACT: HOSPITAL NAME BRANCH CONTACT NUMBER SPECIALIST: FIELD NAME BRANCH CONTACT NUMBER PATIENT DETAILS NAME ADDRESS CONTACT NUMBER

DOCTOR IN CHARGE DISEASE TREATMENT ROOM NUMBER TEST DETAILS: X-RAY URINE TEST STOOL TEST SONOGRAPHY TEST GASTROSCOPY TEST COLONOSCOPY TEST BLOOD TEST BILLING RECORDS: PATIENT NAME DOCTOR CONSULTATION TREATMENT COST ROOM RENT TESTING CHARGE TOTAL COST

SYSTEM CONFIGURATION:
SOFTWARE REQUIREMENTS:
Front end : Back end : Operating system : Microsoft visual studio 5.o Microsoft access Win-98, Win-XP

HARDWARE REQUIREMENTS:
Processor Ram Disk space : : : Pentium II , Pentium III, Pentium IV 60 Mb or higher 130 Mb

DESIGN:

USECASE DIAGRAM:

patient
(from actor)

patient details
(from usecase)

doctor
(from actor)

appointmentdetails
(from usecase)

doctorfees receptionist
(from actor) (from usecase)

prescriptiondetails
(from usecase)

diseasedetails
(from usecase)

bill details
(from usecase)

pharmacist cashier
(from actor)

medicinefees
(from usecase)

(from actor)

ACTIVITY DIAGRAM:

approach reception

patient details

consult doctor

disease details

prescription details

doctor fees

medicine fees

remit the amount

CLASS DIAGRAM:

SEQUENCE DIAGRAM:

: patient

: receptionistappointmentdetails : doctor :

: patientdetails: diseasedetails : prescriptiondetails

: pharmacist

: doctorfees

: medicinefees

: cashier

appointment

date

time name of the specialist

patient details name

age

disease naem

effects

prescription view

cost of medicine consultation fees med fees doctorfees

provide bill

remit

COLLABORATION DIAGRAM:

: appointmentdetails : patient 1: appointment 16: provide bill 13: consultation fees 17: remit : receptionist 8: disease naem 9: effects 10: prescription 6: name 7: age 2: date 3: time 4: name of the specialist 5: patient details : doctor

: doctorfees 15: doctorfees

: cashier

: diseasedetails

: prescriptiondetails 11: view : patientdetails

14: med fees

: medicinefees

12: cost of medicine : pharmacist

CODINGS:

using using using using using using using using

System; System.Collections.Generic; System.ComponentModel; System.Data; System.Data.OleDb ; System.Drawing; System.Text; System.Windows.Forms;

namespace SSST { public partial class Form1 : Form { string id; string sqlQRY; OleDbConnection cn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Application.StartupPath + "/db1.mdb"); OleDbCommand cmd = new OleDbCommand(); OleDbDataReader dr; public Form1() { InitializeComponent(); } private void btnnew_Click(object sender, EventArgs e) { clear(); btnnew.Enabled = false; btnsave.Text = "Save"; txtname.Enabled = true; txtadd.Enabled = true; btnsave.Enabled = true; btndelete.Enabled = false; } private void btnsave_Click(object sender, EventArgs e) { if (btnsave.Text == "Save") { SaveQRY(); } else {

UpdateQRY(); lblID.Text = ""; txtadd.Enabled = false; txtname.Enabled = false; btnsave.Enabled = false; btndelete.Enabled = false; } } void SaveQRY() { if (txtname.Text == "") { MessageBox.Show("Incomplete Data!", "Programmed By E41", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); txtname.Focus(); btnnew.Enabled = false; btndelete.Enabled = false; } else if (txtadd.Text == "") { MessageBox.Show("Incomplete Data!", "Programmed By E41", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); txtadd.Focus(); btnnew.Enabled = false; btndelete.Enabled = false; } else { chekduplication(); } //end of save } void UpdateQRY() { if (txtname.Text == "") { } else if (txtadd.Text == "") { } else { id = lblID.Text; sqlQRY = "Update Table1 SET Table1.hospname = '" + txtname.Text + "', Table1.address = '" + txtadd.Text + "' WHERE Table1.ID = " + id + "";

cmd.CommandText = sqlQRY; cmd.Connection = cn; cmd.ExecuteNonQuery(); MessageBox.Show("Updated!", "Programmed By E41", MessageBoxButtons.OK, MessageBoxIcon.Information); clear(); fill(); } } void chekduplication() { sqlQRY = "Select * from Table1 Where hospname = '" + txtname.Text + "'"; cmd.CommandText = sqlQRY; cmd.Connection = cn; OleDbDataReader dr2; dr2 = cmd.ExecuteReader(); dr2.Read(); if (dr2.HasRows) { MessageBox.Show("Username Already Exist!", "Programmed By E41", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); txtname.Focus(); } else { dr2.Close(); sqlQRY = "Insert Into Table1([hospname],[address]) Values('" + txtname.Text + "','" + txtadd.Text + "')"; cmd.CommandText = sqlQRY; cmd.Connection = cn; cmd.ExecuteNonQuery(); MessageBox.Show("Save!", "Programmed By E41", MessageBoxButtons.OK, MessageBoxIcon.Information); clear(); fill(); txtadd.Enabled = false;

txtname.Enabled = false; btnsave.Enabled = false; btncancel.Enabled = true; btnnew.Enabled = true; btndelete.Enabled = false; } dr2.Close(); dr2.Dispose(); } private void btndelete_Click(object sender, EventArgs e) { id = lblID.Text; // sqlQRY = "Delete * from Table1 where ID = " + "" + ""; sqlQRY = "Delete * from Table1 where ID = 1"; cmd.CommandText = sqlQRY; cmd.Connection = cn; cmd.ExecuteNonQuery(); MessageBox.Show("Delete!", "Programmed By E41", MessageBoxButtons.OK, MessageBoxIcon.Information); clear(); fill(); } void clear() { lblID.Text = ""; txtadd.Text = ""; txtname.Text = ""; txtsearch.Text = ""; btnsave.Text = "Save"; txtadd.Enabled = false; txtname.Enabled = false; btnsave.Enabled = false; btndelete.Enabled = false; } void fill() { listView1.Items.Clear(); cmd.CommandText = "SELECT * FROM Table1 "; cmd.Connection = cn; dr = cmd.ExecuteReader();

// dr = cmd.ExecuteReader(); while (dr.Read()) { ListViewItem list = new ListViewItem(dr[0].ToString()); list.SubItems.Add(dr[1].ToString()); list.SubItems.Add(dr[2].ToString()); listView1.Items.AddRange(new ListViewItem[] { list }); } dr.Close(); } private void btncancel_Click(object sender, EventArgs e) { btnnew.Enabled = true; btnsave.Enabled = false; btndelete.Enabled = false; clear(); } private void listView1_SelectedIndexChanged(object sender, EventArgs e) { lblID.Text = listView1.Items[listView1.FocusedItem.Index].SubItems[0].Text; txtname.Text = listView1.Items[listView1.FocusedItem.Index].SubItems[1].Text; txtadd.Text = listView1.Items[listView1.FocusedItem.Index].SubItems[2].Text; btnsave.Text = "Update"; btnsave.Enabled = true; btndelete.Enabled = true; txtname.Enabled = true; txtadd.Enabled = true; } private void button5_Click(object sender, EventArgs e) { if (txtsearch.Text == "")

{ MessageBox.Show("Search Return to Zero", "Programmed by E41", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); txtsearch.Focus(); } else { sqlQRY = "Select * from Table1 Where username = '" + txtsearch.Text + "'"; cmd.CommandText = sqlQRY; cmd.Connection = cn; dr = cmd.ExecuteReader(); dr.Read(); if (dr.HasRows) { lblID.Text = dr[0].ToString(); txtname.Text = dr[1].ToString(); txtadd.Text = dr[2].ToString(); btnsave.Text = "Update"; btnsave.Enabled = true; btndelete.Enabled = true; txtname.Enabled = true; txtadd.Enabled = true; } else { btnnew.Enabled = true; btnsave.Enabled = false; btndelete.Enabled = false; clear(); MessageBox.Show("Search Return to Zero", "Programmed by E41", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } dr.Close(); dr.Dispose(); } } private void Form1_Load(object sender, EventArgs e) {

listView1.Columns.Add("UserID", 60, HorizontalAlignment.Center); listView1.Columns.Add("HospitalName", 100, HorizontalAlignment.Center); listView1.Columns.Add("Address", 100, HorizontalAlignment.Center); cn.Open(); fill(); clear(); } } }

OUTPUT:
ADD:

DELETE:

CONCLUSION:
Thus the project to develop the hospital management has been developed.

Das könnte Ihnen auch gefallen