You are on page 1of 14

Ideal Institute of Business & Science (IIBS)

Practical Report
On
Software Engineering Lab
Subject Code: 530220

Submitted To
MD.MAHMUDUL HASAN
Lecturer
Dept. of CSE
IIBS

Submitted By
Name:
Reg No:
Department of Computer Science & Engineering
Ideal Institute of Business & Science (IIBS)
Experiment No: 01
Experiment Name: Hospital Management System.
Objective: The objective of this experiment is to create a hospital management system.

Theory:

Software Development Life Cycle (SDLC) is a framework that describes the activities
performed at each stage of a software development project. The steps given below describe
implementation of proposed system:

Fig: System Development Life Cycle

Planning & Requirements:

The project plan was prepared by the Project Manager to form the basic of the actual project
work plan. This formed the baseline against the project being tracked and controlled. The plan
defined a work breakdown structure to individual task level, milestones and resource
assignments required to complete the tasks.
Project Manager used MS Project to prepare the detailed project plan with milestones to facilitate project
tracking. The Project followed the traditional approach, which helped establish a systematic approach to
the solution.

Analysis:
Once the project was initiated, requirements gathering and analysis was the first phase in software
development life cycle and a process of reviewing business's processes to determine the business needs
and functional requirements that a system must meet. During this phase, requirements were analyzed to
identify the application flow, the business logic implementation, and their context and usage pattern. The
analysis process started with the study and analysis of the current application.
Design:

Fig: E-R diagram of hospital management system.

Implementation:
Requirement : Microsoft Visual Studio 2008, Microsoft SQL Server 2005, Resharper, Computer
etc.
Procedure :
Step-1 :

1. First install three software into our computer. Basically we design our application & write its
corresponding code using Microsoft Visual Studio 2008 and Microsoft SQL Server 2005 is
used to create database and connect the database and application program.
2. Open Microsoft Visual Studio 2008
3. Click project then open new project. Select Windows Form Application then write project
Name, Location, Solution Name.Then press OK button & open new page.
4. In this new page from the left most side there is a Toolbox. In the Toolbox there are all
necessary components by which we deign an application such as Textbox, label, button etc.
And from the right most side there are Properties, in where we can change its color, name of
button, icon, name of application box etc. Now we will create Hospital Management System.
First, we take Textbox, label from Toolbox in the Form1.
5. Then we rename the Labels from Properties to Text. By clicking on Textbox, we can also
change Properties to Name.
6. Then, we take two Button to Apply and Search data information.

Hospital Management System

7. Then, we take DataGridView from ToolBox.


8. Then click right-top ArrowAdd Columns to add column in grid view.

9. Then, rename Header TextAdd.

10. Finally we get this view of Hospital Management System:

Hospital Management System

Step-2 :
1. Now click on SQL server 2005
2. As following fig. we click DatabasesNew Database to create new database.

3. Then rename Database Name -> OK

4. To create new table in database, we click


HospitalSystemDB(Database name)TablesNew
Table
5. Then insert Column Name in table.
6. Then save the table and rename it.
7. Finally we get the Table of Hospital Management System, like this

Step-3 :

1. Now, we type the insertion and display code by clicking on Insert Button and Display Button to connect
Microsoft Visual Studio 2008 and Microsoft SQL Server 2005 and to insert data in Microsoft SQL
Server 2005 & display it in Grid View. Then run the code and insert data on TextBox and the output is:

2. By clicking on Display Button, we get the following output:


Source Code :

Home.html:
<!DOCTYPE html>
<html>
<body>
<table width="1350" height="640" border="1" >
<tr>
<td colspan="2" style="background-color:#FFF5EE;">
<h1>HOSPITAL MANAGEMENT SYSTEM</h1>
<h3 align="center">ADMIN PANEL</h3>
</td>
</tr>
<tr>
<td style="background-color:#00FFFF;width:50px;height:400px;">
<table align="center">
<tr><td><form action="doctor.php" align="center">
<input type="submit" align="center" value=" doctor ">
</form></td>
</tr>

<tr>
<td><form action="nurse.php" align="center">
<input type="submit" align="center" value=" nurse ">
</form></td>
</tr>

<tr>
<td><form action="patient.php" align="center">
<input type="submit" align="center" value=" patient ">
</form></td>
</tr>

<tr>
<td><form action="pharmacist.php" align="center">
<input type="submit" align="center" value=" pharamacist ">
</form></td>
</tr>

