You are on page 1of 33

Asia Pacific Institute Of Information Technology,

Sri Lanka

Further Programming Concepts in C++


(CE00314-2)
INDIVIDUAL ASSIGNMENT

Lecturer: Mr. Udesh Amarasinghe

Date Assigned: 21st September 2010


Date Submitted: 02th November 2010

Submitted by:
Prasanga Wadanamby (CB003340)

Further Programming Concepts in C++

Acknowledgment

I would like to thank Mr.Udesh Amarasinghe for his continuous guidance and support in
carrying out this project. Without his valuable supervision, all my efforts would have been
short sighted. His continuous help encouraged me to involve in the project in a wider scope
and aspect.
I would also thank my family members and my batch colleagues who rendered me their
immense support throughout this project.

Asia Pacific Institute of Information TechnologyPage 2

Further Programming Concepts in C++

Table of Content

Acknowledgment........................................................................................................ 2
List of Figures............................................................................................................ 5
List of Table.............................................................................................................. 6
1.0

Introduction..................................................................................................... 7

2.0 Description and justification of the Design of the implementation codes................................8


2.1 Use Case Diagram.................................................................................................. 8
2.2 Class Diagram.................................................................................................... 9
3.0 Description and justification of the implementation codes in terms of object oriented
programming concepts............................................................................................... 11
4.0 Descriptions and Justifications of Validation Codes.......................................................13
5.0 Test Plans........................................................................................................... 15
5.1 Main Menu Screen............................................................................................ 15
5.2 General Login Screen......................................................................................... 15
5.3 Admin Menu Screen.......................................................................................... 16
5.4 Doctor Menu Screen.......................................................................................... 17
5. 5 Nurse Menu Screen........................................................................................... 18
5.6 Patient Menu Screen.......................................................................................... 19
5.7 Add User Menu Screen....................................................................................... 19
5.8 Update Details Menu Screen................................................................................ 20
5.9 Delete Details Menu Screen................................................................................. 21
5.10 Search Details Menu Screen............................................................................... 22
5.11 Search Assign Records Screen............................................................................. 22
5.12 Search Doctor Details Screen.............................................................................. 23
5.13 Search Diagnosis Details Screen..........................................................................23
5.14 Search Payment Details Screen............................................................................24
5.15 Search Patient Details Screen.............................................................................. 24
5.16 Update Patient Details Screen............................................................................. 25
5.17 Update Doctor Details Screen............................................................................. 26
5.18 Update Diagnosis Details Screen.........................................................................28
5.19 Update Payments Details Screen..........................................................................29
5.20 Delete Assign Records Screen............................................................................. 30
5.21 Delete Diagnosis Records Screen.........................................................................30

Asia Pacific Institute of Information TechnologyPage 3

Further Programming Concepts in C++


5.22 Delete Patient Details Screen.............................................................................. 31
5.23 Delete Payment Details Screen............................................................................ 31
5.24 Delete Doctor Details Screen.............................................................................. 32
5.25 Delete Nurse Details Screen............................................................................... 32
6.0 Conclusion......................................................................................................... 33
6.0 References.......................................................................................................... 34

List of Figures

Figure 1- Use Case Diagram.......................................................................................... 8

Asia Pacific Institute of Information TechnologyPage 4

Further Programming Concepts in C++


Figure 2 Class Diagram.............................................................................................. 9
Figure 3 Class Code................................................................................................ 11
Figure 4 Object Code............................................................................................... 12
Figure 5 - Encapsulation............................................................................................. 12
Figure 6 Validation 1............................................................................................... 13
Figure 7 Validation 2............................................................................................... 14

List of Table

Table 1 Main Menu Screen........................................................................................ 15

Asia Pacific Institute of Information TechnologyPage 5

Further Programming Concepts in C++


