-
Notifications
You must be signed in to change notification settings - Fork 0
/
appointment.h
66 lines (55 loc) · 1.72 KB
/
appointment.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
63
64
65
66
/*
Implemedted by: Lim Hong Yang (79880)
*/
#ifndef APPOINTMENT_H
#define APPOINTMENT_H
#include "user.h"
#include "hospital.h"
#include "transportation.h"
#include <string>
using namespace std;
class appointment
{
protected:
string app_id; //datetime created
int app_method, app_day, app_month, app_year, app_time, app_priority;
int app_status; //1=pending, 2=approved, 3=rejected
string ms_ID="0"; // default 0 for add new appointment purpose
user u2;
transportation trans;
hospital hos7;
public:
appointment();
~appointment();
//ALL USER
//create appointment ID based on current datetime (unique)
string create_id();
//check if appointment clashes
bool appointment_clash(vector<string>);
//serach appointment based on patientID & app_status
vector<vector<string>> search_appointment(string,int);
//search appointment based on app_id
vector<string> search_appointment(string ID);
//get the symptom/treatment based on app_id
vector<string> associated_symptom(string);
//preview appointment based on app detail & role
void preview_appointment(vector<string>,int);
//view full appointment detail
void fullview_appointment(vector<string>);
//save appointment
void save_appointment(string,vector<string>);
//check if any appointment expired
bool check_appointment_expired();
//PATIENT
//add appointment based on patient ID
void add_appointment(string);
//return chosen symptom
vector<string> add_symptom();
//edit pending appointment only
void edit_appointment(string);
//modify associated symptom/treatment (cannot be none)
void modify_symptom(vector<string>);
//remove only pending appointment
void cancel_appointment();
};
#endif