You are on page 1of 12

Term paper COURSE CODE

CAP 407







DECLARATION-I declare that this assignment is my
individual work.i have not copied from any student work
or from any other source expect where due
acknowledgement is made explicitly in the text.nor has
any part been written for me by another person.

Student signature

Usha kumarI

Evaluator comment-


Out of

-10803536 .TOPIC: Hospital Management System SUBMITTED TO: SUBMITTED BY: PANKAJ SHARMA USHA KUMARI Roll no:-D3802A29 REG NO.

my friends. I thank all the members of Lovely Professional University. Besides all I want to thank Almighty GOD FOR HIS blessing and imbibing confidence in to undertake this task. I thank my teacher PANKAJ SIR for inspiring to complete this project. Once again thank you all sparing time from their busy schedule Usha kumari BCA-MCA CONTENTS . ACKNOWLEDGEMENT There are many persons to whom I owe thanks for their support. and the service provided by the internet for their kind support. I also thank my parents. Above all. and advice and suggestions during the various stages of this project. I hope everyone keep supporting me in future as well and lend their helping hand.

Introduction Key Features Security Features Introduction to visual basic Use of visual basic in Hospital Management System Example of Hospital Management system or Software in Snapshot of insert the data Coding of insert Snapshot of updating the data Coding of updating data Snapshot of searching the data Coding of data Snapshot of deletion the data Coding of deletion INTRODUCTION .

This Hospital Management System is designed for multispeciality hospitals. indoor patient management. And more importantly it is backed by reliable and dependable support. The hospital management software is excellent software in the hospital management field . lab. It is an integrated end-to-end Hospital Management System that provides relevant information across the hospital to support effective decision making for patient care. inventory and account etc. hospital administration and critical financial accounting. Hospital Management System Hospital Management System is powerful. to cover a wide range of hospital administration and management processes. easy to use and is designed and developed to deliver real conceivable benefits to hospitals and clinics. outdoor patient management. flexible. It manages all section of the hospital like reception. Key Features:- • Complete and automatic operating of reception • Laboratory management • Indoor Management • Complete history of patients • Up to-date account management with all accounting needs • Maintaining the inventory section of your hospital • Build in backup and restore facilities Security Features: • Password facility to ensure validity of user • Intelligent validation for each entry • User defined date access • Data security • We can hold the complete details of doctors of your hospital • We can also manage the issue register Indoor: . laboratory management.

code can be inserted into the form resize event handler to reposition a control so that it remains centered on the form. Default attributes and actions are defined for the components. text boxes. and writing additional lines of code for more functionality. • We can see the due detail of bills. specifying attributes and actions of those components. buttons. providing a dynamic application. The language not only allows programmers to create simple GUI applications. a simple program can be created without the programmer having to write many lines of code. By inserting code into the event handler for a key press in a text box. Visual Basic is generally not case sensitive. Unlike many other programming languages. or even prevent certain characters from being inserted. Default values are provided when the control is created. Hospital Record: • Delivery and Birth Record • Death Record Salient Features: Use of visual in hospital management system The solution has been designed and developed using Visual Basic and runs on Microsoft SQL Server (MSDE) as well on Oracle Server also. Many attribute values can be modified during run time based on user actions or changes in the environment. Reports are built using Crystal Reports.. Visual Basic was designed to be easily learned and used by beginner programmers. • The hospital management software provide a complete and automatic indoor management • We can see the occupancy of your hospital. etc. but can also develop complex applications. For example. but may be changed by the programmer.) on the form (window). A tool is used to place controls (e. • We can see the services given to a particular patient • We can see the deposits of any patient. although it will transform keywords into a standard case configuration and force the case of variable names to conform to the case of the . Controls have attributes and event handlers associated with them. the program can automatically translate the case of the text being entered. • We can see the treatment given to a particular patient. Forms are created using drag-and-drop techniques.g. Programming in VB is a combination of visually arranging components or controls on a form. Like the BASIC programming language. etc. expands to fill up the form. • We can prepare discharge ticket and discharge bill of any patient.

entry within the symbol table. So we can using window application we can make forms which are related to information about the patient record and also manage that record. updating. C++). deleting.So by using visual basic we can design and developed the hospital management system because of that we can provide better services to the customers. Example of Hospital Management System or Software in VB. The Visual Basic compiler is shared with other Visual Studio languages (C. Snapshot of INSERT of Data Insert: Coding: .NET SOME SNAPSHOTS OF HOSPITAL MANAGEMENT SYSTEM of inserting. and find the data of patient.

4.doctor_fees.EventArgs) Handles TextBox4.EventArgs) Handles TextBox5.Text + " ')" Dim com As New OleDbCommand(qry.rtype.Text = Date.room_no.Text = "GENERAL WITH TV" Then TextBox5.Data.Text + " '.Text = b + fee ElseIf ComboBox3.Data Source=C:\Users\aman\Documents\Visual Studio 2010\Projects\hospital management system\new.Text = "GENERAL" Then TextBox5. ByVal e As System. ByVal e As System.Text + " '. ByVal e As System.' " + ComboBox3.EventArgs) Handles MyBase.Imports System.EventArgs) Handles TextBox3. c.Text = ComboBox1.Now End Sub Private Sub TextBox4_GotFocus1(ByVal sender As Object.GotFocus TextBox4.Load End Sub Private Sub Button1_Click(ByVal sender As System.OleDb Public Class Form1 Private Sub Form1_Load(ByVal sender As System. ByVal e As System.Show("inserted") con.Text = "A.OLEDB.C" Then TextBox5.Text = "A.time.Open() Dim qry As String qry = " insert into items(pid. con) com.Text + " '.patient_bill End Sub Private Sub TextBox5_GotFocus(ByVal sender As Object.ExecuteNonQuery() MessageBox.Text = a + fee ElseIf ComboBox3.Close() 'Patient_id.' " + TextBox5.Click Dim con As OleDbConnection = New OleDbConnection("Provider=Microsoft.rno.Jet.C WITH TV" Then TextBox5.Text + " '.GotFocus TextBox3.' " + TextBox3.0.Text = d + fee End If End Sub Private Sub TextBox3_GotFocus(ByVal sender As Object. d As Integer a = 500 b = 1000 c = 1500 d = 200 fee = 1000 If ComboBox3.patient_name.GotFocus Dim fee.Object. ByVal e As System.room_type.mdb") con.Text + " '.tme.EventArgs) Handles Button1.' " + TextBox6.' " + TextBox4.pname.Text + ComboBox2. a.Text = c + fee ElseIf ComboBox3.Object.paybill) values (' " + TextBox1.Text + " '. b.' " + TextBox2.Text End Sub .docfee.

