-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPatient.cpp
More file actions
75 lines (61 loc) · 1.44 KB
/
Patient.cpp
File metadata and controls
75 lines (61 loc) · 1.44 KB
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
73
74
75
/*
* Patient.cpp
*
* Created on: 30 oct. 2013
* Author: grosalex
*/
#include "Patient.h"
int Patient::patient_count = 0;
Patient::Patient(string inName, string inAddress, Date inDate, Date inAdmission)
:Person(inName,inAddress,inDate) {
patient_count++;
patient_number = patient_count;
date_of_admission = inAdmission;
my_physician=NULL;
bednumer=-1;
}
Patient::Patient()
:Person() {
patient_count++;
patient_number = patient_count;
//cout << "Enter date of admission" << endl;
//Date inAdmission;
my_physician = NULL;
bednumer=-1;
}
Patient::~Patient() {
// TODO !CodeTemplates.destructorstub.tododesc!
}
double Patient::earnings() {
return NULL;
}
void Patient::print() {
Person::print();
cout << "\nPatient number : " << patient_number << endl;
cout << "Date of admission : ";
date_of_admission.print();
}
int Patient::getBednumer() const {
return bednumer;
}
void Patient::setBednumer(int bednumer) {
this->bednumer = bednumer;
}
const Date& Patient::getDateOfAdmission() const {
return date_of_admission;
}
void Patient::setDateOfAdmission(const Date& dateOfAdmission) {
date_of_admission = dateOfAdmission;
}
const Physicians* Patient::getMyPhysician() const {
return my_physician;
}
void Patient::setMyPhysician(Physicians* myPhysician) {
my_physician = myPhysician;
}
int Patient::getPatientNumber() const {
return patient_number;
}
void Patient::setPatientNumber(int patientNumber) {
patient_number = patientNumber;
}