-
Notifications
You must be signed in to change notification settings - Fork 0
/
Patient.cpp
55 lines (44 loc) · 1.29 KB
/
Patient.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
#include "Patient.h"
#include <utility>
std::string Patient::getName() {
return name;
}
void Patient::setAge(int age) {
this->age = age;
}
void Patient::setWeight(double weight) {
this->weight = weight;
}
void Patient::setHeight(double height) {
this->height = height;
}
void Patient::setBloodType(const std::string& bloodtype) {
this->bloodType = bloodtype;
}
void Patient::setBloodSugar(double bloodsugar) {
this->bloodSugar = bloodsugar;
}
void Patient::setTreatmentCost(double treatmentcost) {
this->treatmentCost = treatmentcost;
}
int Patient::getID() const {
return this->ID;
}
void Patient::setTreatment(string treatmentval) {
this->treatment = std::move(treatmentval);
}
void Patient::discharge() {
cout << "Patient " << this->name << " is discharged." << endl;
this->~Patient();
}
void Patient::showPatient() {
cout << "Patient Name: " << this->name;
cout << " ID: " << this->ID << endl;
cout << " Age: " << this->age;
cout << " Weight: " << this->weight;
cout << " Height: " << this->height << endl;
cout << " Blood Type: " << this->bloodType;
cout << " Blood Sugar: " << this->bloodSugar << endl;
cout << " Department: " << this->department << endl;
cout << "Patient Treatment: " << this->treatment << endl;
}