-
Notifications
You must be signed in to change notification settings - Fork 0
/
MedicalHistory.h
42 lines (35 loc) · 1.02 KB
/
MedicalHistory.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
#pragma once
#ifndef MEDICALHISTORY
#define MEDICALHISTORY
#include"Date.h"
#include<string>
#include"PrescribedMedicines.h"
using namespace std;
class MedicalHistory
{
private :
string diagnosis;
Date DoD;
MedicalHistory* nextMedical;
PrescribedMedicines* firstMed;
int PrescribedMedNum;
public:
MedicalHistory();
PrescribedMedicines* getFirstMed();
void setDiagnosis(string diagnosis);
string getDiagnosis();
void setDateofDiagnosis(unsigned int d, unsigned int m, unsigned int y);
Date getDateofDiagnosis();
void setNextMedical(MedicalHistory *MH);
MedicalHistory* getNextMedical();
void setFirstMedicine(PrescribedMedicines*FM);
PrescribedMedicines*getNextPrescribedMed();
int getMedicinesNUmber();
void setMedicineNumber(int i);
~MedicalHistory();
void addMedicine();
friend istream& operator >> (istream &is, MedicalHistory *MH);
friend ostream& operator << (ostream &os, MedicalHistory &MH);
friend ostream& operator << (ostream &os, MedicalHistory *MH);
};
#endif