-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pather_triage.h
More file actions
42 lines (33 loc) · 805 Bytes
/
er_triage.h
File metadata and controls
42 lines (33 loc) · 805 Bytes
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
//
// Created by haris on 12/22/2025.
//
#ifndef C___ER_TRIAGE_H
#define C___ER_TRIAGE_H
#include <memory>
#include <string>
struct Patient {
int id{};
std::string name;
int age{};
std::string complaint;
int arrivalMin{};
int triageScore{};
int version{};
};
class er_triage {
public:
explicit er_triage(int agingRatePer10Min = 1);
~er_triage();
int addPatient(const std::string& name,
int age,
const std::string& complaint,
int triageScore);
void updateTriage(int id, int newScore);
void advanceTime(int minutes);
void showLobby() const;
void callNext();
private:
class Impl;
std::unique_ptr<Impl> impl;
};
#endif //C___ER_TRIAGE_H