Table 2 General Login Screen.................................................................................... 16
Table 3- Admin Menu Screen....................................................................................... 16
Table 4 Doctor Menu Screen...................................................................................... 17
Table 5 Nurse Menu Screen....................................................................................... 18
Table 6 Patient Menu Screen...................................................................................... 19
Table 7 Add User Menu Screen.................................................................................. 20
Table 8 Update Details Menu Screen............................................................................20
Table 9 Delete Details Menu Screen............................................................................. 21
Table 10 Search Details Menu Screen...........................................................................22
Table 11 Search Assign Records Screen........................................................................22
Table 12 Search Doctor Details Screen.........................................................................23
Table 13 Search Diagnosis Details Screen.....................................................................23
Table 14 Search Payment Details Screen.......................................................................24
Table 15 Search Patient Details Screen.........................................................................24
Table 16 - Update Patient Details Screen.........................................................................26
Table 17 - Update Doctor Details Screen.........................................................................27
Table 18 Update Diagnosis Details Screen.....................................................................28
Table 19 Update Payments Details Screen.....................................................................29
Table 20 Delete Assign Records Screen........................................................................30
Table 21 Delete Diagnosis Records Screen....................................................................30
Table 22 Delete Patient Details Screen..........................................................................31
Table 23 Delete Payment Details Screen.......................................................................31
Table 24 Delete Doctor Details Screen..........................................................................32
Table 25 Delete Nurse Details Screen...........................................................................32

1.0 Introduction

Asia Pacific Institute of Information TechnologyPage 6

Further Programming Concepts in C++


The following report is about a patient handling system which is developed as win32 console
application. This system requires some level of complex user requirements and advanced
programming concepts to fulfill those requirements.
Main system requirements are given as below.
1) Handle the user registrations
2) Handle the main hospital process such as,
i.
Search users
ii.
Assign users
iii.
Generate reports
iv. Update records
3) Handle the record processes
4) Handle payments
This report structured as four main sections.
a)
b)
c)
d)

Design of the implementation


Object oriented concepts in programming
Validations
Test plan

Each of these main categories contains description and a justification to give the clear idea of
the implemented system.

2.0 Description and justification of the Design of the implementation codes


2.1 Use Case Diagram

Asia Pacific Institute of Information TechnologyPage 7

Further Programming Concepts in C++

2.2

Figure 1- Use Case Diagram

Class
Diagram

Asia Pacific Institute of Information TechnologyPage 8

Further Programming Concepts in C++

Figure 2 Class Diagram

Class diagram is a design which represents and illustrates the dependencies and connections
of the source code with classes.

Asia Pacific Institute of Information TechnologyPage 9

Further Programming Concepts in C++


In figure shows the UML class diagram for the proposed system. It only shows how the
classes are structured and how the connection happens within the class.
All the users are taken as classes in this proposed system to reduce the complexity of the code
and functions. Admin class is the example which shows you how the functions are going to
happen and what type of data will it going to be process.
And also the main process which handles few data input processes are taken as classes. Such
as class Assign and Payment will give you the idea of their behaviors.

Asia Pacific Institute of Information TechnologyPage 10

Further Programming Concepts in C++

3.0 Description and justification of the implementation codes in terms of


object oriented programming concepts

Classes and objects


In the object oriented programming class is the major component which works as the base of
the programming procedure. As E.Balagurusamy(2008,p8), class is a collection of objects
which is the same type and behave as the built-in-types of any programming language.
The following code in figure 3 shows how an object is created using a class and how the
attributes and functions are defined within class object.

Figure 3 Class Code

Asia Pacific Institute of Information TechnologyPage 11

Further Programming Concepts in C++


And the following code in figure 4 shows an object of the above class.

Object

Figure 4 Object Code

Encapsulation
As it mentioned in Exforsys Inc(n.d) Encapsulation is the process of combining all data and
functions into a single object called class which only provides the indirect access to the data
via a function presets for a user.
The below code at figure might give an idea of how a class encapsulate all data and
functions.

Figure 5 - Encapsulation

Asia Pacific Institute of Information TechnologyPage 12

Further Programming Concepts in C++

4.0 Descriptions and Justifications of Validation Codes


Validations are used to handle errors which are occur during the time of users involve in use
of the program. So it is necessary to prevent these errors rather than having unwanted system
corruptions and to implement more user friendly system.
Mainly the errors occur when the users are selecting something in the program or any kind of
data processing occasions. To prevent these errors, this Patient Handling System used few
validations.

Figure 6 Validation 1

As it shows in figure 6, user inputs are taken as character values in all menu functions to
prevent inputs with char values for integer values.

Asia Pacific Institute of Information TechnologyPage 13

Further Programming Concepts in C++


Below code figure 7 which taken from the Patient Menu is validated to accept only the given
choices for the users.

