Professional Documents
Culture Documents
i
ABSTRACT
This report has been prepared on the project of topic - Emergency COVID-19
Handling by the students of Geomatics Engineering (first year-second semester) of
Kathmandu University. This is an outcome for the project launched under the
department of Geomatics Engineering, a two-credit course for first year of
undergraduate studies. Due to the effect of corona virus all over the world, education
status also affected by this and in order to continue the course, department launched a
new format. The main objective of this project is to study timely trend of COVID-19
in home districts of the students (allocated group) along with the comparative study of
situations.
Initially we collected raw data through official websites of MoHP, District
Administration Office and related local level websites which was followed by sorting
data in excel sheets. Afterwards we analyzed the collected data. We also presented our
improvement in different time period through mid- term presentation and discussions
with supervisors.
Finally, we carried out comparison of the district based data using different way of
representation.
ii
LIST OF ABBREVIATIONS
iii
1. INTRODUCTION
1.1 Background
Corona virus widely known as COVID-19 are a large family of viruses that are known
to cause illness ranging from the common cold to more severe diseases such as Middle
East Respiratory Syndrome (MERS) and Severe Acute Respiratory Syndrome (SARS).
The virus out-braked on Nov-2019 from Wuhan city of china. The virus affected south
China for about a month and then it spread throughout the world making the path
through Europe. The champion’s league game between Atlanta and Valencia became
the poison for spreading the virus in Europe as more than 80,000 spectators were in
stadium. Till date, the virus had spread in about 235 territories affecting more than 55
million of population.
Nepal also reported its first COVID-19 case on 23 January 2020 which today tallied to
208,299 cases. The timely imposing of the lockdown controlled the chances of rapid
incrementation of infected population till June. But with the foreign manpower being
brought to home country and loosening of lockdown after July, the number of infected
population increased in the exponential way.
The large number of people are being infected and killed on daily basis all over the
world. And the data of death, infected and recovered cases are being provided on
1
different websites, Google, webpages etc. But these data are only limited to national
and international level. Therefore, with the necessity to bring the data of local level
with effective analysis, and to make a project work possible through virtual classes we
the students of Geomatics engineering were assigned with project “Emergency
Handling of COVID-19 in Home Districts”. We all were divided into different groups
with 5 members from 5 different districts in each. Hence, with the guidelines of
supervisors and strong group work, we have finally completed our engineering project.
2
1.3 Objectives
The primary objective of our project is:
To study timely trend of Covid-19 in our home districts along with the
comparative study of situations,
1.4 Scope
We have collected the COVID-19 data through different sources. We have used the
official website of Ministry of Health and Population, CDO Offices of individual
home districts, and Municipality’s website. We have refined, and analyzed those data
in different aspects and displayed it in a systematic form .So this report/project can be
helpful to different students who are doing COVID -19 research and project of
different districts. Similarly, local level bodies can utilized it to study the pattern of
COVID-19 and formulate the further plans as per need.
3
2. METHODOLOGY
4
2.2 Study Area
Since, we are five members in our group our study is limited to five districts of our
country. Jhapa district lies in the Eastern terai of the Nepal which shares an open
border with the India. Whereas, Kanchanpur lies in Far-west terai and Dadeldhura lies
in Far-west hilly region. Similarly, Lalitpur and Bhaktapur lies inside the valley which
has immense population density despite being the smaller ones.
Table 2.1: Information about our home districts
5
2.3 Work-flow
2.3.1 Planning
After getting suggestion and ideas from our project orientation and respective
supervisors we did discussion with our group members via Google meet.
In our first phase of planning, we share our personal prospective regarding our project,
discussed situation of COVID-19 in our home districts, and possible ways to get data
like different web-pages, from nearest local level authorities or through different
communication channels e. g. Phone, email. Similarly, we planned to do some
research and study on different sites so to find an updated, accurate and authorized
websites and pages from which we can extract reliable data.
In our second phase of planning, we planned the ways to sort the data, analyzed them
through different aspects and finally present them in a systematic form.
6
2.3.2 Data Collection
After some research we found that the website of “Ministry of Health and Population”
websites of CDO and DAO Office of individual home districts are the most updated
and accurate sites so we have followed this site for most of our data. Similarly, we
have visited the nearest local level authorities and communicated via phone and email
for local level data. Finally, we collected data on different basis like: Gender wise
covid-19 data, Age wise, total infected, total recovered, total death, no of quarantine in
our home district and no of PCR and RDT test.
7
3. OUTCOME & ANALYSIS
Jhapa lies in the eastern part of Nepal which shares an open international border with
India. Jhapa is one of the biggest district of Nepal with population of about 1million
and 15 local bodies.
First COVID-19 case was reported in April, 2020 here which tallied 2288 till 31 st
October 2020. Since, the border has been sealed from the initial days of the Virus and
lockdown was imposed soon, Jhapa had not reported much cases compared to other
bordered districts.
8
3.1.1.1 Tests Done and Results:
Particularly only around 32,000 tests have been done in jhapa where 1214 are seen to
be positive. The other infected had travelled from other place to their home town. Out
of the total tests 1296 patients are waiting their report to come. Birtamod municipality
conducted the most tests (4382) compared to Haldibari Rural Municipality the least
(521).
Table 1: Tests done in different centers of Jhapa
This chart shows the variation of infected cases with the age group. Since 21-50 being
working population and have
higher mobility they have been
much affected by the pandemic
despite having much greater
immunity than other age
groups.The life expectancy of
our country limits to 67 years
so
Figure 4: Bar Diagram showing the variation of infected cases with Age
with the population being less, older aged are less affected.
9
3.1.1.3 Total Infected (Gender Basis)
This chart shows the infected
data according to the
gender .This chart marks the
dominance of male in outdoor
activities in our society as males
are more infected than the
females.
10
3.1.1.5 Summary of the status of COVID-19 in Jhapa
Here pie-chart shows the overall status of the COVID-19 Data in the district.
Out of all the infected,
774 people recovered
from the virus. The
recovery rate is quite
good but not
impressive as there are
1514 active cases,
there is high chance of
exponential increment
of infection if safety
measures are not followed during this festive season.
Being a border district,
Figure 7: Pie-Chart showing the overall status of COVID-19 in Jhapa
despite the border is sealed
1092 people have entered Jhapa out of which 591 are reported to have come from
India.
Quarantine Centers 31
No. of quarantine beds 1444
Quarantined Population 967
No. of people in home quarantine 1160
Isolation Centers 1
No. of isolation beds 414
Isolated Population 127
No. of ICU's 2
11
Above table shows the facilities in our district. There are lesser number of quarantine
centers compared to the population as the isolation centers and number of beds. People
are compelled to stay in home quarantine with a huge chance of infecting other
members of the family. The home quarantined population tallies to 1160 till date.
12
13
Similarly, graph show that male are more infected than female. Since male in
Nepalese society are much involved in outer chores like business, jobs, cultural
activities so they come in contact with different people. Hence this might be the reason
why we have more male infected.
14
3.1.2.4 Age wise COVID -19 data:
This line chart show the age wise COVID cases of both male and female in Lalitpur
district. From the line chart we can see that age between 0-20 and 70+ are not much
infected. Because these age group include children, teenager and old people who are
quite safe these days in their home due to closed schools, colleges, universities,
temples, etc.
How else the age interval of 21-50 are more infected because people of these age
group are active, matured and they involved in different profession. They work in
different places so they travelled more due to which they come in contact of different
people. Hence, they are more infected.
15
3.1.2.5 Overall status of the Lalitpur District:
Till the date the Virus has killed 77 people in the district. According to medical person,
the virus is severe only if it cause disease like Middle East Respiratory Syndrome
(MERS) and Severe Acute Respiratory Syndrome (SARS).The active case is about
24%. Among them some serious cases are being treated in different hospital and one
with minor symptoms are in home isolatio
16
3.1.3 Bhaktapur
Bhaktapur district lies in Bagmati province. It is one of the three districts in the
Kathmandu Valley, along with Kathmandu and Lalitpur. It covers an area of 119 km 2
and Bhaktapur is the
district headquarter.
According to the 2011
census, population of
Bhaktapur district was
304,651. Likewise,
Kathmandu, Lalitpur,
Kavre are the neighbor
district. There are four
municipalities in
Bhaktapur District. Figure 14: Political Map of Bhaktapur
Bhaktapur district also reported its first COVID-19 case on May which today tallied to
5673. Being the smallest district of Nepal, it is reporting maximum number as it has
the dense population and it is connected with the Kathmandu District which has the
most COVID- 19 cases in the country.
17
Figure 15: Total infected cases in Bhaktapur
from August.
There were just 4 cases on May and this number reached to 5673 in October. Similarly,
the graph show the highest infection case in October. As lockdown was strictly
implemented in the initial month there were less cases and less PCR-test were done at
that time, but after lifting the lockdown the city was crowded and people did not
follow the safety protocols which results in the higher infected cases.
This chart shows the total cases of COVID-19 According to the age group. It shows
that young group had been more
infected due to this virus. Child
age group and the people above
60 years are less effected.
Young aged groups are more
involved in different outside
works so that they get more
infected due to COVID-19.
Figure 16: Age Basis infected cases in Bhaktapur
18
3.1.3.4 Overall status of the District
This pie chart shows the overall status of the district. Out of all the infected cases,
67% have already been recovered and 32% cases are still under treatment. The death
percentage in the district is 1%.
As people are not following the
safety protocols, more cases have
been appeared in the district.
Although the district is small it is
reporting higher number of cases
day by day.
3.1.4 Kanchanpur
In this section, Kanchanpur COVID-19 data is presented and analyzed.
19
Kanchanpur district lies in the far west of Nepal. This district has the open boarder
with India. Many people travel to India to get a job and earn some money for their
Corona Virus travelled to our Kanchanpur district ad well. The first case appeared in
Baishakh Month. In India, Corona virus was rapidly infecting the people. So, many
Nepalese returned to their Country. In Kanchanpur as well, many people of the
Farwest province returned through the boarder “Gaddachauki”.
People returned from gulf country as well. Those people stayed at the different
quarantine places which was established by the local level government and many
people stayed in the home quarantine. Lockdown was strictly implemented in the
district.
These data show the COVID-19 Status in Kanchanpur District.
Here in the line chart we can see that, there were just 58 people in the quarantine
places in chaitra Month and in Baishakh this number reached to 130 but after
Baishakh the number of
people in quarantine grows
rapidly and number reached
to 8385. The number
declined and in Ashar there
were 2006 people in
quarantine. In Bhadra, there
were only 165 people were
in quarantine similarly in
Ashoj there were 276 people Figure 19: Chart showing Number of people in Quarantine
in the quarantine.
After spreading this Corona virus in the whole world, people were returning to their
country. Many people from different country arrived in our district as well and the
most number of people were from india. Corona Virus was in control in the India but
after few weeks the number grows rapidly. So, to feel secure and to be not infected by
the corona virus many Nepalese returned. So, the line chart clearly depicts that in the
month of Jestha there were many people who arrived from different nation and stayed
in the quarantine places. Many people were already here so, we can see that the
number is decreasing in the line chart.
21
3.1.4.2 No. of Population returned from Foreign
This line chart shows the no. of population returned from foreign. 5151 people
returned in the Chaitra District out of them just 58 people stayed in quarantine as we
can see the data in previous line chart. Returned population reached to 5815 in
Baishakh and in Jestha
Month this number
reached to 14190. Huge
number of people returned
to the district in this month
And in Ashar this number
reached to 18700. In
Bhadra 22719 people
returned. This number
reached to 22946 in Ashoj.
22
2054 in Asar. In Bhadra and Ashoj, huge number of test was done.
There were less human resources and equipment to do more test in the initial months.
So that we can see in the chart that only 11 test was done. The samples collected here
in the district were transported to Seti Zonal Hospital for the test. The government has
deployed more human resources and added testing machine in the hospital. So that we
can see in the chart that many test has been done later on. And another factor for more
number of test can be many number of people were returned from Foreign in these
months.
strictly implemented in these months and in Asar, more number of cases appeared. In
this month more swab test has been done. In the other month as well, lockdown was
strictly implemented. This virus was in under control. The people who were returned
from foreign has been highly infected due to this virus. As they were staying in the
quarantine places, this virus did not spread in the community and it is still under
control now.
23
3.1.4.5 Gender wise infected data
This line chart shows the infected data in the gender basis. The first infected case was
male Here from this
chart we can see
that, males were
more infected
than the females.
.
3.1.4.6 T
otal Cases (Age Basis)
This chart shows the total cases of COVID-19 According to the age group. Here we
can see that the age
interval of 21-30 has been
highly affected due to
corona virus.
Child age group and the
people above 60 years are
less effected.
Young people are highly
infected. As young people
are involved in business
and outside work they
24
border. Those who were returned from foreign were stayed in the quarantine. So, that
corona did not spread in the community.
As we are celebrating our festivals, there is the high chance of having more infection
in the coming days.
25
3.1.5 Dadeldhura
Corona Virus travelled to Dadeldhura as well. The first case appeared in Jestha Month.
In India, Corona virus was rapidly infecting the people. So, many Nepalese returned to
their hometown. People were afraid of lives and were returning to the hometown. In
Dadeldhura as well, many people of the Farwest province returned through the nearest
26
border of Kanchanpur district through ‘Gaddachauki’, ‘Banbasa’ and through border
of Kailali i.e. Gauriphanta border.
People returned from gulf country as well. Those people stayed at the different
quarantine places which was established by the local level government and many
people stayed in the home quarantine. Lockdown was strictly implemented in the
district. Masks and sanitizers were distributed among the public through Local
government and many motivating practices were performed. People managed their
daily life as simply as they could. Schools and colleges were also stopped and those
places and others governmental buildings were modified into Quarantine places and
help desks.
Governmental authorities established help desk and temporary health checkup post
that can check temperature of the immigrants from India and provide sanitizer and
masks as they needed.
These data show the COVID-19 Status in Dadeldhura District
27
After Jestha 18 i.e. peak hour of lockdown people from foreign (mostly from India)
were returning to the hometown. And such peoples were managed to stay at allocated
quarantines. And most of the cases were identified after the RDT test and further
performing PCR tests. In the interval of Jesth and Asar there were most number of
people in quarantines and the number reached to 3441. And hence the graph is at the
highest level of increment.
After certain days of quarantine, people were sent to the home quarantines and hence
this graph decreasing sequentially. People are being sent to the home quarantines in
different time period. And after the lockdown period immigrants prefer to stay at
home quarantines rather than the quarantines. Due to this reason quarantined number
of people decreased and reached to minimum now. This graph shows the trend of
quarantined population in Dadeldhura district.
28
Figure 28: Swab test Report
Here in Jestha, only 25 swab test were done. Due to increase in immigrant’s
population from foreign in quarantines, the swap test increased unexpectedly and the
number of swab test reached to 2104 till Asar 18. In Srawan comparatively less
number of swab were collected and tested. And then this increases gradually.
Since in the Jestha the approach of RDT test was employed and for this the maximum
number of swab was collected and after first week of Srawan this test was band due to
unsuitable results and after this the swab collection rate comparatively decreased
though it increased in number.
The samples collected here in the district were transported to Seti Zonal Hospital for
the test. The government has deployed more human resources and added testing
machine in the hospital. So that we can see in the chart that many test has been done
later on. And another factor for more number of test can be many number of people
were returned from Foreign in these months.
number of people entered Nepal and lesser number of tests were done in comparison
29
with Asar month results less number of PCR positive cases i.e. 83 in Srawan 18 and in
Bhadra and Ashoj the cases were appeared similar and in this way Dadeldhura had
355 PCR positive cases till Ashoj 18
Here this diagram include all the data in Bar diagram as described above showing one
case in Jestha, 228 cases in Asar, 83 cases in Srawan and so on.
too due to not maintaining social distance and unhygienic health environment. But
some of the females were tested positive in quarantines too.
30
school students used to go India and other countries for the employment purpose and it
becomes trend now. During the effect of corona virus all over the world this age group
returned to homes and tested positive compared with other age group.
And here in the chart we can clearly see that young age groups has been more infected.
Child age group and the people above 60 years are less effected.
the high chance of having more number of COVID-19 Patients in the district as this is
the nearest Kanchanpur which has the open boarder with India. But government has
sealed the border. Those who were returned from foreign were stayed in the
quarantine. So, that corona did not spread in the community. In this way the
coronavirus has affected in health condition of the district.
Till Kartik month total 429 cases are tested positive and total 390 people are recovered
and still 38 people are in isolation.
31
3.2 Qualitative Output
Since we were unable to explore the different infected areas physically, we had
prepared a questionnaire and circulated to the five district through social media to
gather public perception regarding the pandemic, its impact and effect in their locality.
Following are the sample of our questionnaire and their result.
From survey it is seen that, most of the people are strictly following the
imposed lockdown to be safe from the pandemic.
The day to day life of people have been severely affected by the lockdown but
its returning back to normal after lockdown as people are taking it as a new
way of normal life.
32
With the increase in equipment’s and health facilities followed by returning of
people from foreign it is found that the PCR test is increasing day by day.
With the fear of being infected all the people are following all safety measures
when they visit outside.
Most of the public places are used for the quarantine purpose.
33
lockdown is not always the solution but starting the day to day activities with
safety measures could be the effective step.
4. Discussion
Figure 33: bar-diagram showing the infected population in accordance with swab test
This bar chart shows the infected population in five districts with the total number of
test done. Comparing the data, Lalitpur reported maximum number of infected
population (28%) while Dadeldhura reported the least (6%). As Lalitpur lies in the
Kathmandu valley and it has the maximum mobility it is reporting higher cases so is
Bhaktapur. Despite the other district share the open border with India they are
reporting less cases as the border has been sealed and these district has less mobility
than valley districts.
34
4.2 Infected versus Recovered Rate
This clustered bar represents the recovered rate in the five districts. Dadeldhura and
Kanchanpur have the highest recovery rate while Jhapa has the least recovery rate.
The health facilities
provided in the
quarantines and following
of lockdown might have
played vital role in
varying the recovery rate
Figure 34: bar-diagram showing the recovering rate in accordance with infected population
Figure 35: Line chart showing the death count in accordance with infected population
2% in any of the district which clears that the virus is not much dangerous than is told
by different medias. Since the recovery rate is very low in Jhapa, it is quite general
that it has maximum death rate. Similarly, Kanchanpur and Dadeldhura have
maximum recovery rate resulting lowest death rate.
35
5. Limitation
Source Code
// HEADER FILES
#include <iostream>
#include <cstring>
#include <windows.h>
#include <fstream>
#include <conio.h>
#include <iomanip>
#include <cstdlib>
#include <string>
#include <unistd.h>
#define TOTAL_VACCINE 400
using namespace std;
class covid_management
{
protected:
string username;
string password;
string usn;
int tm;
// FOR VACCINE CENTER
string center1 = "1center";
string center2 = "2center";
string center3 = "3center";
int sum_vaccine_c1 = 0; // Center1 vaccine Dose
int sum_vaccine_c2 = 0; // Center2 vaccine Dose
36
int sum_vaccine_c3 = 0; // Center3 vaccine Dose
int add, center_no;
// For Doctor Details
string identification_id;
char specialization[100];
string center;
// For User and some Doctor Details
char name[100];
char gender[100];
int age;
string adhaar;
int c;
string phone_no, profession, address, vaccine_name;
int dose;
public:
void menu();
void admin();
void admin_password();
void user();
void user_password();
void valid(string str); // For Valid Username Or not
// For ADMIN
void add_vaccine_stock(); // 1
void display_vaccine_stock(); // 2
void show_patient_data(); // 4
void show_data(); // 4-a
void applied_vaccine(); // 5
void add_doctor(); // 6
void search_doctor_data(); // 7
void display_doctor_data(); // 8
void doctor_show_data(); // 8-a
void search_by_aadhar(); // 4-a(1)
void search_by_age(); // 4-a(2)
void search_by_profession(); // 4-a(3)
void search_by_gender(); // 4-a(4)
// FOR USER
void search_center(); // 1
void add_patient_data(); // 2
void patient_show_data(); // 3
void update_patient_data(); // 4
37
};
void covid_management::menu()
{
system("cls");
int choice;
cout << "\n\t\t\t\t*****************************************";
cout << "\n\t\t\t\t * COVID19 MANAGEMENT SYSTEM *";
cout << "\n\t\t\t\t*****************************************";
// MAIN MENU
cout << "\n\n\t\t -->> MAIN MENU <<--";
cout << "\n\n\t\t -->>1. ADMIN";
cout << "\n\t\t -->>2. USER";
cout << "\n\t\t -->>3. EXIT";
cout << "\n\n\t\tEnter Choice: ";
cin >> choice;
// CALLING RELEVANT FUNCTION AS PER CHOICE
switch (choice)
{
case 1:
admin();
break;
case 2:
user();
break;
case 3:
system("cls");
cout << "\n\n\t\t\t COVID19 MANAGEMENT SYSTEM - BY SAGAR
DEVELOPER";
Sleep(10);
exit(0);
default:
cout << "\n\n\t\t\t Invalid Choice... Please Try Again....";
cout << "\n\n Press Any Key To Continue: ";
getch();
menu();
}
}
void covid_management::admin()
{
admin_password();
A:
38
system("cls");
int admin_choice;
cout << "\n\t\t\t\t*****************************************";
cout << "\n\t\t\t\t * COVID19 MANAGEMENT SYSTEM *";
cout << "\n\t\t\t\t*****************************************";
// ADMIN MENU OPTIONS
cout << "\n\n\t\t -->> ADMIN MENU <<--";
cout << "\n\n\t\t 1. Add Vaccine Stock";
cout << "\n\t\t 2. Show Vaccine Center";
cout << "\n\t\t 3. Show Vaccine Stock";
cout << "\n\t\t 4. Show Patient Data";
cout << "\n\t\t 5. Show Total Number Of Vaccines Applied";
cout << "\n\t\t 6. Add New Doctor Data";
cout << "\n\t\t 7. Search Doctor Data";
cout << "\n\t\t 8. Show Doctor Data";
cout << "\n\t\t 9. LOG OUT";
cout << "\n\n\t\tEnter Choice: ";
cin >> admin_choice;
switch (admin_choice)
{
case 1:
add_vaccine_stock();
goto A;
break;
case 2:
search_center();
goto A;
break;
case 3:
display_vaccine_stock();
goto A;
break;
case 4:
show_patient_data();
goto A;
break;
case 5:
applied_vaccine();
goto A;
break;
case 6:
add_doctor();
goto A;
39
break;
case 7:
search_doctor_data();
goto A;
break;
case 8:
display_doctor_data();
goto A;
break;
case 9:
menu();
default:
cout << "\n\n\t\t\t Invalid Choice... Please Try Again....";
cout << "\n\n Press Any Key To Continue: ";
getch();
goto A;
break;
}
}
// ADMIN LOGIN
void covid_management::admin_password()
{
system("cls");
char a_name[20];
char a_password[20];
int ch, i = 0, capt = 0, capta = 0;
cout << "\n\t\t\t\t*****************************************";
cout << "\n\t\t\t\t * COVID19 MANAGEMENT SYSTEM *";
cout << "\n\t\t\t\t*****************************************";
cout << "\n\n\t\t -->> LOGIN ADMIN <<--";
cout << "\n\n\t\tEnter Your Name: ";
cin >> a_name;
cout << "\n\t\tEnter Your Password: ";
while ((ch = getch()) != 13)
{
cout << "*";
a_password[i] = ch;
i++;
}
a_password[i] = '\0';
srand(time(0));
capt = rand();
40
cout << "\n\n\t\tCaptcha: " << capt;
cout << "\n\n\t\tEnter Valid Captcha: ";
cin >> capta;
if ((strcmp(a_name, "admin") == 0) && (strcmp(a_password, "admin123") == 0) &&
(capt == capta))
{
cout << "\n\n\n\t\t\t\t\t| Verfiying ADMIN |\n\t\t\t\t\t";
for (int a = 1; a < 8; a++)
{
Sleep(500);
cout << "...";
}
cout << "\n\nAccess Granted..\n\n";
system("PAUSE");
system("cls");
}
else
{
cout << "\n\n\n\t\t\t\t\t| Verfiying ADMIN |\n\t\t\t\t\t";
for (int a = 1; a < 8; a++)
{
Sleep(500);
cout << "...";
}
cout << "\n\nAccess Aborted...\n\n";
system("PAUSE");
system("cls");
menu();
}
}
// USER LOGIN
void covid_management::user()
{
user_password();
B:
system("cls");
int user_choice;
cout << "\n\t\t\t\t*****************************************";
cout << "\n\t\t\t\t * COVID19 MANAGEMENT SYSTEM *";
cout << "\n\t\t\t\t*****************************************";
// USER MENU OPTIONS
cout << "\n\n\t\t -->> USER MENU <<--";
41
cout << "\n\n\t\t 1. Search Vaccination Center";
cout << "\n\t\t 2. Apply For Vaccine First Dose";
cout << "\n\t\t 3. Show Details";
cout << "\n\t\t 4. Apply For Vaccine Second Dose";
cout << "\n\t\t 5. LOG OUT";
cout << "\n\n\t\tEnter Choice: ";
cin >> user_choice;
switch (user_choice)
{
case 1:
search_center();
goto B;
case 2:
add_patient_data();
goto B;
case 3:
patient_show_data();
goto B;
case 4:
update_patient_data();
goto B;
case 5:
menu();
default:
cout << "\n\n\t\tInvalid Choice.. Please Try Again..\n";
cout << "\n\nPress Any Key To Continue..";
getch();
goto B;
}
}
void covid_management::user_password()
{
system("cls");
char c;
int user_choice;
string fname, usern;
ofstream fileo;
ifstream filei;
cout << "\n\t\t\t\t*****************************************";
cout << "\n\t\t\t\t * COVID19 MANAGEMENT SYSTEM *";
cout << "\n\t\t\t\t*****************************************";
cout << "\n\n\t\t -->> USER SUB-MENU <<--";
cout << "\n\n\t\t 1. Create Account";
cout << "\n\t\t 2. Login";
cout << "\n\t\t 3. Back";
cout << "\n\t\tEnter Choice: ";
cin >> user_choice;
if (user_choice == 1)
{
system("cls");
cout << "\n\t\t\t\t*****************************************";
cout << "\n\t\t\t\t * COVID19 MANAGEMENT SYSTEM *";
cout << "\n\t\t\t\t*****************************************";
cout << "\n\n\t\t -->> REGISTRATION USER <<--";
cout << "\n\n\t\tEnter Your Name: ";
cin.ignore();
getline(cin, username);
43
cout << "\n\t\tEnter Your Username: ";
cin >> usn;
tm = 0;
valid(usn);
if(tm >= 3)
{
// continue;
}
cout << "\n\t\tEnter Your password: ";
cin >> password;
fname = usn + ".txt";
fileo.open(fname.c_str());
fileo << usn << endl
<< username << endl
<< password << endl;
cout << "\nYou are successfully registered:)";
cout << "\n\nPress Any Key To Continue..";
Sleep(500);
getch();
fileo.close();
user();
}
else if (user_choice == 2)
{
system("cls");
string u_name, u_pass;
cout << "\n\t\t\t\t*****************************************";
cout << "\n\t\t\t\t * COVID19 MANAGEMENT SYSTEM *";
cout << "\n\t\t\t\t*****************************************";
// LOGIN USER
cout << "\n\n\t\t -->> LOGIN USER <<--";
cout << "\n\n\t\tEnter Your Username: ";
cin >> u_name;
cout << "\n\t\tEnter Your Password: ";
cin >> u_pass;
fname = u_name + ".txt";
filei.open(fname.c_str());
if (!filei.is_open() && filei.fail())
{
cout << "\nYou are not registered, please register before logging in.\n";
filei.close();
getch();
user_password();
44
}
getline(filei, usern);
getline(filei, u_pass);
if (u_name == usn && u_pass == password)
{
cout << "\nYou are successfully logged in:)";
cout << "\n\nPress Any Key To Continue..";
Sleep(500);
getch();
user();
}
}
else if (user_choice == 3)
{
menu();
}
else
{
cout << "\n\n\t\t\t Invalid Choice... Please Try Again....";
cout << "\n\n Press Any Key To Continue: ";
getch();
user_password();
}
}
//************ADMIN************
void covid_management::add_vaccine_stock()
{
A:
fstream file;
system("cls");
cout << "\n\t\t\t\t*****************************************";
cout << "\n\t\t\t\t * COVID19 MANAGEMENT SYSTEM *";
cout << "\n\t\t\t\t*****************************************";
cout << "\n\n\t\t-->> ADD VACCINE IN CENTER <<--";
cout << "\n\n\t\t1. " << center1 << "\t\t2. " << center2;
cout << "\n\n\t\t3. " << center3 << "\t\t4. BACK";
cout << "\n\t\tEnter Choice: ";
cin >> center_no;
switch (center_no)
{
case 1:
45
{
file.open("center1.txt", ios::app);
cout << "\n\t\t -->> For Center 1 <<--";
cout << "\n\tEnter Number Of Vaccines You Want To Add: ";
cin >> add;
sum_vaccine_c1 = sum_vaccine_c1 + add;
file << sum_vaccine_c1;
file.close();
cout << "\n\n\tVaccine In Center: " << sum_vaccine_c1;
cout << "\n\n\t\tSUCCESSFULLY ADDED VACCINES TO THE CENTER";
cout << "\n\n\nPress Any Key To Continue..";
getch();
goto A;
break;
}
case 2:
{
file.open("center2.txt", ios::app);
cout << "\n\t\t -->> For Center 2 <<--";
cout << "\n\tEnter Number Of Vaccines You Want To Add: ";
cin >> add;
sum_vaccine_c2 = sum_vaccine_c2 + add;
file << sum_vaccine_c2;
file.close();
cout << "\n\n\tVaccine In Center: " << sum_vaccine_c2;
cout << "\n\n\t\tSUCCESSFULLY ADDED VACCINES TO THE CENTER";
cout << "\n\n\nPress Any Key To Continue..";
getch();
goto A;
break;
}
case 3:
{
file.open("center3.txt", ios::app);
cout << "\n\t\t -->> For Center 3 <<--";
cout << "\n\tEnter Number Of Vaccines You Want To Add: ";
cin >> add;
sum_vaccine_c3 = sum_vaccine_c3 + add;
file << sum_vaccine_c3;
file.close();
cout << "\n\n\tVaccine In Center: " << sum_vaccine_c3;
cout << "\n\n\t\tSUCCESSFULLY ADDED VACCINES TO THE CENTER";
cout << "\n\n\nPress Any Key To Continue..";
46
getch();
goto A;
break;
}
case 4:
break;
default:
cout << "\n\n\t\t\t Invalid Choice... Please Try Again....";
cout << "\n\n Press Any Key To Continue: ";
getch();
add_vaccine_stock();
break;
}
}
void covid_management::search_center()
{
system("cls");
ifstream file;
cout << "\n\t\t\t\t*****************************************";
cout << "\n\t\t\t\t * COVID19 MANAGEMENT SYSTEM *";
cout << "\n\t\t\t\t*****************************************";
cout << "\n\n\t\t-->> Various Vaccination Centers In Your City <<--";
file.open("center1.txt");
if (!file)
{
cout << "\nFile Not Found ";
}
else
{
file >> sum_vaccine_c1;
cout << "\n\n\t\t-->> " << center1 << " <<--";
cout << "\n\t\tTotal Vaccine: " << sum_vaccine_c1;
}
file.close();
file.open("center2.txt");
if (!file)
{
cout << "\nFile Not Found ";
}
else
{
file >> sum_vaccine_c2;
47
cout << "\n\n\t\t-->> " << center2 << " <<--";
cout << "\n\t\tTotal Vaccine: " << sum_vaccine_c2;
}
file.close();
file.open("center3.txt");
if (!file)
{
cout << "\nFile Not Found ";
}
else
{
file >> sum_vaccine_c3;
cout << "\n\n\t\t-->> " << center3 << " <<--";
cout << "\n\t\tTotal Vaccine: " << sum_vaccine_c3;
}
file.close();
cout << "\n\nPress Any Key To Continue..";
getch();
}
void covid_management::display_vaccine_stock()
{
system("cls");
ifstream ind;
fstream file1, file2, file3;
cout << "\n\t\t\t\t*****************************************";
cout << "\n\t\t\t\t * COVID19 MANAGEMENT SYSTEM *";
cout << "\n\t\t\t\t*****************************************";
cout << "\n\n\t\t->> Available Vaccine Stock <<--\n\n";
int i = 0;
file1.open("center1.txt"); // Open Center1
file2.open("center2.txt"); // Open Center2
file3.open("center3.txt"); // Open Center3
file1 >> sum_vaccine_c1;
file2 >> sum_vaccine_c2;
file3 >> sum_vaccine_c3;
ind.open("Patient_Data.dat"); // Data take from Patient file
ind.seekg(0, ios::beg);
while (ind.read((char *)this, sizeof(covid_management)))
;
{
i++;
}
48
ind.close();
int s = TOTAL_VACCINE + sum_vaccine_c1 + sum_vaccine_c2 + sum_vaccine_c3 -
i;
file1.close();
file2.close();
file3.close();
cout << "\n\nAvailable Number Of Vaccines are: " << s;
cout << "\n\nPress Any Key To Continue..";
getch();
}
void covid_management::add_doctor()
{
system("cls");
cout << "\n\t\t\t\t*****************************************";
cout << "\n\t\t\t\t * COVID19 MANAGEMENT SYSTEM *";
cout << "\n\t\t\t\t*****************************************";
cout << "\n\n\t\t-->> ADD DOCTOR <<--";
fstream file;
cout << "\n\n\t\tEnter Name: ";
fflush(stdin);
cin.getline(name, 100);
cout << "\n\n\t\tEnter Identification Number: ";
fflush(stdin);
cin >> identification_id;
C:
cout << "\n\n\t\tEnter Aadhar No.: ";
cin >> adhaar;
if (adhaar.length() != 12)
{
cout << "\nInvalid Aadhar Card Number";
goto C;
}
else
{
// The first letter should not start with 0 or 1
if (adhaar[0] == '0' || adhaar[0] == '1')
{
cout << "\nInvalid Aadhar Card Number";
goto C;
}
else
{
49
cout << "\nValid Aadhar Card Number";
}
}
B:
cout << "\n\n\t\tEnter Your Mobile Number: ";
cin >> phone_no;
if (phone_no.length() != 10)
{
cout << "\nInvalid Phone Number";
goto B;
}
else
{
// The First letter should not start with 0 or 1
if (phone_no[0] == '0' || phone_no[0] == '1')
{
cout << "\nInvalid Phone Number";
goto B;
}
else
{
cout << "\nValid Phone Number";
}
}
cout << "\n\n\t\tEnter Gender (M/F): ";
cin >> gender;
cout << "\n\n\t\tEnter Age: ";
cin >> age;
cout << "\n\n\t\tEnter Specialization: ";
fflush(stdin);
cin.getline(specialization, 40);
cout << "\n\n\t\tEnter Center Allotted: ";
cin >> center;
file.open("Doctor_Data.dat", ios::app | ios::binary);
file.write((char *)this, sizeof(covid_management));
cout << "\n\nYOUR DATA HAS BEEN SUCCESSFULLY INSERTED" << endl;
cout << "\n\nPress Any Key To Continue..";
file.close();
getch();
}
void covid_management::display_doctor_data()
{
50
system("cls");
cout << "\n\t\t\t\t*****************************************";
cout << "\n\t\t\t\t * COVID19 MANAGEMENT SYSTEM *";
cout << "\n\t\t\t\t*****************************************";
cout << "\n\n\t\t-->> SHOW DOCTOR DATA <<--";
ifstream file;
file.open("Doctor_Data.dat", ios::in | ios::binary);
if (!file)
{
cout << "\nFile Not Found!";
}
else
{
file.read((char *)this, sizeof(*this));
while (!file.eof())
{
cout << "\n";
doctor_show_data();
file.read((char *)this, sizeof(*this));
}
}
file.close();
cout << "\n\nPress Any Key To Continue..";
getch();
}
void covid_management::doctor_show_data()
{
cout.setf(ios::left, ios::adjustfield);
cout.width(20);
cout << endl
<< "Name: ";
cout.setf(ios::right, ios::adjustfield);
cout.width(25);
cout << setfill(' ') << name;
cout.setf(ios::left, ios::adjustfield);
cout.width(20);
cout << endl
<< "Identification No.: ";
cout.setf(ios::right, ios::adjustfield);
cout.width(25);
cout << setfill(' ') << identification_id;
cout.setf(ios::left, ios::adjustfield);
51
cout.width(20);
cout << endl
<< "Aadhar No.: ";
cout.setf(ios::right, ios::adjustfield);
cout.width(25);
cout << setfill(' ') << adhaar;
cout.setf(ios::left, ios::adjustfield);
cout.width(20);
cout << endl
<< "Mobile No.: ";
cout.setf(ios::right, ios::adjustfield);
cout.width(25);
cout << setfill(' ') << phone_no;
cout.setf(ios::left, ios::adjustfield);
cout.width(20);
cout << endl
<< "Gender: ";
cout.setf(ios::right, ios::adjustfield);
cout.width(25);
cout << setfill(' ') << gender;
cout.setf(ios::left, ios::adjustfield);
cout.width(20);
cout << endl
<< "Age: ";
cout.setf(ios::right, ios::adjustfield);
cout.width(25);
cout << setfill(' ') << age;
cout.setf(ios::left, ios::adjustfield);
cout.width(20);
cout << endl
<< "Specialization: ";
cout.setf(ios::right, ios::adjustfield);
cout.width(25);
cout << setfill(' ') << specialization;
cout.setf(ios::left, ios::adjustfield);
cout.width(20);
cout << endl
<< "Center Allotted: ";
cout.setf(ios::right, ios::adjustfield);
cout.width(25);
cout << setfill(' ') << center;
}
52
void covid_management::search_doctor_data()
{
B:
system("cls");
int choice;
cout << "\n\t\t\t\t*****************************************";
cout << "\n\t\t\t\t * COVID19 MANAGEMENT SYSTEM *";
cout << "\n\t\t\t\t*****************************************";
cout << "\n\n\t\t-->> SEARCH DOCTOR DATA <<--";
cout << "\n\t\t1. Search Data By Aadhar \t\t\t2. Search Data BY Identification ID" <<
endl;
cout << "\n\t\t3. Search Data By Center \t\t\t4. Search Data By Gender" << endl;
cout << "\n\t\t5. EXIT";
cout << "\n\n\t\tEnter Choice: ";
cin >> choice;
switch (choice)
{
case 1:
{
int count = 0;
string sadhaar;
ifstream file;
file.open("Doctor_Data.dat", ios::in | ios::binary);
system("cls");
cout << "\n\t\t\t\t*****************************************";
cout << "\n\t\t\t\t * COVID19 MANAGEMENT SYSTEM *";
cout << "\n\t\t\t\t*****************************************";
cout << "\n\n\t\t-->> SEARCH DOCTOR DATA BY AADHAR <<--";
cout << "\n\n\t\tEnter Aadhar No.: ";
cin >> sadhaar;
if (!file)
{
cout << "\nFile Not Found!";
}
else
{
file.read((char *)this, sizeof(covid_management));
}
while (!file.eof())
{
if (sadhaar.compare(adhaar) == 0)
{
count++;
53
doctor_show_data();
}
file.read((char *)this, sizeof(covid_management));
}
if (count == 0)
{
cout << "\nRecord Not Found!";
}
file.close();
cout << "\n\nPress Any Key To Continue..";
getch();
goto B;
}
case 2:
{
int count = 0;
string sidentification_id;
ifstream file;
file.open("Doctor_Data.dat", ios::in | ios::binary);
system("cls");
cout << "\n\t\t\t\t*****************************************";
cout << "\n\t\t\t\t * COVID19 MANAGEMENT SYSTEM *";
cout << "\n\t\t\t\t*****************************************";
cout << "\n\n\t\t-->> SEARCH DOCTOR DATA BY Identification ID <<--";
cout << "\n\n\t\tEnter Identification ID: ";
cin >> sidentification_id;
if (!file)
{
cout << "\nFile Not Found!";
}
else
{
file.read((char *)this, sizeof(covid_management));
}
while (!file.eof())
{
if (sidentification_id == identification_id)
{
count++;
doctor_show_data();
}
file.read((char *)this, sizeof(covid_management));
}
54
if (count == 0)
{
cout << "\nRecord Not Found!";
}
file.close();
cout << "\n\nPress Any Key To Continue..";
getch();
goto B;
}
case 3:
{
int count = 0;
string scenter;
ifstream file;
file.open("Doctor_Data.dat", ios::in | ios::binary);
system("cls");
cout << "\n\t\t\t\t*****************************************";
cout << "\n\t\t\t\t * COVID19 MANAGEMENT SYSTEM *";
cout << "\n\t\t\t\t*****************************************";
cout << "\n\n\t\t-->> SEARCH DOCTOR DATA BY CENTER <<--";
cout << "\n\n\t\tEnter Center: ";
cin >> scenter;
if (!file)
{
cout << "\nFile Not Found!";
}
else
{
file.read((char *)this, sizeof(covid_management));
}
while (!file.eof())
{
if (scenter.compare(center) == 0)
{
count++;
doctor_show_data();
}
file.read((char *)this, sizeof(covid_management));
}
if (count == 0)
{
cout << "\nRecord Not Found!";
}
55
file.close();
cout << "\n\nPress Any Key To Continue..";
getch();
goto B;
}
case 4:
{
int count = 0;
char sgender[10];
ifstream file;
file.open("Doctor_Data.dat", ios::in | ios::binary);
system("cls");
cout << "\n\t\t\t\t*****************************************";
cout << "\n\t\t\t\t * COVID19 MANAGEMENT SYSTEM *";
cout << "\n\t\t\t\t*****************************************";
cout << "\n\n\t\t-->> SEARCH DOCTOR DATA BY GENDER <<--";
cout << "\n\n\t\tEnter Gender: ";
cin >> sgender;
if (!file)
{
cout << "\nFile Not Found!";
}
else
{
file.read((char *)this, sizeof(covid_management));
}
while (!file.eof())
{
if (strcmp(sgender, gender) == 0)
{
count++;
doctor_show_data();
}
file.read((char *)this, sizeof(covid_management));
}
if (count == 0)
{
cout << "\nRecord Not Found!";
}
file.close();
cout << "\n\nPress Any Key To Continue..";
getch();
goto B;
56
}
case 5:
break;
default:
cout << "\n\n\t\tInvalid Choice.. Please Try Again..";
getch();
break;
goto B;
}
}
void covid_management::applied_vaccine()
{
ifstream ind;
system("cls");
cout << "\n\t\t\t\t*****************************************";
cout << "\n\t\t\t\t * COVID19 MANAGEMENT SYSTEM *";
cout << "\n\t\t\t\t*****************************************";
cout << "\n\n\t\t-->> VACCINATED PERSON <<--";
int i = 0;
ind.open("Patient_Data.dat");
ind.seekg(0, ios::beg);
while (ind.read((char *)this, sizeof(covid_management)))
{
i++;
}
ind.close();
cout << "\n\n\t\tVaccinated Person: " << i;
cout << "\n\nPress Any Key To Continue..";
getch();
}
void covid_management::show_patient_data()
{
B:
system("cls");
int choice;
cout << "\n\t\t\t\t*****************************************";
cout << "\n\t\t\t\t * COVID19 MANAGEMENT SYSTEM *";
cout << "\n\t\t\t\t*****************************************";
cout << "\n\n\t\t-->> SEARCH PATIENT DATA <<--";
cout << "\n\t\t1. Search Data By Aadhar \t\t\t2. Search Data BY AGE" << endl;
cout << "\n\t\t3. Search Data By Profession \t\t\t4. Search Data By Gender" << endl;
57
cout << "\n\t\t5. EXIT";
cout << "\n\n\t\tEnter Choice: ";
cin >> choice;
switch (choice)
{
case 1:
search_by_aadhar();
goto B;
case 2:
search_by_age();
goto B;
case 3:
search_by_profession();
goto B;
case 4:
search_by_gender();
goto B;
case 5:
break;
default:
cout << "\n\n\t\tInvalid Choice.. Please Try Again..";
getch();
goto B;
}
}
void covid_management::search_by_aadhar()
{
int count = 0;
string sadhaar;
ifstream file;
file.open("Patient_Data.dat", ios::in | ios::binary);
system("cls");
cout << "\n\t\t\t\t*****************************************";
cout << "\n\t\t\t\t * COVID19 MANAGEMENT SYSTEM *";
cout << "\n\t\t\t\t*****************************************";
cout << "\n\n\t\t-->> SEARCH PATIENT DATA BY AADHAR <<--";
cout << "\n\n\t\tEnter Aadhar No.: ";
cin >> sadhaar;
if (!file)
{
cout << "\nFile Not Found!";
}
58
else
{
file.read((char *)this, sizeof(covid_management));
}
while (!file.eof())
{
if (sadhaar.compare(adhaar) == 0)
{
count++;
show_data();
}
file.read((char *)this, sizeof(covid_management));
}
if (count == 0)
{
cout << "\nRecord Not Found!";
}
file.close();
cout << "\n\nPress Any Key To Continue..";
getch();
}
void covid_management::search_by_age()
{
int count = 0;
int sage;
ifstream file;
file.open("Patient_Data.dat", ios::in | ios::binary);
system("cls");
cout << "\n\t\t\t\t*****************************************";
cout << "\n\t\t\t\t * COVID19 MANAGEMENT SYSTEM *";
cout << "\n\t\t\t\t*****************************************";
cout << "\n\n\t\t-->> SEARCH PATIENT DATA BY AGE <<--";
cout << "\n\n\t\tEnter Your Age: ";
cin >> sage;
if (!file)
{
cout << "\nFile Not Found!";
}
else
{
file.read((char *)this, sizeof(covid_management));
}
59
while (!file.eof())
{
if (sage == age)
{
count++;
show_data();
}
file.read((char *)this, sizeof(covid_management));
}
if (count == 0)
{
cout << "\nRecord Not Found!";
}
file.close();
cout << "\n\nPress Any Key To Continue..";
getch();
}
void covid_management::search_by_profession()
{
int count = 0;
string sprofession;
ifstream file;
file.open("Patient_Data.dat", ios::in | ios::binary);
system("cls");
cout << "\n\t\t\t\t*****************************************";
cout << "\n\t\t\t\t * COVID19 MANAGEMENT SYSTEM *";
cout << "\n\t\t\t\t*****************************************";
cout << "\n\n\t\t-->> SEARCH PATIENT DATA BY PROFESSION <<--";
cout << "\n\n\t\tEnter Your Profession: ";
cin >> sprofession;
if (!file)
{
cout << "\nFile Not Found!";
}
else
{
file.read((char *)this, sizeof(covid_management));
}
while (!file.eof())
{
if (sprofession.compare(profession) == 0)
{
60
count++;
show_data();
}
file.read((char *)this, sizeof(covid_management));
}
if (count == 0)
{
cout << "\nRecord Not Found!";
}
file.close();
cout << "\n\nPress Any Key To Continue..";
getch();
}
void covid_management::search_by_gender()
{
int count = 0;
char sgender[10];
ifstream file;
file.open("Patient_Data.dat", ios::in | ios::binary);
system("cls");
cout << "\n\t\t\t\t*****************************************";
cout << "\n\t\t\t\t * COVID19 MANAGEMENT SYSTEM *";
cout << "\n\t\t\t\t*****************************************";
cout << "\n\n\t\t-->> SEARCH PATIENT DATA BY GENDER <<--";
cout << "\n\n\t\tEnter Your Gender: ";
cin >> sgender;
if (!file)
{
cout << "\nFile Not Found!";
}
else
{
file.read((char *)this, sizeof(covid_management));
}
while (!file.eof())
{
if (strcmp(sgender, gender) == 0)
{
count++;
show_data();
}
file.read((char *)this, sizeof(covid_management));
61
}
if (count == 0)
{
cout << "\nRecord Not Found!";
}
file.close();
cout << "\n\nPress Any Key To Continue..";
getch();
}
//***********USER*************
void covid_management::add_patient_data()
{
fstream file;
system("cls");
cout << "\n\t\t\t\t*****************************************";
cout << "\n\t\t\t\t * COVID19 MANAGEMENT SYSTEM *";
cout << "\n\t\t\t\t*****************************************";
cout << "\n\n\t\t-->> APPLY FOR VACCINE FIRST DOSE <<--";
cout << "\n\n\t\tEnter Name: ";
fflush(stdin);
cin.getline(name, 100);
C:
cout << "\n\n\t\tEnter Aadhar No.: ";
cin >> adhaar;
if (adhaar.length() != 12)
{
cout << "\nInvalid Aadhar Card Number";
goto C;
}
else
{
// The first letter should not start with 0 or 1
if (adhaar[0] == '0' || adhaar[0] == '1')
{
cout << "\nInvalid Aadhar Card Number";
goto C;
}
else
{
cout << "\nValid Aadhar Card Number";
}
62
}
B:
cout << "\n\n\t\tEnter Your Mobile Number: ";
cin >> phone_no;
if (phone_no.length() != 10)
{
cout << "\nInvalid Phone Number";
goto B;
}
else
{
// The First letter should not start with 0 or 1
if (phone_no[0] == '0' || phone_no[0] == '1')
{
cout << "\nInvalid Phone Number";
goto B;
}
else
{
cout << "\nValid Phone Number";
}
}
cout << "\n\n\t\tEnter Gender (M/F): ";
cin >> gender;
cout << "\n\n\t\tEnter Age: ";
cin >> age;
cout << "\n\n\t\tEnter Profession: ";
cin.ignore();
getline(cin, profession);
cout << "\n\n\t\tEnter Permanent Address: ";
cin >> address;
cout << "\n\n\t\tEnter Vaccine Name [Covishield & Covaxin]: ";
cin >> vaccine_name;
cout << "\n\n\t\tEnter Dose: ";
cin >> dose;
cout << "\n\n\t\tEnter Center Allotted: ";
cin >> center;
file.open("Patient_Data.dat", ios::app | ios::binary);
file.write((char *)this, sizeof(covid_management));
cout << "\n\nYOU HAVE SUCCESSFULLY VACCINATED :)";
cout << "\n\nPress Any Key To Continue..";
file.close();
getch();
63
}
void covid_management::patient_show_data()
{
int count = 0;
string vadhaar;
ifstream file;
file.open("Patient_Data.dat", ios::in | ios::binary);
system("cls");
cout << "\n\t\t\t\t*****************************************";
cout << "\n\t\t\t\t * COVID19 MANAGEMENT SYSTEM *";
cout << "\n\t\t\t\t*****************************************";
cout << "\n\n\t\t-->> SEARCH DATA BY AADHAR <<--";
cout << "\n\n\t\tEnter Aadhar No.: ";
cin >> vadhaar;
if (!file)
{
cout << "\nFile Not Found!";
}
else
{
file.read((char *)this, sizeof(covid_management));
}
while (!file.eof())
{
if (vadhaar.compare(adhaar) == 0)
{
count++;
show_data();
}
file.read((char *)this, sizeof(covid_management));
}
if (count == 0)
{
cout << "\nRecord Not Found!";
}
file.close();
cout << "\n\nPress Any Key To Continue..";
getch();
}
void covid_management::show_data()
{
64
cout.setf(ios::left, ios::adjustfield);
cout.width(20);
cout << endl
<< "Name: ";
cout.setf(ios::right, ios::adjustfield);
cout.width(25);
cout << setfill(' ') << name;
cout.setf(ios::left, ios::adjustfield);
cout.width(20);
cout << endl
<< "Aadhar No.: ";
cout.setf(ios::right, ios::adjustfield);
cout.width(25);
cout << setfill(' ') << adhaar;
cout.setf(ios::left, ios::adjustfield);
cout.width(20);
cout << endl
<< "Mobile No.: ";
cout.setf(ios::right, ios::adjustfield);
cout.width(25);
cout << setfill(' ') << phone_no;
cout.setf(ios::left, ios::adjustfield);
cout.width(20);
cout << endl
<< "Gender: ";
cout.setf(ios::right, ios::adjustfield);
cout.width(25);
cout << setfill(' ') << gender;
cout.setf(ios::left, ios::adjustfield);
cout.width(20);
cout << endl
<< "Age: ";
cout.setf(ios::right, ios::adjustfield);
cout.width(25);
cout << setfill(' ') << age;
cout.setf(ios::left, ios::adjustfield);
cout.width(20);
cout << endl
<< "Profession: ";
cout.setf(ios::right, ios::adjustfield);
cout.width(25);
cout << setfill(' ') << profession;
cout.setf(ios::left, ios::adjustfield);
65
cout.width(20);
cout << endl
<< "Vaccine Name: ";
cout.setf(ios::right, ios::adjustfield);
cout.width(25);
cout << setfill(' ') << vaccine_name;
cout.setf(ios::left, ios::adjustfield);
cout.width(20);
cout << endl
<< "Dose: ";
cout.setf(ios::right, ios::adjustfield);
cout.width(25);
cout << setfill(' ') << dose;
cout.setf(ios::left, ios::adjustfield);
cout.width(20);
cout << endl
<< "Center Allotted: ";
cout.setf(ios::right, ios::adjustfield);
cout.width(25);
cout << setfill(' ') << center;
}
void covid_management::update_patient_data()
{
fstream file;
system("cls");
string maadhaar;
int count = 0;
cout << "\n\t\t\t\t*****************************************";
cout << "\n\t\t\t\t * COVID19 MANAGEMENT SYSTEM *";
cout << "\n\t\t\t\t*****************************************";
cout << "\n\n\t\t-->> APPLY FOR SECOND DOSE <<--";
cout << "\n\n\t\tEnter Your Aadhar No.: ";
file.open("Patient_Data.dat", ios::in | ios::out | ios::binary | ios::ate);
file.seekg(0);
file.read((char *)this, sizeof(*this));
cin >> maadhaar;
while (!file.eof())
{
if (maadhaar.compare(adhaar) == 0)
{
count++;
dose++;
66
cout << "\nDose: " << dose;
file.seekp(file.tellp() - sizeof(*this));
file.write((char *)this, sizeof(*this));
cout << "\n\nYou are Vaccinated :)";
}
file.read((char *)this, sizeof(*this));
}
if (count == 0)
{
cout << "\nRecord not Found!";
}
file.close();
cout << "\n\nPress Any Key To Continue..";
getch();
}
int main()
{
system("color B");
covid_management system;
system.menu();
}
67
Out put
6.1 Conclusion
Hence in this project we collected both the qualitative and the quantitative COVID-19
infection data of five major districts. The quantitative data studied the COVID cases in
different aspects such as gender, age etc. and qualitative data evaluate the
socioeconomic situation, health facilities, infected cases and individual perception
towards this pandemic.
Similarly, comparative study of five districts concludes that male members of age
group 21-30 are highly infective than other due to their active involvement in
socioeconomic activities, high mobility, high population. As people are not following
all the safety protocols and also the availability of excessive testing technologies
results in more infected cases in different district. Also the study show that there is
high recovery rate than infected and death rate. Taking the present situation as new
normal way of living they are showing negligence toward the COVID-19 Virus.
Likewise, this project helped every one of us to be familiar with our home districts, the
situation of COVID pandemic, different software. Moreover, it taught a lot about the
essence of planning, cooperation during the team works. This type of project can be
best way of collecting, analyzing and visualizing the COVID 19 cases and its impact
in different aspects of community.
68
Hence, this is the high time, so we all need is patience, unity and cooperation to fight
against the situation.
6.2 Recommendation
This project is one of the best way to study the corona-virus attack and its impact in
the community. Though this project collected fine data in District level and to some
extent their local level too. We recommend following points to achieve more fine data
and visualization of such aspects of community which are still not exposed among
public and still getting severe effect.
Since most of the official websites of the government offices were not updated
daily, not only daily, even in a month. It would be easier for us to collect the
data if the websites were updated time to time,
It would be easier for web surfing to collect the data if we were provided with
the strong internet facility.
If data providing procedure in government offices would be easier and
undoubted, we could have got data easily and comfortably.
We think that if some more weeks were provided us for completing this project
it would be sufficient to collect the data and analyze the data so that it could be
visualized in more efficient way
69
HARDWARE REQUIREMENTS
SOFTWARE REQUIREMENTS
70
7. REFERENCES
Ministry of Health and Population. (2020). Retrieved November 03, 2020, from
https://covid19.mohp.gov.np/
District Coordination Committee Jhapa. (2020). Retrieved October 30, 2020, from
https://dccjhapa.com.np
District Administration Office Lalitpur. (2020). Retrieved November 1, 2020, from
https://daolalitpur.moha.gov.np/
District Administration Office Bhaktapur. (2020) Retrieved October 30, 2020, from
https://daobhaktapur.moha.gov.np/en
District Administration Office Kanchanpur. (2020). Retrieved November 01, 2020,
from https://daokanchanpur.moha.gov.np/
District Administration Office Dadeldhura. (2020). Retrieved October 30, 2020, from
https://daodadeldhura.moha.gov.np/
71
8. ANNEXES
72