Data-Structures-and-Algorithms / Triage / PriorityQueue / Patient.h
Patient.h
Raw
/*  File Name: Patient.h
	Author: Essam Fahmy
	Date: 2023-11-01

	Patient class declarations
*/

#pragma once
#include "Ailment.h"
#include "LinkedList.h"
#include <string>
#include <iostream>

class Patient
{
	std::string name_;
	LinkedList<Ailment> ailments_;
	int priorityScore_;

public:
	Patient(std::string name);
	Patient() : name_("Doe"), priorityScore_(0) {}
	void add_ailment(const Ailment& ailment);
	LinkedList<Ailment>& get_ailments();
	std::string get_name() const;
	int get_score() const;
	bool operator==(const Patient& other) const;

	Patient(const Patient& other);
};