Mcsp44 Project Help
Mcsp44 Project Help
Sequence diagram:
A Sequence Diagram is
an interaction diagram
that
emphasis the time
ordering of messages; a
collaboration
diagram is an
interaction diagram that
emphasizes the
structural organization
of the objects that send
and receive
messages. Sequence
diagrams and
collaboration diagrams
are isomorphic, meaning
that you can take one
and
transform it into the
other.
Doctor Registration Reception Patient
Laboratory Pharmacy ischarge summary
1: login()
2: view appointment()
3: registration()
4: send request()
5: done any surgeries()
6: go to laboratory()
7: take medicins()
8: paitent ok()
9: send discharge summmary()
10 : discharge paitent()
Collaboration diagram:
A Collaboration Diagram
also called a
communication
diagram or interaction
diagram, is an
illustration of the
relationships and
interactions among
software objects. The
concept is more than a
decade old although it
has been
refined as modeling
paradigms have
evolved.
P1 : Patient R1 : Receptionist
D1 : Doctor N1 : Nurse
1:Takes Appointment
10:Takes Appointment from
doctor
4:confirms appointment
9:Ask for payment
7:Take medicins
5:Consult doctor
8:paitent ok
6:Assist doctor
3:Doctor available
2:takes Appointment from doctor
Deployement diagram:
A Deployment Diagram
shows the configuration
of run-
time processing nodes
and the components
that live on
them. Deployment
diagrams address the
static deployment
view of architecture.
They are related to
component
diagrams in that a node
typically encloses one or
more
components.
Hospit al Local Se rv e r
desk t op Client
Printer
Database Serv er
Statechart Diagrams:
The state diagram
shows the
states of an object and
represents activities as
arrows
connecting the states.
The Activity Diagram
highlights the
activities. Each activity
is represented by a
rounded
rectangle-narrower and
more oval-shaped than
the state
icon. An arrow
represents the transition
from the one
activity to the next. The
activity diagram has a
starting
point represented by
filled-in circle, and an
end point
represented by bulls
eye.
Enter Hospital
Takes Appointment
Undergo Diagnosis
Takes Treatment
undergo labtests and buy
medicines
gets cured
not cured
CHAPTER NO 7
SYSTEM
IMPLEMENTATION
7. IMPLEMENTATION:
7.1 Inroduction:
Implementation is the
stage of the project
when the
theoretical design is
turned out into a
working system.
Thus it can be
considered to be the
most critical stage in
achieving a successful
new system and in
giving the user,
confidence that the new
system will work and be
effective.
The implementation
stage involves careful
planning,
investigation of the
existing system and it’s
constraints on
implementation,
designing of methods to
achieve
changeover and
evaluation of
changeover methods.
7.2 Sample 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:50
px;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:20
0px;width:400px;height:
400px;"><
h3
align="center">Advanc
ed, powerfull, flexible
complete
management software
for hospital, clinic and
medical
institutes. Integrates
and facilitates all user
area of a
hospital:
</h3><h4>align="cent
er">Administrator</h4>
<h4
align="center">Doctor<
/h4>
<h4
align="center">Patient
</h4>
<h4
align="center">Nurse</
h4>
<h4
align="center">Pharma
cist</h4>
<h4
align="center">Laborat
orist</h4>
<h4
align="center">Account
ant</h4>
</td>
</tr>
<tr>
<td colspan="2"
style="background-
color:#9ACD32;text-
align:center;">
<table align="right">
<th>
<tr>
<form
action="appointment.ph
p" 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.ph
p" align="center">
<input type="submit"
align="center" value="
deathreport
">
</form>
</tr>
<tr>
<form
action="bedallotment.p
hp" 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:50
px;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:20
0px;width:400px;height:
400px;">
<?php
$host='localhost';
$username='root';
$password='';
$dbname='hospital';
$con=mysql_connect($h
ost,$username,
$password);
mysql_select_db($dbna
me);
$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>speciality</
th><th>age</th
></tr>";
while($row =
mysql_fetch_array($resu
lt))
{
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.ph
p" align="center">
<input type="submit"
align="center" value="
delete
doctor ">
</form></tr>
<tr>
<form
action="viewcompleted
octor.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.ph
p" 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.ph
p" align="center">
<input type="submit"
align="center" value="
deathreport
">
</form>
</tr><tr><form
action="bedallotment.p
hp"
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">DOCTO
R PANEL</h3>
</td>
</tr>
<tr>
<td style="background-
color:#00FFFF;width:50
px;height:400px;">
<table align="center">
<tr> <td><form
action="docappointmen
t.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.p
hp"
align="center">
<input type="submit"
align="center" value="
Operation
">
</form> </td></tr>
<tr> <td><form
action="docmedicines.p
hp.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:20
0px;width:400px;height:
400px;">
<h2 align="center">
Appointments </h2>
<?php
$host='localhost';
$username='root';
$password='';
$dbname='hospital';
$con=mysql_connect($h
ost,$username,
$password);
mysql_select_db($dbna
me);
$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($resu
lt))
{
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="updateappoint
ment.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="pendingappoint
ment.php"
align="center">
<input type="submit"
align="center" value="
pending
Appointment ">
</form> </td>
<td> <form
action="upcomingappoi
ntment.php"
align="center">
<input type="submit"
align="center" value="
upcoming
appointment ">
</form> </td>
<td><form
action="completedappoi
ntment.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>
CHAPTER NO 8
TESTING
8.1 INTRODUCTION TO
SYSTEM TESTING:
The
purpose of testing is to
discover
errors. Testing is the
process of trying to
discover every
conceivable fault or
weakness in a work
product. It
provides a way to check
the functionality of
components,
sub assemblies,
assemblies and/or a
finished product It is
the process of
exercising software with
the intent of
ensuring that the
Software system meets
its requirements and
user
expectations and does
not fail in an
unacceptable manner.
There are various types
of test. Each test type
addresses a
specific testing
requirement.
TYPES OF TESTING:
Unit testing:
Unit
testing involves the
design of test
cases that validate that
the internal program
logic is
functioning properly,
and that program inputs
produce
valid outputs. All
decision branches and
internal code flow
should be validated. It is
the testing of individual
software
units of the
application .it is done
after the completion of
an individual unit before
integration. This is a
structural
testing, that relies on
knowledge of its
construction and is
invasive. Unit tests
perform basic tests at
component level
and test a specific
business process,
application, and/or
system configuration.
Unit tests ensure that
each unique
path of a business
process performs
accurately to the
documented
specifications and
contains clearly defined
inputs and expected
results.
Integration testing:
Integration tests are
designed to test
integrated software
components to
determine if they
actually run as one
program. Testing is
event driven and
is more concerned with
the basic outcome of
screens or
fields. Integration tests
demonstrate that
although the
components were
individually satisfaction,
as shown by
successfully unit testing,
the combination of
components
is correct and
consistent. Integration
testing is specifically
aimed at exposing the
problems that arise from
the
combination of
components.
Functional test:
Functional tests provide
systematic
demonstrations that
functions tested are
available as
specified by the
business and technical
requirements,
system documentation,
and user manuals.
Functional testing is
centered on the
following items:
Valid Input :
identified classes of
valid input
must be accepted.
Invalid Input :
identified classes of
invalid input
must be rejected.
Functions :
identified functions must
be
exercised.
Output :
identified classes of
application outputs
must be exercised.
Systems/Procedures:
interfacing systems or
procedures
must be invoked.
Organization and
preparation of
functional tests is
focused on
requirements, key
functions,
or special test cases. In
addition, systematic
coverage
pertaining to identify
Business process flows;
data fields,
predefined processes,
and successive
processes must be
considered for testing.
Before functional testing
is
complete, additional
tests are identified and
the effective
value of current tests is
determined.
System Test:
System
testing ensures that the
entire
integrated software
system meets
requirements. It tests a
configuration to ensure
known and predictable
results. An
example of system
testing is the
configuration oriented
system integration test.
System testing is based
on process
descriptions and flows,
emphasizing pre-driven
process
links and integration
points.
White Box Testing:
White Box Testing is a
testing in which in which
the
software tester has
knowledge of the inner
workings,
structure and language
of the software, or at
least its
purpose. It is purpose. It
is used to test areas that
cannot
be reached from a black
box level.
Black Box Testing:
Black Box Testing is
testing the software
without any
knowledge of the inner
workings, structure or
language of
the module being
tested. Black box tests,
as most other
kinds of tests, must be
written from a definitive
source
document, such as
specification or
requirements document,
such as specification or
requirements document.
It is a
testing in which the
software under test is
treated, as a
black box .you cannot
“see” into it. The test
provides
inputs and responds to
outputs without
considering how
the software works.
Unit Testing:
Unit testing is usually
conducted as part of a
combined
code and unit test phase
of the software lifecycle,
although
it is not uncommon for
coding and unit testing
to be
conducted as two
distinct phases.
Test strategy and
approach
Field testing will be
performed manually and
functional
tests will be written in
detail.
Test objectives
All field entries must
work properly.
Pages must be activated
from the identified link.
The entry screen,
messages and
responses must not be
delayed.
Features to be tested
Verify that the entries
are of the correct format
No duplicate entries
should be allowed
All links should take the
user to the correct page.
Integration Testing:
Software integration
testing is the
incremental integration
testing of two or more
integrated software
components on
a single platform to
produce failures caused
by interface
defects.
The task of the
integration test is to
check that
components or software
applications, e.g.
components in a
software system or –
one step up – software
applications
at the company level –
interact without error.
Test Results:
All the test cases
mentioned above
passed successfully. No
defects encountered.
Acceptance Testing:
User Acceptance Testing
is a critical phase of any
project
and requires significant
participation by the end
user. It
also ensures that the
system meets the
functional
requirements.
Test Results: All
the test cases
mentioned above
passed successfully. No
defects encountered.
CHAPTER NO 9
SAMPLE SCREENSHOTS
LOGIN PAGE:
ADMIN PANEL:
ADDING NEW EMPLOYEE
DETAILS:
Doctor module:
Operation details:
Create operation
details:
Add employee details:
Bed allotment:
Patient registration
form:
Blood status:
Appointments:
CHAPTER NO 10
CONCLUSION AND
LIMITATIONS
The project Hospital
Management System
(HMS) is for
computerising the
working in
a hospital. lt is a great
improvement over
the manual system.
The computerisation
of the system has speed
up the process. In
the current system, the
front office
managing is very slow.
The hospital
managing system was
thoroughly checked
and tested with dummy
data and thus is
found to be very
reliable. The software
takes care of all the
requirements of an
average hospital and is
capable to provide
easy and effective
storage of information
related to patients that
come up to the
hospital.
lt generates test
reports and provides
the facility for searching
the details of the
patient. lt also provides
billing facility on
the basis of patient’s
status whether it is
an indoor or outdoor
patient. The system
also provides the facility
of backup as per
the requirement.
LIMITATIONS:
•
The size at the database
increases day-
by-day, increasing the
load on the
database back up
and data maintenance
activity.
•
Training Our sin ple
computer up
creations is necessary
Our the
•
users working on the
system.
CHAPTER NO:- 11
BIBLOGRAPHY
1. PHP MySQL Website
Programming: Problem -
Design – Solution
byChris
Lea, Mike Buzzard,
Dilip Thomas , Jessey
White-Cinis
2. Beginning PHP5,
Apache, and MySQL
Web
Development
(Programmer to
Programmer) by
Elizabeth Naramore
3. MySQL/PHP Database
Applications, 2nd Edition
by Brad Bulger
4. How to Do Everything
with PHP and
MySQL by Vikram
Vaswani
Web References
1.
www.google.com
2.
www.slideshare.com
3.
www.yahoo.com