Figure 7 Validation 2

Asia Pacific Institute of Information TechnologyPage 14

Further Programming Concepts in C++

5.0 Test Plans

5.1 Main Menu Screen


Program takes the numbers as the user input, categorized as below and appends to give the
results as below.
Test Case

Expected Result

Actual Result

Status

Press 1 for go to Admin

Go to Admin Login

Goes to Admin

OK

Login Screen
Press 2 for go to Doctor

screen
Go to Doctor Login

Login screen
Goes to Doctor

OK

Login Screen
Press 3 for go to Nurse

screen
Go to Nurse Login

Login screen
Goes to Nurse Login

OK

Login Screen
Press 4 for go to Patient

screen
Go to Patient Login

screen
Goes to Patient

OK

Login Screen
Press 0 to exit

screen
Close the program

Login screen
Closes the program

OK

Wrong selection

Show error message

Shows error

OK

message
Table 1 Main Menu Screen

5.2 General Login Screen


This is the login screen for all user levels which takes user id and the password as inputs.
Test Case

Expected Result

Actual Result

Status

Enter user id

Take the user id

Takes the user id

OK

Enter password

Take the password

Takes the password

OK

Press 0 to exit

Go to Main Menu

Goes to Main Menu

OK

screen
User authentication success Go to the relevant

screen
Goes to the relevant

OK

user menu

Asia Pacific Institute of Information TechnologyPage 15

user menu

Further Programming Concepts in C++


5

User authentication Fail

Message show Try

Message shows Try

OK

Wrong selection

again
Show error message

again
Shows error

OK

message
Table 2 General Login Screen

5.3 Admin Menu Screen

This prompt will allow the admin to select four main categories which redirect the admin to
sub menus of the given categories.
Test Case

Expected Result

Actual Result

Status

Press 1 for go to Add User

Go to Add User

Goes to Add User

OK

Screen
Press 2 for go to Update

screen
Go to Update Details

screen
Goes to Update

OK

Details Screen
Press 3 for go to Delete

screen
Go to Delete Details

Details screen
Goes to Delete

OK

Details Screen
Press 4 for go to Search

screen
Go to Search Details

Details screen
Goes to Search

OK

Details Screen
Press 0 to exit

screen
Go to Main Menu

Details screen
Goes to Main Menu

OK

Wrong selection

screen
Show error message

screen
Shows error

OK

message
Table 3- Admin Menu Screen

5.4 Doctor Menu Screen

This prompt will allow the doctor to perform the tasks he/she assigns to perform.
Test Case

Expected Result

Asia Pacific Institute of Information TechnologyPage 16

Actual Result

Status

Further Programming Concepts in C++


1

Press 1 for go to Search

Go to Search Assign

Goes to Search

OK

Assign Records Screen


Press 2 for go to Search

Records
Go to Search Patient

Assign Records
Goes to Search

OK

Patient Screen
Press 3 for go to Add

screen
Go to Add Diagnosis

Patient screen
Goes to Add

OK

Diagnosis Details Screen

Details screen

Diagnosis Details

Press 4 for go to View

Go to View

screen
Goes to View

Diagnosis Details Screen

Diagnosis Details

Diagnosis Details

Press 5 for go to Update

screen
Go to Update

screen
Goes to Update

OK

Diagnosis Details Screen


Press 6 for go to Delete

Diagnosis Details
Go to Delete

Diagnosis Details
Goes to Delete

OK

Diagnosis Details Screen


Press 0 to exit

Diagnosis Details
Go to Main Menu

Diagnosis Details
Goes to Main Menu

OK

Wrong selection

screen
Show error message

screen
Shows error

OK

message
Table 4 Doctor Menu Screen

Asia Pacific Institute of Information TechnologyPage 17

OK

Further Programming Concepts in C++

5. 5 Nurse Menu Screen

This prompt will appear when a nurse logs in to the system and it will allow him/her to search
the patient details and assign that patient to doctor.
Test Case

Expected Result

Actual Result

Status

Press 1 for go to Search

Go to Search Patient

Goes to Search

OK

Patient Screen
Press 1 for go to Search

screen
Go to Search Doctor

Patient screen
Goes to Search

OK

Doctor Screen
Press 3 for go to Add

screen
Go to Add Diagnosis

