-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPatient.h
62 lines (50 loc) · 1.36 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
58
59
60
61
62
#pragma once
#ifndef PATIENT
#define PATIENT
#include <string>
#include "Date.h"
#include "Contact.h"
#include"MedicalHistory.h"
using namespace std;
class Patient
{
private:
string name;
string address;
Date DofB;
Contact C;
Patient *next;
MedicalHistory* firstMedicalHistory;
int MedicalHistoryNum;
//medHistory myHistory;
public:
//Constructors...
Patient();
Patient(string name, string address);
Patient(string name,string address,string mobil, string tele, string email,unsigned int d,unsigned int m,unsigned int y);
// setters and getter for next
inline void setNext(Patient* P){next= P;}
inline Patient* getNext(){return next;}
//Functions...
void setName(string name);
void setAddress(string Address);
void setDate(unsigned int Day,unsigned int Month, unsigned int Year);
void setContact(string mobile, string tel, string Email);
void setDate(Date Date);
void addMedicalHistory();
void printMed();
void SetFirstMH(MedicalHistory* MH);
void SetPMN(int);
int GetPMN();
string getName();
string getAddress();
Date getDate();
Contact getContact();
MedicalHistory* getMH();
~Patient();
//istream & ostream...
friend istream& operator >> (istream& is, Patient& P1);
friend ostream& operator << (ostream& os, Patient& P1);
friend istream& operator>>(istream& is,Patient *P1);
};
#endif