-
Notifications
You must be signed in to change notification settings - Fork 0
/
patient.h
45 lines (41 loc) · 945 Bytes
/
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
#include "stdafx.h"
enum class Sex {Male, Female, Undefined};
class Patient {
private:
std::string name;
std::string hkid;
std::string phoneNumber;
std::string email;
std::string medicalNumber;
std::string nationality;
std::string address;
Sex sex = Sex::Undefined;
float height;
float weight;
bool isValid;
public:
// Setters
void setName(std::string);
void setHKID(std::string);
void setPhoneNumber(std::string);
void setEmail(std::string);
void setMedicalNumber(std::string);
void setNationality(std::string);
void setAddress(std::string);
void setSex(Sex);
void setHeight(float);
void setWeight(float);
void setValidity(bool);
// Getters
std::string getName();
std::string getHKID();
std::string getPhoneNumber();
std::string getEmail();
std::string getMedicalNumber();
std::string getNationality();
std::string getAddress();
Sex getSex();
float getHeight();
float getWeight();
bool getValidity();
};