Objectives 1. Understand the design, implementation and use of a stack, queue, and binary search tree class container. 2. Gain experience implementing applications using layers of increasing complexity and fairly complex data structures. 3. Gain further experience with object-oriented programming concepts, especially templates. Overview In this project you need to design and implement an Emergency Room Patients Healthcare Management System (ERPHMS) that uses stacks, queues, linked lists, and binary search tree (in addition you can use all what you need from what you have learned in this course). Problem definition: The system should be able to keep the patient's records, visits, appointments, diagnostics, treatments, observations, Physicians records, etc. It should allow you to 1. Add new patient 2. Add new physician record to a patient 3. Find patient by name 4. Find patient by birth date 5. Find the patients visit history 6. Display all patients 7. Print invoice that includes details of the visit and cost of each item done 8. Exit
Can someone help me complete what the image is asking using the code below as reference(You can change it a bit if you want) also using stacks, queues, linked lists, and Binary Search Trees.
#include<iostream>
using namespace::std;
class ERPHMS{
private:
int patient;
int visits; int turns;
int diagnostics;
int treatments;
int observation;
public:
void add_patient();
void new_physician_history();
void find_patient();
void find_pyhsician();
void patient_history();
void patient_registered();
void display_invoice();
};
int main() {
ERPHMS check; int choice;
cout<<endl<<"----------------------------------------------------------"<<endl; cout<<"This is an Emergency Room Patients Health Managment system "<<endl; cout<<"-----------------------------------------------------------"<<endl;
cout<<"1:For adding patient select"<<endl;
cout<<"2:Add new physician record to a patient"<<endl;
cout<<"3:For finding patient by name"<<endl;
cout<<"4:For finding a patient by birth date"<<endl;
cout<<"5:For patient's visit History"<<endl;
cout<<"6:Display all patients"<<endl;
cout<<"7:To print invoice "<<endl<<endl;
cout<<"Please pick the service : ";
cin>>choice;
switch(choice) {
case 1: check.add_patient(); break;
case 2: check.new_physician_history();
case 3: check.find_patient();
case 4: check.find_pyhsician();
case 5: check.patient_history();
case 6: check.patient_registered();
case 7: check.display_invoice();
}
}
Step by step
Solved in 2 steps with 1 images