Doctor screen
Goes to Add

OK

Diagnosis Details Screen

Details screen

Diagnosis Details
OK
OK

Press 0 to exit

Go to Main Menu

screen
Goes to Main Menu

Wrong selection

screen
Show error message

screen
Shows error
message

Table 5 Nurse Menu Screen

5.6 Patient Menu Screen

Asia Pacific Institute of Information TechnologyPage 18

Further Programming Concepts in C++


After the patient log in to the system, he/she can view their diagnosis report and the payments
report.
Test Case

Expected Result

Actual Result

Status

Press 1 for go to View

Go to View

Goes to View

OK

Diagnosis Screen
Press 2 for go to View

Diagnosis screen
Go to View Payments

Diagnosis screen
Goes to View

OK

Payments Screen
Press 0 to exit

screen
Go to Main Menu

Payments screen
Goes to Main Menu

OK

Wrong selection

screen
Show error message

screen
Shows error

OK

message
Table 6 Patient Menu Screen

5.7 Add User Menu Screen

This prompt will allow the administrator to move in to the sub menus which handles the
insertion of users such as administrators, doctors, nurses and patients.
Test Case

Expected Result

Actual Result

Status

Press 1 for go to Add

Go to Add Patient

Goes to Add Patient

OK

Patient Screen
Press 2 for go to Add

Screen
Go to Add Doctor

Screen
Goes to Add Doctor

OK

Doctor Screen
Press 3 for go to Add

Screen
Go to Add Nurse

Screen
Goes to Add Nurse

OK

Nurse Screen
Press 4 for go to Add

Screen
Go to Add Admin

Screen
Goes to Add Admin

OK

Admin Screen
Press 0 to exit

Screen
Go to Admin Menu

Screen
Goes to Admin

OK

Wrong selection

screen
Show error message

Menu screen
Shows error

OK

message
Table 7 Add User Menu Screen

Asia Pacific Institute of Information TechnologyPage 19

Further Programming Concepts in C++

5.8 Update Details Menu Screen

This prompt will allow the administrator to move in to the sub menus which handles the
update process of patient details, doctor details, diagnosis records and payments records.

Test Case

Expected Result

Actual Result

Status

Press 1 for go to Update

Go to Update Patient

Goes to Update

OK

Patient Screen
Press 2 for go to Update

Screen
Go to Update Doctor

Patient Screen
Goes to Update

OK

Doctor Screen
Press 3 for go to Update

Screen
Go to Update

Doctor Screen
Goes to Update

OK

Diagnosis Screen
Press 4 for go to Update

Diagnosis Screen
Go to Update

Diagnosis Screen
Goes to Update

OK

Payments Screen
Press 0 to exit

Payments Screen
Go to Admin Menu

Payments Screen
Goes to Admin

OK

Wrong selection

screen
Show error message

Menu screen
Shows error

OK

message
Table 8 Update Details Menu Screen

5.9 Delete Details Menu Screen


This prompt will allow the administrator to move in to the sub menus which handles the
update process of patient details, doctor details, diagnosis records and payments records.
Test Case

Expected Result

Actual Result

Status

Press 1 for go to Delete

Go to Delete Patient

Goes to Delete

OK

Patient Screen
Press 2 for go to Delete

Screen
Go to Delete Doctor

Patient Screen
Goes to Delete

OK

Doctor Screen
Press 3 for go to Delete

Screen
Go to Delete Nurse

Doctor Screen
Goes to Delete

OK

Nurse Screen

Screen

Nurse Screen

Asia Pacific Institute of Information TechnologyPage 20

Further Programming Concepts in C++


4

Press 4 for go to Delete

Go to Delete

Goes to Delete

OK

Diagnosis Screen
Press 5 for go to Delete

Diagnosis Screen
Go to Delete

Diagnosis Screen
Goes to Delete

OK

Payments Screen
Press 0 to exit

Payments Screen
Go to Admin Menu

Payments Screen
Goes to Admin

OK

Wrong selection

screen
Show error message

Menu screen
Shows error

OK

message
Table 9 Delete Details Menu Screen

Asia Pacific Institute of Information TechnologyPage 21

Further Programming Concepts in C++

5.10 Search Details Menu Screen

Search details menu contains the functions of search doctor, diagnosis details and payments
details.
Test Case