Text b = TextBox2.0. con) com. Private Sub TextBox5_LostFocus(ByVal sender As Object. b As String a = TextBox1.EventArgs) Handles Button1.OLEDB.Click Dim con As OleDbConnection = New OleDbConnection("Provider=Microsoft.Open() Dim a. ByVal e As System.EventArgs) Handles TextBox5.Text = TextBox5.LostFocus TextBox6.Jet. ByVal e As System.mdb") con.Text Dim qry As String qry = "update items set pname =' " + b + " ' where pid=' " & a & " ' " Dim com As New OleDbCommand(qry.OleDb Public Class update Private Sub Button1_Click(ByVal sender As System.Text End Sub End Class Snapshot of UPDATION of data Coding:- Imports System.ExecuteNonQuery() .4.Data Source=C:\Users\aman\Documents\Visual Studio 2010\Projects\hospital management system\new.Data.Object.

Load 'TODO: This line of code loads data into the 'NewDataSet1.NewDataSet1.Click Dim con As OleDbConnection = New OleDbConnection("Provider=Microsoft.4.items) End Sub End Class Snapshot of SEARCH data:- Search: Coding: Imports System. MessageBox.mdb") Dim dr As OleDbDataReader . ByVal e As System.OLEDB.Close() End Sub Private Sub update_Load(ByVal sender As System.Fill(Me.Data.0. as needed.ItemsTableAdapter.EventArgs) Handles Button1.Data Source=C:\Users\aman\Documents\Visual Studio 2010\Projects\hospital management system\new.Show("updated") con.Object.EventArgs) Handles MyBase. ByVal e As System.Object.Jet. or remove it.items' table.OleDb Public Class search Private Sub Button1_Click(ByVal sender As System. You can move. Me.

OleDb Public Class delete .Open() Dim qry As String Dim a As String a = TextBox2.ExecuteReader If dr.Read TextBox1.Close() End Sub End Class Snapshot of DELETION of data Delete: Coding: Imports System.Item("pid") TextBox3.Item("tme") ComboBox3.Text qry = " select *from items where pname=' " & a & " ' " Dim com As New OleDbCommand(qry. con) dr = com. con.Text = dr.HasRows Then While dr.Text = dr.Text = dr.Text = dr.Item("rtype") End While End If MessageBox.Item("rno") TextBox4.Data.Show("searched") con.

Object. con) com.Data Source=C:\Users\aman\Documents\Visual Studio 2010\Projects\hospital management system\new. ByVal e As System.ItemsTableAdapter.mdb") con.Load 'TODO: This line of code loads data into the 'NewDataSet.Click Dim con As OleDbConnection = New OleDbConnection("Provider=Microsoft.EventArgs) Handles Button1.Object.items) End Sub End Class . as needed.Open() Dim a As String a = TextBox1. Me.Show("deleted") con.ExecuteNonQuery() MessageBox. ByVal e As System.0.items' table. or remove it.Fill(Me.OLEDB. You can move.NewDataSet.Close() End Sub Private Sub delete_Load(ByVal sender As System. Private Sub Button1_Click(ByVal sender As System.Text Dim qry As String qry = " delete from items where pid=' " & a & " ' " Dim com As New OleDbCommand(qry.4.Jet.EventArgs) Handles MyBase.