<tr>
<td><form action="laboratorist.php" align="center">
<input type="submit" align="center" value=" laboratorist ">
</form></td><tr>
<td><form action="accountant.php" align="center">
<input type="submit" align="center" value=" accountant ">
</form></td>
</tr>
</table>
</td>
<td style="background-color:#eeeeee;height:200px;width:400px;height:400px;"><h3
align="center">Advanced, powerfull, flexible complete management software for hospital, clinic
and medical institutes. Integrates and facilitates all user area of a hospital:
</h3><h4>align="center">Administrator</h4>
<h4 align="center">Doctor</h4>
<h4 align="center">Patient</h4>
<h4 align="center">Nurse</h4>
<h4 align="center">Pharmacist</h4>
<h4 align="center">Laboratorist</h4>
<h4 align="center">Accountant</h4>
</td>
</tr>
<tr>
<td colspan="2" style="background-color:#9ACD32;text-align:center;">
<table align="right">
<th>
<tr>
<form action="appointment.php" align="center">
<input type="submit" align="center" value=" appointment ">
</form>
</tr>
<tr>
<form action="payment.php" align="center">
<input type="submit" align="center" value=" payment ">
</form>
</tr>
<tr>
<form action="bloodbank.php" align="center">
<input type="submit" align="center" value=" bloodbank ">
</form>
</tr>
<tr>
<form action="medicine.php" align="center">
<input type="submit" align="center" value=" medicine ">
</form>
</tr>
<tr>
<form action="operations.php" align="center">
<input type="submit" align="center" value=" operations ">
</form>
</tr>
<tr>
<form action="birthreport.php" align="center">
<input type="submit" align="center" value=" birthreport ">
</form>
</tr>
<tr>
<form action="deathreport.php" align="center">
<input type="submit" align="center" value=" deathreport ">
</form>
</tr>
<tr>
<form action="bedallotment.php" align="center">
<input type="submit" align="center" value=" bedallotment ">
</form>
</tr>
</th>
</table>
</td>
</tr></table></body></html>

Doctor.PHP
<!DOCTYPE html>
<html>
<body>
<table width="1350" height="640" border="1" >
<tr>
<td colspan="2" style="background-color:#FFF5EE;">
<h1>HOSPITAL MANAGEMENT SYSTEM</h1>
<h3 align="center">ADMIN PANEL</h3>
</td>
</tr>
<tr>
<td style="background-color:#00FFFF;width:50px;height:400px;">
<table align="center">
<tr>
<td><form action="nurse.php" align="center">
<input type="submit" align="center" value=" nurse ">
</form></td>
</tr>
<tr>
<td><form action="patient.php" align="center">
<input type="submit" align="center" value=" patient ">
</form></td>
</tr>
<tr>
<td><form action="pharmacist.php" align="center">
<input type="submit" align="center" value=" pharamacist ">
</form></td>
</tr>
<tr>
<td><form action="laboratorist.php" align="center">
<input type="submit" align="center" value=" laboratorist ">
</form></td>
<tr>
<td><form action="accountant.php" align="center">
<input type="submit" align="center" value=" accountant ">
</form></td>
</tr>
</table>
</td>
<td style="background-color:#eeeeee;height:200px;width:400px;height:400px;">
<?php
$host='localhost';
$username='root';
$password='';
$dbname='hospital';
$con=mysql_connect($host,$username,$password);
mysql_select_db($dbname);
$result = mysql_query("SELECT * FROM doctor");
echo "<h4 align='center'> doctors list </h4>";
echo "<table border=1
align=center><tr><th>s.no</th><th>name</th><th>d_id</th><th>qualification</th><th>speciali
ty</th><th>age</th></tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['s_no'] . "</td>";
echo "<td>" . $row['name'] . "</td>";
echo "<td>" . $row['d_id'] . "</td>";
echo "<td>" . $row['qualification'] . "</td>";
echo "<td>" . $row['speciality'] . "</td>";
echo "<td>" . $row['age'] . "</td>";
echo "</tr>";

