-
Notifications
You must be signed in to change notification settings - Fork 0
/
Patient.h
57 lines (46 loc) · 1.53 KB
/
Patient.h
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
#ifndef CENG241_PATIENT_H
#define CENG241_PATIENT_H
#include <vector>
#include <string>
#include <iostream>
using namespace std;
class Patient {
string name;
string bloodType;
string department;
string treatment;
int ID,age;
double weight,height;
double bloodSugar,treatmentCost;
public:
Patient(string name,int ID,int age,double weight,double height,string bloodType,double bloodSugar,double treatmentCost,string department)
: name(name),ID(ID),age(age),weight(weight),height(height),bloodType(bloodType),bloodSugar(bloodSugar),treatmentCost(treatmentCost),department(department){
}
Patient(string name,int ID,string department)
:age(0),weight(0),height(0),bloodType("0"),bloodSugar(0),treatmentCost(0){
this->name = name;
this->ID = ID;
this->department = department;
};
Patient(){
}
string getName();
int getID() const;
void setTreatment(string treatment);
void discharge();
void showPatient();
void setAge(int age);
void setWeight(double weight);
void setHeight(double height);
void setBloodType(const std::string& bloodType);
void setBloodSugar(double bloodSugar);
void setTreatmentCost(double treatmentCost);
double getBloodSugar(){return bloodSugar;}
string getBloodType(){return bloodType;}
double getWeight(){return weight;}
double getHeight(){return height;}
int getAge(){return age;}
double getTreatmentCost(){return treatmentCost;}
string getDepartment(){return department;}
};
#endif