Expected Result

Actual Result

Status

Press 1 for go to Search

Go to Search Doctor

Goes to Search

OK

Doctor Screen
Press 2 for go to Search

Screen
Go to Search

Doctor Screen
Goes to Search

OK

Diagnosis Screen
Press 3 for go to Search

Diagnosis screen
Go to Search

Diagnosis screen
Goes to Search

OK

Payments Screen
Press 0 to exit

Payments screen
Go to Admin Menu

Payments screen
Goes to Admin

OK

Wrong selection

screen
Show error message

Menu screen
Shows error

OK

message
Table 10 Search Details Menu Screen

5.11 Search Assign Records Screen

This prompt will allow users to search an assignment detail of a patient to a doctor by using
patient id.

Test Case

Expected Result

Actual Result

Status

Search Assign Records

Should take the user

Takes the user input

OK

Screen

input and show the

and shows the

Redirect to the appropriate

results
Should redirect by

results
Redirects by two

sub menu

two clicks

clicks

Table 11 Search Assign Records Screen

5.12 Search Doctor Details Screen

Asia Pacific Institute of Information TechnologyPage 22

OK

Further Programming Concepts in C++


This prompt will allow the user to search doctor details by using doctor id.

Test Case

Expected Result

Actual Result

Status

Search Doctor Details

Should take the user

Takes the user input

OK

Screen

input and show the

and shows the

Redirect to the appropriate

results
Should redirect by

results
Redirects by two

sub menu

two clicks

clicks

OK

Table 12 Search Doctor Details Screen

5.13 Search Diagnosis Details Screen

This prompt will allow the user to search diagnosis details of a patient by using the patient id.

Test Case

Expected Result

Actual Result

Status

Search Diagnosis Details

Should take the user

Takes the user input

OK

Screen

input and show the

and shows the

Redirect to the appropriate

results
Should redirect by

results
Redirects by two

sub menu

two clicks

clicks

Table 13 Search Diagnosis Details Screen

Asia Pacific Institute of Information TechnologyPage 23

OK

Further Programming Concepts in C++

5.14 Search Payment Details Screen

This prompt will allow the user to search payment details of a patient by using the patient id.

Test Case

Expected Result

Actual Result

Status

Search Payment Details

Should take the user

Takes the user input

OK

Screen

input and show the

and shows the

Redirect to the appropriate

results
Should redirect by

results
Redirects by two

sub menu

two clicks

clicks

OK

Table 14 Search Payment Details Screen

5.15 Search Patient Details Screen

This prompt will allow the user to search patient details by using the patient id.

Test Case

Expected Result

Actual Result

Status

Search Patient Details

Should take the user

Takes the user input

OK

Screen

input and show the

and shows the

Redirect to the appropriate

results
Should redirect by

results
Redirects by two

sub menu

two clicks

clicks

Table 15 Search Patient Details Screen

5.16 Update Patient Details Screen

Asia Pacific Institute of Information TechnologyPage 24

OK

Further Programming Concepts in C++


Users can update selected patient details by using patient id in this prompt.

Test Case

Expected Result

Actual Result

Status

Press 1 for Update Name

Should appear

Appears Update

OK

prompt

Update Name prompt

Name prompt and

Press 2 for Update NIC

and accept user input


Should appear

accepts user input


Appears Update NIC OK

prompt

Update NIC prompt

prompt and accepts

Press 3 for Update Gender

and accept user input


Should appear

user input
Appears Update

prompt

Update Gender

Gender prompt and

prompt and accept

accepts user input

Press 4 for Update YOB

user input
Should appear

Appears Update

prompt

Update YOB prompt

YOB prompt and

Press 5 for Update

and accept user input


Should appear

accepts user input


Appears Update

Nationality prompt

Update Nationality

Nationality prompt

prompt and accept

and accepts user

Press 6 for Update

user input
Should appear

input
Appears Update

Password prompt

Update Password

Password prompt

prompt and accept

and accepts user

Press 7 for Update Allergy

user input
Should appear

input
Appears Update

prompt

Update Allergy

Allergy prompt and

prompt and accept

accepts user input

OK

OK

OK

OK

OK

user input
Press 8 for Save the Details Should save the

Save the details

OK

prompt
Press 9 for Show updated

