-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHomeVisit.cpp
72 lines (60 loc) · 1.45 KB
/
HomeVisit.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#include "HomeVisit.h"
HomeVisit::HomeVisit()
{
this->homeAddress = "auc";
this->symptoms = "unknown";
}
HomeVisit::HomeVisit(QString p_patientName, DateAndTime p_dt, QString p_homeAddress, QString p_symptoms)
{
this->patientName = p_patientName;
this->dt = p_dt;
this->homeAddress = p_homeAddress;
this->symptoms = p_symptoms;
}
QString HomeVisit::getHomeAddress() const
{
return this->homeAddress;
}
QString HomeVisit::getSymptoms() const
{
return this->symptoms;
}
void HomeVisit::setHomeAddress(QString p_homeAddress)
{
this->homeAddress = p_homeAddress;
}
void HomeVisit::setSymptoms(QString p_symptoms)
{
this->symptoms = p_symptoms;
}
QString HomeVisit::requestDoctor()
{
//////////////////////////////////
return "";
}
QString HomeVisit::getPatientName() const
{
return this->patientName;
}
DateAndTime HomeVisit::getDt() const
{
return this->dt;
}
void HomeVisit::setPatientName(QString p_patientName)
{
this->patientName = p_patientName;
}
void HomeVisit::setDt(DateAndTime p_dt)
{
this->dt = p_dt;
}
QString HomeVisit::showHomeVisit() const
{
QString txt = "";
txt = txt + " Patient Name: " + this->patientName;
txt = txt + " Time: " + QString::number(this->dt.getHour()) + ":" + QString::number(this->dt.getMinute()) + "0";
txt = txt + " Home Address: " + this->homeAddress;
txt = txt + " Symptoms: " + this->symptoms;
txt = txt + " Fees: $900";
return txt;
}