-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPatient.h
More file actions
42 lines (37 loc) · 1.03 KB
/
Patient.h
File metadata and controls
42 lines (37 loc) · 1.03 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
/*
* Patient.h
*
* Created on: 30 oct. 2013
* Author: grosalex
*/
#ifndef PATIENT_H_
#define PATIENT_H_
#include "Person.h"
class Physicians;
class Patient: public Person {
public:
Patient();
Patient(string,string,Date,Date);
virtual void print();
virtual double earnings( );
virtual ~Patient();
int getBednumer() const;
void setBednumer(int bednumer);
const Date& getDateOfAdmission() const;
void setDateOfAdmission(const Date& dateOfAdmission);
const Physicians* getMyPhysician() const;
void setMyPhysician(Physicians* myPhysician);
int getPatientNumber() const;
void setPatientNumber(int patientNumber);
private:
//patient_count is initialized to zero and incremented by one at each patient admission.
static int patient_count;
// patient_number is assigned the new value of the patient_count.
int patient_number;
// bednumber corresponds to the array index of the assigned bed.
int bednumer;
Date date_of_admission;
// Pointer to the patient’s physician.
Physicians * my_physician;
};
#endif /* PATIENT_H_ */