echo "</table>";
mysql_close($con);
?>
<br><br>
<table align="right">
<th>
<tr>
<form action="adddoctor.php" align="center">
<input type="submit" align="center" value=" add new doctor ">
</form>
</tr>
<tr>
<form action="deletedoctor.php" align="center">
<input type="submit" align="center" value=" delete doctor ">
</form></tr>
<tr>
<form action="viewcompletedoctor.php" align="center">
<input type="submit" align="center" value=" viewcomplete ">
</form>
</tr>
<tr>
<form action="admin.html" align="center">
<input type="submit" align="center" value=" home ">
</form>
</tr></table>
</td>
</tr><tr>
<td colspan="2" style="background-color:#9ACD32;text-align:center;">
<table align="right">
<th>
<tr><form action="appointment.php" align="center">
<input type="submit" align="center" value=" appointment ">
</form>
</tr><tr><form action="payment.php" align="center">
<input type="submit" align="center" value=" payment ">
</form>
</tr><tr><form action="bloodbank.php" align="center">
<input type="submit" align="center" value=" bloodbank ">
</form>
</tr><tr>
<form action="medicine.php" align="center">
<input type="submit" align="center" value=" medicine ">
</form>
</tr><tr><form action="operations.php" align="center">
<input type="submit" align="center" value=" operations ">
</form>
</tr><tr>
<form action="birthreport.php" align="center">
<input type="submit" align="center" value=" birthreport ">
</form>
</tr><tr><form action="deathreport.php" align="center">
<input type="submit" align="center" value=" deathreport ">
</form>
</tr><tr><form action="bedallotment.php" align="center">
<input type="submit" align="center" value=" bedallotment ">
</form>
</tr></th> </table>
</td></tr></table>
</body>
</html>

Appointment.php
<!DOCTYPE html>
<html>
<body>
<table width="1350" height="640" border="1" ><tr>
<td colspan="2" style="background-color:#FFF5EE;">
<h1>HOSPITAL MANAGEMENT SYSTEM</h1>
<h3 align="center">DOCTOR PANEL</h3>
</td>
</tr>
<tr>
<td style="background-color:#00FFFF;width:50px;height:400px;">
<table align="center">
<tr> <td><form action="docappointment.php" align="center">
<input type="submit" align="center" value=" Appointment ">
</form> </td></tr>
<tr> <td><form action="docperscription.php" align="center">
<input type="submit" align="center" value=" perscription ">
</form> </td> </tr>
<tr> <td> <form action="docoperation.php" align="center">
<input type="submit" align="center" value=" Operation ">
</form> </td></tr>
<tr> <td><form action="docmedicines.php.php" align="center">
<input type="submit" align="center" value=" Add Medicines ">
</form></td></tr>
<tr> <td> <form action="doctests.php" align="center">
<input type="submit" align="center" value=" Add Tests ">
</form></td>
</table>
</td>
<td style="background-color:#eeeeee;height:200px;width:400px;height:400px;">
<h2 align="center"> Appointments </h2>
<?php
$host='localhost';
$username='root';
$password='';
$dbname='hospital';
$con=mysql_connect($host,$username,$password);
mysql_select_db($dbname);
$result = mysql_query("SELECT * FROM appointment WHERE d_id='$a'");
echo "<table border=1 align=center> <tr> <th>s.no</th> <th>pid</th> <th>name</th>
<th>problem</th> <th>date</th> <th>time</th> <th>status</th> <th> update</th> </tr>";

while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['s_no'] . "</td>";
echo "<td>" . $row['p_id'] . "</td>";
echo "<td>" . $row['name'] . "</td>";
echo "<td>" . $row['problem'] . "</td>";
echo "<td>" . $row['date_of_app'] . "</td>";
echo "<td>" . $row['time_of_app'] . "</td>";
echo "<td>" . $row['status'] . "</td>";
echo "<td>" ;?> <form action="updateappointment.php" align="center" method="POST">
<input type="hidden" name="sno" value=" <?php echo $row['s_no']; ?> ">
<input type="hidden" name="pid" value=' <?php echo $row['p_id']; ?> '>
<input type="submit" align="center" value=" update ">
</form> <?php echo "<td>";
echo "</tr>";
}
echo "</table>";
mysql_close($con);
?>
<br><br>
<table align="center">
<tr>
<td><form action="allappointment.php" align="center">
<input type="submit" align="center" value=" all Appointment ">
</form> </td>
<td><form action="pendingappointment.php" align="center">
<input type="submit" align="center" value=" pending Appointment ">
</form> </td>
<td> <form action="upcomingappointment.php" align="center">
<input type="submit" align="center" value=" upcoming appointment ">
</form> </td>
<td><form action="completedappointment.php" align="center">
<input type="submit" align="center" value=" completed Appointment ">
</form></td></table>
</td></tr>
<tr>
<td colspan="2" style="background-color:#9ACD32;text-align:center;">
<table align="center"> <tr> <td> Doctor name </td> <td> </td> <td> Doctor id </td> <td>
</td> </tr> </table>
</td></tr>
</table></body></html>

By following the above instructions, we can create a Hospital Management System and run it successfully.

Maintenance:
1. A customer/user support structure and any other necessary operational support processes should be in
place.

2. Any planned changes to the system or software should be scheduled, communicated, and documented.

3. Continuous security penetration testing is conducted on the system or software throughout its life
cycle at regularly scheduled intervals.

4. Mandatory security testing is conducted when any major configuration or architecture change is made.

You might also like