-
Notifications
You must be signed in to change notification settings - Fork 0
/
Patient.cpp
62 lines (55 loc) · 1.77 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
55
56
57
58
59
60
61
62
#include "Patient.h"
//constructor
Patient::Patient(){
id="";
doctor_id="";
record_id="";
name="";
phone="";
gender="";
email="";
blood_type="";
}
Patient::Patient(string p,string d,string r,string n,string o,string g,string e,string b){
id=p;
doctor_id=d;
record_id=r;
name=n;
phone=o;
gender=g;
email=e;
blood_type=b;
}
//getters
string Patient::getId(){return id;}
string Patient::getDoctor_id(){return doctor_id;}
string Patient::getRecord_id(){return record_id;}
string Patient::getName(){return name;}
string Patient::getPhone(){return phone;}
string Patient::getGender(){return gender;}
string Patient::getEmail(){return email;}
string Patient::getBlood_type(){return blood_type;}
Diagnoses Patient::getDiagnoses(){return diag;}
//setters
void Patient::setId(string a){id=a;}
void Patient::setDoctor_id(string a){doctor_id=a;}
void Patient::setRecord_id(string a){record_id=a;}
void Patient::setName(string a){name=a;}
void Patient::setPhone(string a){phone=a;}
void Patient::setGender(string a){gender=a;}
void Patient::setEmail(string a){email=a;}
void Patient::setBlood_type(string a){blood_type=a;}
void Patient::setDiagnoses(Diagnoses a){diag=a;}
void Patient::print(std::ostream& out)const{
out<<"\nPatient ID : "<<id
<<"\nDoctor's ID : "<<doctor_id
<<"\nRecord ID : "<<record_id
<<"\nPatient's Name : "<<name
<<"\nPhone Number : "<<phone
<<"\nPatient gender : "<<gender
<<"\nPatient's E-mail : "<<email
<<"\nPatient's Blood Type : "<<blood_type;
}
void Patient::read(std::istream& in){
in>>id>>doctor_id>>record_id>>name>>phone>>gender>>email>>blood_type;
}