COVID_Administration_System
COVID_Administration_System
on
COVID Administration System
Submitted To
Purbanchal University
Biratnagar, Nepal
Submitted By
Archana Khadka(313318)
Ashok Basnet(313322)
Sachin Gautam(313345)
Submitted To
Purbanchal University
Biratnagar, Nepal
Submitted By
Archana Khadka(313318)
Ashok Basnet(313322)
Sachin Gautam(313345)
Project Supervisor
Prakash Gautam
Lecturer
It is here by informed that the topic selected by Sachin Gautam, Ashok Basnet,
Archana Khadka of BIT first semester project has been found suitable and as per
the credit assigned by Purbanchal University (PU), Biratnagar, Nepal. The Project
Committee has approved the following topic and supervisor for the mentioned
students. This project has been completed for the prescribed period and the project
embodied the result of their investigation conducted during they worked as full-
time student of this institution.
This is to certify that the project titled “COVID Administration System” submitted by
Sachin Gautam, Ashok Basnet, Archana Khadka to the Department of Information
Technology, School of Science and Technology at Kantipur City College, Kathmandu,
Nepal towards the requirement for Project- I (BIT06CO) is an original work carried
out by them under my supervision and guidance.
We would also like to express our deepest admiration to our lecturer, Mr. Bikash
Neupane sir for giving us the opportunity to do this project.
We would like to express our sincere gratitude towards our supervisor Mr. Prakash
Gautam for supervising, motivating and providing us proper guidance and support
during the design of this project. We are really thankful to him for his constructive
criticisms and suggestions, which helped us a lot during the onset of this project
“COVID AS”. We would also like to thank all the other teachers and staff members
who directly or indirectly helped us in the completion of this project.
i
Abstract
“COVID AS” is particularly made for the current COVID-19 pandemic situation which
can be used in hospitals and health care centers and is user-friendly, simple, fast and
effective. The main motto of this project is to make it efficient for health institutes to
admit patients and to keep track of essential information. The details about the number
of available beds, patients along with availability of doctors are stored in a file for
future use. A login system has also been implemented for security reasons, so as to
deny access to everyone except the authorized personnel to check, modify and edit the
data.
ii
List of figures
iii
List of tables
2. Documentation organization. 4
iv
Table of contents
Acknowledgement ........................................................................................................ i
Abstract ........................................................................................................................ ii
List of figures .............................................................................................................. iii
List of tables................................................................................................................ iv
1. Introduction ..............................................................................................................1
1.1 Project Introduction .............................................................................................1
1.2 Problem Statement ..............................................................................................1
1.3 Objective of the Project .......................................................................................2
1.4 Significance of the Project ..................................................................................2
1.5 Project Features ...................................................................................................3
1.6 Assignment of roles and responsibilities .............................................................3
1.7 Documentation organization ...............................................................................4
2. System Analysis ........................................................................................................6
2.1 Requirement gathering process ...........................................................................6
2.2 Feasibility study (Technical) ...............................................................................7
2.3 Gantt chart ...........................................................................................................7
3. System Design ...........................................................................................................8
3.1 Functional Analysis .............................................................................................8
3.2 Algorithm ..........................................................................................................12
3.3 Flowchart ...........................................................................................................22
4. System Development and Implementation ..........................................................34
4.1 Programming Platform ......................................................................................34
4.2 Test Plan ............................................................................................................34
4.3 Implementation and Result Analysis.................................................................40
5. Conclusion and Future Enhancements ................................................................41
4.1 Conclusion .........................................................................................................41
4.2 Limitations ........................................................................................................41
4.3 Future Enhancements ........................................................................................41
References ...................................................................................................................42
Appendices ..................................................................................................................43
Appendix-1 (Output screen of program) ..................................................................43
1. Introduction
The system has been designed to be user friendly. The group members have
made every effort so that managing the information of patients is easier and
1
efficient. We believe that this project can somewhat help in reducing the
problems caused in storing the information exclusive to the current pandemic
situation. Ultimately, this project may be able to aid health related institutions
to help reduce the number of patients during the ongoing pandemic we are
facing.
2
1.3 Features of the project:
3
Sachin Gautam Requirement gathering, Design, Coding,
Documentation
(Group leader)
This document consists of five chapters and these chapters each have their own
sub-chapters.
Chapter 1 : Introduction
4
2.1 Requirement gathering process
2.2 Feasibility study
Chapter 2 2.3 Gantt chart
5.1. Conclusion
5
5.2. Limitation
5.3.Future Enhancement
2. System Analysis
6
2.2 Feasibility study (Technical):
Various hardware and software aspects were taken into consideration during
the development of this project. It was made sure that the software used was
feasible for all the members involved in the project. For this program a
computer with Turbo C installed on it is required. The software used here is a
free to use software and can be installed easily on any system. A computer
system meeting these requirements can easily run the program. This particular
Compiler and IDE was chose due to its easy learning nature and in order to
make use of “graphics.h” header file which is not possible in the Dev Complier
which we had initially planned to use.
S.N Tasks 2021 2021 2021 2021 2021 2021 2021 2021
May June July August Sep Oct Nov Dec
1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4
1 Concept
submission
2 Requirement
gathering
3 Research and
analysis
4 System design
5 Coding
6 Debugging and
testing
7 Documentation
Index:
Task completed
Task remaining
7
3. System Design
Function
No. Function name Function Description
8
9 view_precord() This function is used to display the
records of the patients to the doctors.
10 view_brecord() This function displays the beds
reserved and occupied in the ward.
11 p_entry() This function is used to save the
various information related to the
patients in a file
12 b_entry() This function is used to reserve the
beds.
13 p_edit() This function is used to edit or update
the information related to the patients
stored in the file
14 b_edit() This function is used to edit the
information related to bed i.e. mark it
as open after the patient discharges
15 p_delete() This function is used to delete the
record of a patient after he/she gets
discharged.
16 n_staff() This function is used to add new staff
either doctor or a managing staff
through admin privilege.
17 c_unamepass() This function is used to change the
password and username.
18 hold() This function is used to hold the screen
for the amount of time we want by
making use of the inbuilt sleep()
function.
19 add_staff() This function is used to add the staff
details of new staffs.
9
20 beds() This function prints the layout of the
beds.
21 b_display() This function shows the occupied and
unoccupied beds in the wards.
22 change_unamepass() This function displays the username
change menu.
23 fill() This function fills the color of the beds
according to its state.
24 id_chk() This function is used to check whether
the patient ID being input is unique or
not.
25 login_change_input() This function is used to take the input
for the new credentials of the default
user login credentials.
26 login_change_admin() This function is used to change the
default password and username for the
admin stored in the file.
27 login_change_doctor() This function is used to change the
default password and username for the
doctors stored in the file.
28 login_change_mstaff() This function is used to change the
default password and username for the
managing staffs stored in the file.
29 numbers() This function prints the numbering of
the beds in the wards.
30 project_name() This function is used to print the name
of the project.
31 search_agegroup() This function is used to search the
records within a specific age group.
32 stat_page() This function displays the menu for
the statistic search page.
10
33 view_agegroup() This function is used to view the
records of the searched specific age
group.
34 view_staff() This function is used to display the
information of the staffs stored in the
file.
34 view_unvacrecord() This function is used to display the
information of the patients that were
not previously vaccinated.
35 view_vacrecord() This function is used to display the
information of the patients that were
previously vaccinated.
11
3.2 Algorithm
Step 1: Start
Step 2: Display the main menu
Step 3: Make a choice and If the choice is either 1 or 2 or 0, goto step 4
Otherwise
Step 3.1: Display “Invalid Input”
Step 3.2: goto step 2
Step 4: If the choice is 1
Step 4.1: Display login page
Step 4.1: Input the username and password
Step 4.2: If username and password are entered
Step 4.2.1: If length of username and password equal to zero
Display “No username and password entered”
Display “Press enter to try again”
Display “Press backspace to go back one page”
If input is enter, goto step 4.1
Otherwise, if input is backspace
goto step 2
Otherwise
Display “Wrong Input!”
goto step 4.1
Step 4.2.2: If only length of username is equal to zero
Display “No username entered”
Display “Press enter to try again”
Display “Press backspace to go back one page”
12
If input is enter, goto step 4.1
Otherwise, if input is backspace
goto step 2
Otherwise
Display “Wrong Input!”
goto step 4.1
Step 4.2.3: If only length of password is equal to zero
Display “No password entered”
Display “Press enter to try again”
Display “Press backspace to go back one page”
If input is enter, goto step 4.1
Otherwise, if input is backspace
goto step 2
Otherwise
Display “Wrong Input!”
goto step 4.1
Otherwise
goto step 4.3
Step 4.3: Check the username and password with the one saved in file
Step 4.4: If the username and password matches with doctor account
Step 4.4.1: Display “Login Success”
Step 4.4.2: goto step 4.5
Otherwise, if the username and password matches with
managing staff account ,
Step 4.4.3: Display “Login Success”
Step 4.4.4: goto step 4.11
Otherwise
if the username and password matches with
admin account,
13
Step 4.4.5: Display “Login Success”
goto step 4.19
Otherwise
Display “Login Failed”
goto step 4.1
Step 4.5: Display doctor choice page
Step 4.6: Make a choice
Step 4.7: If choice is 1, 2, 3 or 0, goto step 4.8
Otherwise
Display “Invalid Input”
goto step 4.5
Step 4.8: If choice is 1
Step 4.8.1: Open the file containing patient records
Step 4.8.2: Display the patient records
Step 4.8.3: Ask the user is they want to exit
Step 4.8.4: If yes, goto step 4.5
Otherwise
goto step 4.8.1
Step 4.9: If the choice is 2
Step 4.9.1: Open the file containing records of beds
Step 4.9.2: Display the beds in the ward
Step 4.9.3: Ask the user is they want to exit
Step 4.9.4: If yes, goto step 4.5
Otherwise
goto step 4.9.1
Step 4.10: If the choice is 3
Step 4.10.1: Display the statistic search choice page
Step 4.10.2: Make a choice
Step 4.10.3: If choice is 1, 2, 3 or 0, goto step 4.10.4
14
Otherwise
Display “Invalid Choice”
goto step 4.5
Step 4.10.4: If the choice is 1
Step 4.10.4.1: Display search by age
Step 4.10.4.2: Input lower and upper age range
Step 4.10.4.3: Search the patient record file
Step 4.10.4.4: Display the records
Step 4.10.4.5: Ask the user is they want to exit
Step 4.10.4.6: If yes, goto step 4.5
Otherwise
goto step 4.10.4.1
Step 4.10.5: If the choice is 2
Display vaccinated patient
Goto step 4.10.6
Step 4.10.6: If the choice is 3
Display unvaccinated patients
Goto step 4.10.7
Step 4.10.7: If the choice is 0, goto step 2
Step 4.11: Display managing staff choice page
Step 4.12: Make a choice
Step 4.13: If choice is 1, 2, 3, 4 or 0, goto step 4.14
Otherwise
Display “Invalid Input”
goto step 4.11
Step 4.14: If the choice is 1
Step 4.14.1: Display new patient record entry page
Step 4.14.2: Open the file to store data
Step 4.14.3: If file exits, goto step 4.14.4
15
Otherwise
Create the file
goto step 4.14.4
Step 4.14.4: Input various information
Step 4.14.5: Save the information in a file
Step 4.14.6: Ask the user if they want to store more data
Step 4.14.7: If yes, goto step 4.14.1
Otherwise
goto step 4.11
Step 4.15: If the choice is 2
Step 4.15.1: Display patient record edit page
Step 4.15.2: Open the file with patient data
Step 4.15.3: If file exits, goto step 4.15.4
Otherwise
Display “File not found”
goto step 4.11
Step 4.15.4: Search the patient record with respect to
name
Step 4.15.5: If record exists, goto step 4.15.6
Otherwise
Display “Record not found”
goto step 4.15.1
Step 4.15.6: Input the updated data
Step 4.15.7: Store the updated data in the file
Step 4.15.8: Display “Record edited successfully”
Step 4.15.9: Ask the user if they want to edit another
record
Step 4.15.10: If yes, goto step step 4.15.1
Otherwise
16
goto step 4.11
Step 4.16: If the choice is 3
Step 4.16.1: Display ward and bed information edit page
Step 4.16.2: Open the file with bed information
Step 4.16.3: If file exists, goto step 4.16.4
Otherwise
Display “File not found”
goto step 4.11
Step 4.16.4: Enter the bed number
Step 4.16.5: If the bed exists, goto step 4.16.6
Otherwise
Display “Bed does not exist”
goto step 4.16.1
Step 4.16.6: Ask the user to mark the bed as reserved or
open
Step 4.16.7: If the choice is to reserve
Mark the bed as reserved
Save the information in the file
Update the graphical representation
Otherwise, if the choice is to free a bed
Mark the bed as open
Save the information in the file
Update the graphical representation
Step 4.16.8: Ask the user if they want to continue
Step 4.16.9: If yes, goto step 4.16.1
Otherwise
goto step 4.11
Step 4.17: If choice is 4
Step 4.17.1: Display the patient record delete page
17
Step 4.17.2: Open the file with patient data
Step 4.17.3: If file exists, goto step 4.17.4
Otherwise
Display “File not found”
goto step 4.11
Step 4.17.4: Search the patient record with respect to
name
Step 4.17.5: If record exists, goto step 4.17.6
Otherwise
Display “Record not found”
goto step 4.17.1
Step 4.17.6: Delete the record
Step 4.17.7: Store the updated data in the file
Step 4.17.8: Display “Record deleted successfully”
Step 4.17.9: Ask the user if they want to delete another
record
Step 4.17.10: If yes, goto step 4.17.1
Otherwise
goto step 4.11
Step 4.18: If the choice is 0, goto step 2
Step 4.19: Display admin choice page
Step 4.20: Make a choice
Step 4.21: If choice is 1, 2, 3 or 0 goto step 4.22
Otherwise
Display “Invalid Input”
goto step 4.19
Step 4.22: If choice is 1
Step 4.22.1: Display the staff adding page
Step 4.22.2: Open the file containing staff details
18
Step 4.22.3: If file exists, goto step 4.22.4
Otherwise
Create file
goto step 4.22.4
Step 4.22.4: Input the information of new staff
Step 4.22.5: Check if the information matches with any
existing data
Step 4.22.6: If similar data exists
Display “Record already exists”
goto step 4.22.1
Otherwise, goto step 4.22.7
Step 4.22.7: Store the new staff record in the file
Step 4.22.8: Ask the user if they want to add more staff
Step 4.22.9: If yes, goto step 4.22.1
Otherwise
goto step 4.19
Step 4.23: If choice is 2
Step 4.23.1: Display staff viewing page
Step 4.23.2: Open the file containing staff details
Step 4.23.3: If file exists, goto step 4.23.4
Step 4.23.4: Display the file
Otherwise
Display “File not found”
goto step 4.19
19
Otherwise
Display “Invalid Input”
goto step 4.24.1
Step 4.24.4: If choice is 1
Step 4.24.4.1: Display Doctor Login Page Change
Step 4.24.4.2: Open the file containing doctor
login detail
Step 4.24.4.3: If file exists, goto step 4.24.4.4
Otherwise
Display “File not found”
goto step 4.24
Step 4.24.4.4: Input the new username and
password for doctor
Step 4.24.4.5: Replace the default doctor login
credentials
Step 4.24.4.6: Store the new credentials in the file
Step 4.24.4.7: Display “Password and username
Changed successfully”
goto step 4.24
Step 4.24.5: If choice is 2
Step 4.24.5.1: Display Staff Login Page Change
Step 4.24.5.2: Open the file containing staff login
detail
Step 4.24.5.3: If file exists, goto step 4.24.5.4
Otherwise
Display “File not found”
goto step 4.24
Step 4.24.5.4: Input the new username and
password for staffs
20
Step 4.24.5.5: Replace the default staff login
credentials
Step 4.24.5.6: Store the new credentials in the file
Step 4.24.5.7: Display “Password and username
changed successfully”
goto step 4.2
Step 4.24.6: If choice is 3
Step 4.24.6.1: Display Admin Login Page Change
Step 4.24.6.2: Open the file containing admin login
details
Step 4.24.6.3: If file exists, goto step 4.31.4
Otherwise
Display “File not found”
goto step 4.26
Step 4.24.6.4: Input the new username and password
for admin
Step 4.24.6.5: Replace the default admin login
credentials
Step 4.24.6.6: Store the new credentials in the file
Step 4.24.6.7: Display “Password and username
Changed successfully”
goto step 4.24
Step 4.24.7: If choice is 0, goto step 19
Step 4.25: If choice is 0, goto step 2
Step 5: If the choice is 2
Step 5.1: Display the project information page
Step 5.2: If the user gives any keyboard input, goto step 2
Step 6: If the choice is 0, goto step 7
Step 7: Stop
21
3.4 Flowchart
22
Login input
23
Project information
Login check
24
25
26
27
28
29
30
31
32
33
4. System Development and Implementation
Turbo C++ has been used as the programming platform for this project.
Test case 1
Test objective To check the login system redirection.
Expected result The program should be redirect to the respective staff
page according to the username and password entered.
Test result The program redirected to the admin page after
entering the default admin password and username.
Conclusion Expected result matches the test result.
Test case 2
Test objective To check the login system
Expected result In case of incorrect, missing and invalid password or
username the program should display error message
and go back to the main menu.
Test result The program returned an error message when we tried:
● Incorrect password and username
● Incorrect password only
● Incorrect username only
● Missing username
34
● Missing password
● Missing username and password
● Invalid username (exceeding the max username
length)
● Invalid password (exceeding the max password
length and making use of invalid characters)
Conclusion Expected result matches the test result.
Test case 3
Test objective To check the project information page
Expected result The program should be redirect to the project
information page.
Test result The program redirected to the project information page.
Conclusion Expected result matches the test result.
Test case 4
Test objective To check the doctor choice page
Expected result The program should redirect the user to respective
features the doctor can access by making a choice
Test result The program redirected to the following pages after
making the choices:
● Patient record viewing page – when 1 was
given as input in the choice.
● Ward and bed record viewing page – when 2
was given as input in the choice.
● Main menu – when 0 was given as input in the
choice.
35
Test case 5
Test objective To check the managing staff choice page
Expected result The program should redirect the user to respective
features the managing staff can access by making a
choice
Test result The program redirected to the following pages after
making the choices:
● Adding patient record page – when 1 was given
as input in the choice.
● Editing patient record page – when 2 was given
as input in the choice.
● Editing ward and bed information page – when
3 was given as input in the choice.
● Deleting patient record page – when 4 was
given as input in the choice.
● Main menu – when 0 was given as input in the
choice.
Conclusion Expected result matches the test result
36
Test case 6
Test objective To check admin choice page
Expected result The program should redirect the user to respective
features the admin can access by making a choice
Test result The program redirected to the following pages after
making the choices:
● Adding new staff page – when 1 was given as
input in the choice.
● Changing username and password page – when
2 was given as input in the choice.
● Main menu – when 0 was given as input in the
choice.
Conclusion Expected result matches the test result
Test case 7
Test objective To check whether the patient record details are saved in
a file.
Expected result Patient’s details should be stored in a file.
Test result The records were saved in a file.
Conclusion Expected result matches the test result.
Test case 8
37
Test case 9
Test case 10
Test case 11
Test case 12
38
Test case 13
Test case 14
Test case 15
Expected result Changed password and username for admin, doctor and
managing staffs.
Test result The username and passwords for the admin doctor and
managing staffs were changed.
Conclusion Expected result matches the test result.
39
4.3 Implementation and result analysis
40
5. Conclusion and Future Enhancements:
5.1 Conclusion
5.2 Limitations:
Like every other program this program also has its own limitations and they
are stated below:
The future enhancements that could be done in this project are as follows:
.
Online access can be implemented.
Patient’s data can be stored after discharge for future revisits.
The user interface can be made for effective.
41
References:
Hill.
Publication.
42
Appendices:
43
44
45
46
47
48