details
Should show updated

Show updated

OK

10

Details prompt
Press 0 to exit

details
Go to appropriate sub

details
Goes to appropriate

OK

Wrong selection

menu screen
Show error message

sub menu screen


Shows error

OK

11

message
Table 16 - Update Patient Details Screen

Asia Pacific Institute of Information TechnologyPage 25

Further Programming Concepts in C++

5.17 Update Doctor Details Screen

Users can update selected doctor details by using doctor id in this prompt.

Test Case

Expected Result

Actual Result

Status

Press 1 for Update Name

Should appear

Appears Update

OK

prompt

Update Name prompt

Name prompt and

Press 2 for Update

and accept user input


Should appear

accepts user input


Appears Update

Specialized Area prompt

Update Specialized

Specialized Area

Area prompt and

prompt and accepts

Press 3 for Update Contact

accept user input


Should appear

user input
Appears Update

No prompt

Update Contact No

Contact No prompt

prompt and accept

and accepts user

Press 4 for Update

user input
Should appear

input
Appears Update

Password prompt

Update Password

Password prompt

prompt and accept

and accepts user

OK

OK

OK

user input
Press 5 for Save the Details Should save the

input
Save the details

OK

prompt
Press 6 for Show updated

details
Should show updated

Show updated

OK

Details prompt
Press 0 to exit

details
Go to appropriate sub

details
Goes to appropriate

OK

Wrong selection

menu screen
Show error message

sub menu screen


Shows error

OK

message
Table 17 - Update Doctor Details Screen

Asia Pacific Institute of Information TechnologyPage 26

Further Programming Concepts in C++

5.18 Update Diagnosis Details Screen

Users can update selected diagnosis details of a patient by using patient id in this prompt.
Test Case

Expected Result

Actual Result

Status

Press 1 for Update Illness

Should appear

Appears Update

OK

prompt

Update Illness

Illness prompt and

prompt and accept

accepts user input

Press 2 for Update

user input
Should appear

Appears Update

Treatment prompt

Update Treatment

Treatment prompt

prompt and accept

and accepts user

Press 3 for Update Drugs

user input
Should appear

input
Appears Update

prompt

Update Drugs prompt

Drugs prompt and

and accept user input


Press 5 for Save the Details Should save the

accepts user input


Save the details

OK

prompt
Press 6 for Show updated

details
Should show updated

Show updated

OK

Details prompt
Press 0 to exit

details
Go to appropriate sub

details
Goes to appropriate

OK

Wrong selection

menu screen
Show error message

sub menu screen


Shows error

OK

message
Table 18 Update Diagnosis Details Screen

Asia Pacific Institute of Information TechnologyPage 27

OK

OK

Further Programming Concepts in C++

5.19 Update Payments Details Screen

Users can update selected payment details of a patient by using patient id in this prompt.

Test Case

Expected Result

Actual Result

Status

Press 1 for Update Patient

Should appear

Appears Update

OK

Name prompt

Update Patient Name

Patient Name

prompt and accept

prompt and accepts

Press 2 for Update Amount

user input
Should appear

user input
Appears Update

prompt

Update Amount

Amount prompt and

prompt and accept

accepts user input

Press 3 for Update Status

user input
Should appear

Appears Update

prompt

Update Status prompt

Drugs Status and

OK

OK

and accept user input


Press 5 for Save the Details Should save the

accepts user input


Save the details

OK

prompt
Press 6 for Show updated

details
Should show updated

Show updated

OK

Details prompt
Press 0 to exit

details
Go to appropriate sub

details
Goes to appropriate

OK

Wrong selection

menu screen
Show error message

sub menu screen


Shows error

OK

message
Table 19 Update Payments Details Screen

Asia Pacific Institute of Information TechnologyPage 28

Further Programming Concepts in C++

5.20 Delete Assign Records Screen

This prompt will allow users to search an assignment detail of a patient to a doctor by using
patient id and allows it to be deleted.

2
3

Test Case

Expected Result

Actual Result

Status

Search Assign Records

Should take the user

Takes the user input

OK

input and request to

and requests to

Press 1 for Delete

delete the results


Should delete the

delete the results


Deletes the record

OK

Press 0 for Cancel

record
Should redirect to the

Redirects to the

OK

appropriate sub menu

