HOSPITAL REPORT
HOSPITAL REPORT
PROJECT REPORT ON
SUBMITTED BY
ANIRUDH MURTHY 20NCBS4039
CHARAN RAJ NM 20NCBS4004
SHASHI VAMSHI PV 20NCBS4037
THE NATIONAL
COLLEGE AUTONOMOUS
BASAVANAGUDI, BENGALURU-560004
Certificate
This is to certify that the PROJECT REPORT entitled “HOSPITAL MANAGEMENT SYSTEM”
is a work carried out by ANIRUDH MURTHY (20NCBS4039), CHARAN RAJ NM
(20NCBS4004), SHASHI VAMSHI PV (20NCBS4037) in the partial fulfilment of Sixth Semester BSc
in The
National college during the year 2022-2023.
1.
2.
ACKNOWLEDGEMENT
We consider it our privilege to express our gratitude and thanks to all people who have supported us directly
and indirectly with their co-operation, encouragement and intellectual influence during the course of the
project
We consider ourselves proud to be the part of The National College, the institution that our way in all
endeavor.
We are grateful to prof. RAVIHEGDE Head of the Department of the computer science, national college
and our project guide for their valuable guidance.
We are sincerely regard our thanks to Prof. S project in charge, Department of Computer Science of his
suggestions, encouragement and valuable internal guidance throughout the entire period.
We would like to thank all the teacher and staff members who have support us during the project.
We would also like to thank our friends for all their insights and moral support.
DECLARATION
We ANIRUDH MURTHY, CHARAN RAJ NM And SHASHI VAMSHI PV do hereby declare that project
entitled “HOSPITAL MANAGEMNET SYSTEM” is a benefited work carried out by us under the guidance
of Prof Satish Kumar G
This project, as presented in this report, is our original work and has not been presented for any other
university award. This project has been submitted as fulfillment of requirements for the Degree of
Bachelor of Science of Bangalore University.
Place: Bangalore
ABSTRACT
The hospital management system project allows hospital to manage and maintain doctors and patients
records like doctor name, patient address, appointment details, appointment status.
1. Login
2. home
3. doctor
Doctor name
Experience
Contact number
Email address
Specialization
Qualification
Salary
Gender
4. Patient
Patient name
Address
Contact number
Age
Gender
5. Appointment
Booking appointments
Closing appointments
Viewing appointment status
CONTENTS
1. Introduction to project
a. Introduction to vb.net
b. Introduction to SQL server
4. Design
5. Coding
8. Bibliography
9. Appendix
a. Screenshots
b. Source code
INTRODUCTION
INTRODUCTION TO PROJECT:
This project of “Hospital Management system” has been designed using vb.net as frontend and SQL
server as backend. This software comprises of modules dealing with hospital, doctor and patient details
and appointment details of module products.
The software hospital management system has been developed on the vb.net and SQL server. The main
aim for developing the project is to maintain doctor and patient details, appointment details like status and
booking of appointment. The main objective of this project is to provide the better work efficiency, security,
accuracy, reliability and feasibility
VB.Net is an integrated development environment (IDE) from Microsoft. It is used to develop software as
well as website, web applications and web services. VB.NET makes use of graphical interface for the
creation of Train and powerful applications. VB includes code editor supporting IntelliSense as well as code
refactoring other built-in tools includes form designer for building GUI applications, class designer and
database schema designer. The visual studio code editor also supports setting bookmarks in code of quick
navigation. Visual studio features background compilation (also called incremental compilation). There are
many tools that Visual studio provides such as Windows form designer. WPF designer, Web development,
Class designer, Data designer etc... The important feature of visual studio 2019 is its DATA EXPLORER. It
is used to manage database on MICROSOFT SQL SERVER instances which, is the backend software
package of our project. It allows creation and alternation of Database unique to other languages. Also coding
in GUI environment is quite through linear paths of execution. The number of options that are open to the
user and developer features such as easier to comprehension, user friendliness, faster access and many such
other features make it an interesting tool to work with. In the newer version that is in VB.NET 2019 we
make things much easier than before like a design the project in the updated version as UX design (user
experience design) which acquire lesser memory than others.
Active X technologies allows the user to use functions provide by other applications such as MICROSOFT
WORD, WORD PROCESSOR, and others windows applications.
Internet capabilities make it easy to provide access to documents and applications across the internet or
intranet from within your applications.
Our finished applications are true .exe files that use a VISUAL STUDIO VIRTUAL MACHINE that we can
freely distribute.
Hence, VISUAL STUDIO 2019 is much compatible and a very user-friendly secured programming
languages.
Data in SQL is organized in the form of tables. Within a table, records are arranged according to common
references value known as primary key or a key field. The value in the key field is different for every record
and thus helps in uniquely identifying records. A combination is also two or more fields can also be used as
primary key. Such as combination is also composite key. Also, storage space is allocated to a database
which is divided into sequentially numbered pages, each almost 8kb in size. A SQL server database can
obtain a maximum of 231 objects. New features in Microsoft SQL server offers many new improved
features to help us to create powerful Database applications.
EXISTING SYSTEM
The existing system refer to the system that is being followed till now. The existing system
requires more computational time, manual calculations, and the involved in selection of features is
high, the other disadvantages are lack of security of data, the consuming etc.
In the Existing system user will not have user friendly feelings.
PROPOSED SYSTEM
The aim of proposed system is to develop a system of improved facilities. The proposed system can
overcome all the limitation of the existing system. The system provides proper security and reduces the
manual work. The existing system has several disadvantages and many more difficulties to work well. The
proposed system tries to eliminate or reduce these difficulties up to some extent. The proposed system will
help the user reduce the workload and mental conflict.
ADVANTAGES
Very user friendly
Very fast in response
Update details
Better service
Minimum time required.
INTRODUCTION
Software Requirements Specifications (SRS) is the beginning point of the software project development
activity. This document identifies the problem and specifies the requirements of the clients. The detailed
requirements specification provides the performance description. information description and functionality
description of the client's product.
PURPOSE
The requirement of the documentation is to obtain dependable, secure, extensible product which meet the
objective of this software project. The SRS document completely describes the external behavior of the
proposed software project by analyzing the client’s requirements through communication.
The SRS document for the currently undertaken project specifies the different operations involves in this
project. The project offers menu driven command user interface that forms the user interface that forms the
user-friendly interface for the clients. It also provides the precise communication interface that describes the
intercommunication between different modules. The current project must comprise of two kinds of users,
admin and public user. Here, the definite integral constraints are offered by providing the required field
validation, regular, expression validation data type and size for each of the data field involved in the
process. It provides a moderate way to validate the actual requirement of a client with the SRS prepared for
the project.
The current project must also possess few features. Since the project deals with the below mentioned
features:
It provides feedback to the customer SRS is the customer's assurance that the development of organization
understands the issues or problems to be solved and the software behaviors necessary to address those
problems.
Therefore, SRS should be written in natural language, in an unambiguous manner that may
To avoid the complexity of the project, the entire project is partitioned into different modules with specific
functions.
SYSTEM CONFIGURATION
HARDWARE REQUEMENT:
1. Processor: 2.00GHz
2. RAM: 4GB
3. SSD: 512GB
SOFTWARE REQUIRMENTS:
4. DESIGN
Design is the first step in moving from the problem domain towards the solution. The design activity begins
when the requirement document for the software to be developed it available, Design is essentially the
bridge between the requirement specification and the final solution for satisfying the client's requirements.
With reference to the currently undertaken “Hospital” a hospital management project, the design can be
discussed through two aspects:
Modular Design
Graphical Design
Modular Design:
Any integrated software is the result of the combination of the several modules that eases implementation,
debugging, testing, documentation and maintenance of the software product. It also enhances the design
clarity.
With reference to the "Hospital” project, the design clearly specifies the interconnection of the different
modules through the external and internal data sources and data links
Login Module:
The concern of the login module is towards the accessibility of the functionality of the project by the
authorized user who enters the accurate password. This project is viewed or operated by the administration
for monitoring the website.
Patient Module:
This module helps user to create an account to the patient by using their personal details.
To create patient account, hospital needs patient personal details, after creating an account the
patient will get a unique ID number further which will be used for updating, booking appointment,
deleting patient details by the user.
Doctor Module:
To create doctor account, hospital needs doctor personal details and professional details after
creating an account the doctor will get a unique ID number further which will be used for updating,
booking appointment, deleting doctor details by the user.
Appointment Module:
Allows the hospital to add appointments and check the status of the appointment and delete the
completed appointments between doctors and patients.
E-R Diagram
apptid
pntid number appt time
address
books appointment
patients
p
name
age status
gender
register
attends
gende
r
specialization
age
userid
Contact no
adds Doctor
Users
docid
passwor
d
name
name
emai
l
qualification gender
Coding
A system consists of computers, which have components of their own; indeed, a system is a hierarchy of
components the highest-level component corresponds to the total system. To design such hierarchies there
are two possible approaches; top-down and bottom-up. Top-down approach starts from the highest-level
components of the hierarchy and proceeds through lower levels. By contrast, a bottom-up approach starts
with lowest level and proceeds through progressively higher level to the top-level components.
A top-down design approach starts by identifying the major components of the system, decomposing them
into their lower -level components and iterating until the desired level of details is achieved Top-down
methods often results in some form of step wise refinement. Starting from an abstract design, in each step
the design is refined to a more concrete level, until we reach a level where no more refinement is needed and
the design can be implemented directly. The top-down approach has been promulgated by many researches
and has been found to be extremely useful for design. Most design methodologies are based on the top-down
approach.
A top-down approach is suitable only if the specifications of the system are clearly knownand the system
development is from scratch. Hence, it is a reasonable approach if a waterfall type of process model is been
used.
Top-Down approaches require some idea about the visibility of the components specified during design. The
components specified during design should be implementable, which requires some idea about the visibility
of the lower-level parts of a component. Use a top-down approach to determine the modules in the system,
assuming that the abstract machine available for implementing the system provides the operations supported
by the abstraction layer, this approach is frequently used for developing system.
5. TESTING
After the design and coding is done here comes the system testing System testing has
The package has been developed to efficiently manage all types of details, modification and deletion of the
patient and doctorand appointment records, the errors which normally creep during manual operation were
avoided. The package offers user friendly screen which is similar to most of window applications.
Conclusion
The main objective of working under this project was to get hands on knowledge on the implementation of
the “HOSPITAL MANAGEMENT SYSTEM” project. It has given us a large amount of experience. In the
project all the functionalities or automated accordingly to user’s satisfaction
BOOKS:
WEB REFERENCES:
www.vbtutor.com
www.wikipedia.com
www.itsource.com
www.kaashipara.org
9.1 Screenshots
LOGIN FORM:
HOME FORM:
TABLES
LOGIN TABLE:
PATIENT TABLE:
DOCTOR TABLE
APPOINTMENT TABLE:
HOME FORM:
Imports System.Windows
End Sub
End Sub
End Class
Dim id As Integer
End Function
Private Sub update_pnt_Click(sender As Object, e As EventArgs) Handles update_pnt.Click
Dim chk As Integer
If gender.Text = "Male" Or gender.Text = "Female" Or gender.Text = "Others" Then
If IsNumericString(pnt_age_txt.Text) Then
If IsNumericString(pnt_num_txt.Text) And pnt_num_txt.Text.Length = 10 Then
'Esatblish Connection
Dim conn As New SqlConnection("Data Source=LAPTOP-G734VL11;Initial
Catalog=Hospital;Integrated Security=True")
'Dim cmd As New SqlCommand("Insert Into Patients
(PatientName,Gender,Age,Address,ContactNumber) Values(@name,@gen,@age,@addr,@num)", conn)
Dim cmd As New SqlCommand("UPDATE Patients SET PatientName = @name, Gender = @gen,
Age = @age ,Address = @addr,ContactNumber = @num WHERE PatientID = @id", conn)
cmd.Parameters.AddWithValue("@id", id)
cmd.Parameters.AddWithValue("@name", pnt_name_txt.Text)
cmd.Parameters.AddWithValue("@gen", gender.Text)
cmd.Parameters.AddWithValue("@age", Integer.Parse(pnt_age_txt.Text))
cmd.Parameters.AddWithValue("@addr", pnt_address_txt.Text)
cmd.Parameters.AddWithValue("@num", pnt_num_txt.Text)
conn.Open()
Dim Res As Integer = cmd.ExecuteNonQuery()
If Res > 0 Then
MessageBox.Show("Entered successfully")
Dim previousform As Form = Application.OpenForms.OfType(Of Home)().FirstOrDefault()
If previousform IsNot Nothing Then
previousform.Show()
Me.Close()
End If
Else
MessageBox.Show("Error occured while entering values")
End If
conn.Close()
Else
MessageBox.Show("Contact Number must be 10 digits!!!")
End If
End Sub
Dim ids As New List(Of Integer)
End Class
DOCTOR ADD FORM:
Imports System.Data.SqlClient
Imports System.Text.RegularExpressions
Dim d_name, gen, age, sal, specialisation, qualification, email, contact As String
End Function
Function IsValidEmail(email As String) As Boolean
Dim pattern As String = "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$"
Return Regex.IsMatch(email, pattern)
End Function
Function IsValidname(email As String) As Boolean
Dim pattern As String = "^[a-zA-Z]+$"
Return Regex.IsMatch(email, pattern)
End Function
Private Sub add_doc_Click(sender As Object, e As EventArgs) Handles add_doc.Click
qualification = qual_cmb.Text
email = email_txt.Text
contact = contact_txt.Text
conn.Open()
Dim Res As Integer = cmd.ExecuteNonQuery()
If Res > 0 Then
MessageBox.Show("Entered successfully")
Dim previousform As Form = Application.OpenForms.OfType(Of Home)().FirstOrDefault()
If previousform IsNot Nothing Then
previousform.Show()
Me.Close()
End If
Else
MessageBox.Show("Error occured while entering values")
End If
conn.Close()
Else
MessageBox.Show("Invalid name")
End If
Else
MessageBox.Show("Invalid email")
End If
Else
'MessageBox.Show("Contact number must be all digits")
MessageBox.Show("Invalid Contact number")
End If
Else
'MessageBox.Show("Salary must be Integer")
MessageBox.Show("Invalid Salary")
End If
Else
'MessageBox.Show("Experience must be Integer and positive")
MessageBox.Show("Invalid Experience")
End If
End If
End Sub
End Class
End Sub
End Sub
Dim id As Integer
Private Sub DataGridView1_CellContentClick(sender As Object, e As DataGridViewCellEventArgs) Handles
DataGridView1.CellContentClick
'Get values form table
If e.ColumnIndex = 0 AndAlso e.RowIndex >= 0 Then
id = DataGridView1.Rows(e.RowIndex).Cells(1).Value
name_txt.Text = DataGridView1.Rows(e.RowIndex).Cells(2).Value
gender.Text = DataGridView1.Rows(e.RowIndex).Cells(3).Value
spl_cmb.Text = DataGridView1.Rows(e.RowIndex).Cells(4).Value
qual_cmb.Text = DataGridView1.Rows(e.RowIndex).Cells(5).Value
age_txt.Text = DataGridView1.Rows(e.RowIndex).Cells(6).Value
contact_txt.Text = DataGridView1.Rows(e.RowIndex).Cells(7).Value
email_txt.Text = DataGridView1.Rows(e.RowIndex).Cells(8).Value
sal_txt.Text = DataGridView1.Rows(e.RowIndex).Cells(9).Value
End If
End Function
Function IsValidEmail(email As String) As Boolean
Dim pattern As String = "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$"
Return Regex.IsMatch(email, pattern)
End Function
Private Sub updt_btn_Click(sender As Object, e As EventArgs) Handles updt_btn.Click
Dim chk As Integer
'Security check
If gender.Text = "Male" Or gender.Text = "Female" Or gender.Text = "Others" Then
If IsNumericString(age_txt.Text) Then
If IsNumericString(contact_txt.Text) And contact_txt.Text.Length = 10 Then
If IsNumericString(sal_txt.Text) Then
If IsValidEmail(email_txt.Text) Then
'Esatblish Connection
Dim conn As New SqlConnection("Data Source=LAPTOP-G734VL11;Initial
Catalog=Hospital;Integrated Security=True")
Dim cmd As New SqlCommand("UPDATE Doctor SET DocName = @name, Gender = @gen,
Experience = @age ,Specialisation = @spl,Qualification = @qual, ContactNumber = @contact, EmailID =
@email,Salary = @sal Where DocID = @id", conn)
cmd.Parameters.AddWithValue("@id", id)
cmd.Parameters.AddWithValue("@name", name_txt.Text)
cmd.Parameters.AddWithValue("@gen", gender.Text)
cmd.Parameters.AddWithValue("@age", age_txt.Text)
cmd.Parameters.AddWithValue("@spl", spl_cmb.Text)
cmd.Parameters.AddWithValue("@qual", qual_cmb.Text)
cmd.Parameters.AddWithValue("@contact", contact_txt.Text)
cmd.Parameters.AddWithValue("@email", email_txt.Text)
cmd.Parameters.AddWithValue("@sal", sal_txt.Text)
conn.Open()
Dim Res As Integer = cmd.ExecuteNonQuery()
If Res > 0 Then
MessageBox.Show("Entered successfully")
Dim previousform As Form = Application.OpenForms.OfType(Of Home)().FirstOrDefault()
If previousform IsNot Nothing Then
previousform.Show()
Me.Close()
End If
Else
MessageBox.Show("Error occured while entering values")
End If
conn.Close()
Else
MessageBox.Show("Invalid email")
End If
Else
MessageBox.Show("Salary must be Integer")
End If
End Sub
DataGridView1.DataSource = PntDataTable
DataGridView2.DataSource = DocDataTable
'TODO: This line of code loads data into the 'HospitalDataSet.Doctor' table. You can move, or remove it, as
needed.
Me.DoctorTableAdapter.Fill(Me.HospitalDataSet.Doctor)
'TODO: This line of code loads data into the 'HospitalDataSet.Patients' table. You can move, or remove it,
as needed.
Me.PatientsTableAdapter.Fill(Me.HospitalDataSet.Patients)
End Sub
Dim pntid, docid As Integer
Dim status As String
Dim time As Date
End Sub
' Set the RowFilter to show only the records where the specific column matches the condition.
dataView.RowFilter = "Status = 'Pending'"
' Set the filtered DataView as the DataSource for the DataGridView.
DataGridView1.DataSource = dataView
Me.AppointmentsTableAdapter.Fill(Me.HospitalDataSet.Appointments)
End Sub
conn.Close()
Next
MessageBox.Show("Successfully updated Records")
Dim previousform As Form = Application.OpenForms.OfType(Of Home)().FirstOrDefault()
If previousform IsNot Nothing Then
previousform.Show()
End If
Me.Close()
Else
MessageBox.Show("Please setect an appointment to close")
End If
End Sub
End Class