appropriate sub
menu

Table 20 Delete Assign Records Screen

5.21 Delete Diagnosis Records Screen

This prompt will allow users to search a diagnosis detail of a patient by using patient id and
allows it to be deleted.

Test Case

Expected Result

Actual Result

Status

Search Diagnosis Records

Should take the user

Takes the user input

OK

input and request to

and requests to

Press 1 for Delete

delete the results


Should delete the

delete the results


Deletes the record

OK

Press 0 for Cancel

record
Should redirect to the

Redirects to the

OK

appropriate sub menu

appropriate sub
menu

Table 21 Delete Diagnosis Records Screen

Asia Pacific Institute of Information TechnologyPage 29

Further Programming Concepts in C++

5.22 Delete Patient Details Screen

This prompt will allow users to search a patient by using patient id and allows deleting the
record.

Test Case

Expected Result

Actual Result

Status

Search Patient Details

Should take the user

Takes the user input

OK

input and request to

and requests to
delete the results
Deletes the record

OK
OK

Press 1 for Delete

delete the results


Should delete the

Press 0 for Cancel

record
Should redirect to the

Redirects to the

appropriate sub menu

appropriate sub
menu

Table 22 Delete Patient Details Screen

5.23 Delete Payment Details Screen

This prompt will allow users to search a payment detail by using patient id and allows
deleting the record.

2
3

Test Case

Expected Result

Actual Result

Status

Search Payment Details

Should take the user

Takes the user input

OK

input and request to

and requests to

Press 1 for Delete

delete the results


Should delete the

delete the results


Deletes the record

OK

Press 0 for Cancel

record
Should redirect to the

Redirects to the

OK

appropriate sub menu

appropriate sub
menu

Table 23 Delete Payment Details Screen

5.24 Delete Doctor Details Screen

Asia Pacific Institute of Information TechnologyPage 30

Further Programming Concepts in C++


This prompt will allow users to search a doctor by using doctor id and allows deleting the
record.

Test Case

Expected Result

Actual Result

Status

Search Doctor Details

Should take the user

Takes the user input

OK

input and request to

and requests to
delete the results
Deletes the record

OK
OK

Press 1 for Delete

delete the results


Should delete the

Press 0 for Cancel

record
Should redirect to the

Redirects to the

appropriate sub menu

appropriate sub
menu

Table 24 Delete Doctor Details Screen

5.25 Delete Nurse Details Screen

This prompt will allow users to search a nurse by using nurse id and allows deleting the
record.

2
3

Test Case

Expected Result

Actual Result

Status

Search Nurse Details

Should take the user

Takes the user input

OK

input and request to

and requests to

Press 1 for Delete

delete the results


Should delete the

delete the results


Deletes the record

OK

Press 0 for Cancel

record
Should redirect to the

Redirects to the

OK

appropriate sub menu

appropriate sub
menu

Table 25 Delete Nurse Details Screen

6.0 Conclusion

Asia Pacific Institute of Information TechnologyPage 31

Further Programming Concepts in C++


Further Programming Concepts in C++ is one of the best ways to work and to have great
practices in object oriented programming concepts. Nowadays, object oriented programming
concepts are the most preferable and commonly use concepts in IT industry. By involving to
the Further Programming Concepts in C++ lectures and to the assignment which guided me
to develop a Patient Handling System, gave me a better picture about the C++ language and
object oriented concepts.
In my Win32 console application, I was able to add object oriented concepts which helped me
a lot to make this application a success. Limitations of the system are considered as further
development section. But developing a Win32 console application using C++ helped me to
improve my knowledge in C++ programming language and object oriented programming
concepts.

6.0 References

Asia Pacific Institute of Information TechnologyPage 32

Further Programming Concepts in C++


Exforsys Inc.(2000-2010). C++ Encapsulation. [Online]. Available from:
http://www.exforsys.com/tutorials/c-plus-plus/encapsulation--an-introduction.html.
[Accessed: 22nd October 2010].

Balagurusamy, E.(ed.)(2008). Object oriented programming with C++: 4th Edition. McGrawHill companies: McGraw-Hill.

Bjarne Stroustrup.(ed.)(2004). The C++ Programming Language: 3rd Edition. Pearson


Education.

Asia Pacific Institute of Information TechnologyPage 33

You might also like