Question
c++ program, Hospital Management System A hospital management system allows the hospital administration to keep tract of doctors, patients, staff members, beds and other important
c++ program,
Hospital Management System A hospital management system allows the hospital administration to keep tract of doctors, patients, staff members, beds and other important resources. An administrator shall also be able to add the resources. Your hospital management system must have following classes: Departments Doctors Patients Rooms Staff Pharmacy Equipment Billing Date A hospital has departments, pharmacy, doctors and staff to offer. There are three types of departments i.e. orthopedic, dentistry and neurology. Each department has general physicians and specialist doctors, trained nurses and staff and up to date medical equipment. Hospital administrator has to maintain the record of everything present in the hospital. He can view/add/remove doctors, patients, nurses, staff and equipment in a department. Hospital administrator shall have a separate login and password to enter in the system. Administrator can check the availability of a doctor and can give an appointment to patient based on his free slots. He can also admit a patient in the hospital and book a room for the him/her for certain number of days. When a patient arrives at the hospital he/she must be displayed with the introduction, departments and facilities offered by the hospital. Doctor class maintains the record of the doctors, their qualification and department they belong to. It also maintains their duty times. Patients can also login to the system but they can only view doctors free slots in any department. They can also buy medicine from pharmacy. Rooms have different types (separate, common and economy) and prices. On the selection of type of room, proper menu displaying the room number and price of available rooms should be displayed. After booking the record of rooms should be modified and room which was previously available should become unavailable, for the next booking. Staff class maintains the data for two types of employees i.e. Administrator and worker. An employee has to enter his/her password before he enters into the system. A worker can only view records of a certain patients by entering his/her name/CNIC whereas administrator has the all the rights to add/remove/view any patient, doctor, equipment etc. There can be a maximum of two administrators in the hospital. Pharmacy class contains the name, price and quantity of the medicine available. Equipment class maintains the equipment number, price and name of the department it belongs to. Date maintains the check in and checkout dates of the patients. Billing class is invoked at the checkout for each patient. A bill is to be calculated based on the number of days he stayed in a particular room or medicine purchased from the pharmacy. Some sample files are given below:
Note: Define appropriate data members and member functions for each class and the relationships between classes. You are allowed to add more classes to your project but at minimum you have to make the classes defined above. Add more functionality to your project, which seems to be logical and practical. Use of dynamic arrays, inheritance, composition, polymorphism and operator overloading is a must. If needed, make appropriate files which store relevant information.
Hospital Management System A hospital management system allows the hospital administration to keep tract of doctors, patients, staff members, beds and other important resources. An administrator shall also be able to add the resources Your hospital management system must have following classes: Departments Doctors Patients Rooms Staff Pharmacy Equipment Billing Date A hospital has departments, pharmacy, doctors and staff to offer. There are three types of departments i.e. orthopedic, dentistry and neurology. Each department has general physicians and specialist doctors, trained nurses and staff and up to date medical equipment. Hospital administrator has to maintain the record of everything present in the hospital. He can view/add/remove doctors, patients, nurses, staff and equipment in a department. Hospital administrator shall have a separate login and password to enter in the system Administrator can check the availability of a doctor and can give an appointment to patient based on his free slots. He can also admit a patient in the hospital and book a room for the him/her for certain number of days. When a patient arrives at the hospital he/she must be displayed with the introduction, departments and facilities offered by the hospital. Doctor class maintains the record of the doctors, their qualification and department they belong to. It also maintains their duty times. Patients can also login to the system but they can only view doctor's free slots in any department. They can also buy medicine from pharmacy. Rooms have different types (separate, common and economy) and prices. On the selection of type of room, proper menu displaying the room number and price of available rooms should be displayed. After booking the record of rooms should be modified and room which was previously available should become unavailable, for the next booking. Staff class maintains the data for two types of employees i.e. Administrator and worker. An employee has to enter his/her password before he enters into the system. A worker can only view records of a certain patients by entering his/her name CNIC whereas administrator has the all the rights to add remove/view any patient, doctor, equipment etc. There can be a maximum of two administrators in the hospital. Pharmacy class contains the name, price and quantity of the medicine available. Equipment class maintains the equipment number, price and name of the department it belongs to. Date maintains the check in and checkout dates of the patients. Billing class is invoked at the checkout for each patient. A bill is to be calculated based on the number of days he stayed in a particular room or medicine purchased from the pharmacy. Some sample files are given below: Rooms Room Number 1 2 3 4 5 6 Type Separate Common Economy Common Separate Separate Price /Night 10000 4000 1000 5000 8000 12000 Availability Y Y Y N Y Y Pharmacy Item Name Panadol Disprene Augmentin Flagyi dicloron Quantity 1000 500 100 200 500 Price/10 tabs 10 20 50 30 30 Equipment Item No 1 2 3 4 5 Dept Name Neurology Dentistry Dentistry Neurology Orthopedic Price 1500 25000 35000 2500 5500 Patients Name Khwaja Bilal Hassan Iqbal Nimra Zahid Waqas Mann Hadia Bano Address 94-SM block Ihr 200-A1 johar town Ihr 402-F1 Wapda town Ihr Township Ihr Madina town faisalabad CNIC 34101-2313112-2 34103-2313112-3 34104-2313112-4 34105-2313112-5 34106-2313112-6 Phone Number 0323-3133240 0324-3133241 0325-3133242 0326-3133243 0327-3133244 Staff Name Hunble Ahsan Waqas Waheed Salman Employee Id 101 102 108 110 112 Password 1234 12345 123456 1234567 12345678 Admin Yes No No No No Note: Define appropriate data members and member functions for each class and the relationships between classes. You are allowed to add more classes to your project but at minimum you have to make the classes defined above. Add more functionality to your project, which seems to be logical and practical. Use of dynamic arrays, inheritance, composition, polymorphism and operator overloading is a must. If needed, make appropriate files which store relevant information. Rooms Room Number 1 2 3 4 5 6 Type Separate Common Economy Common Separate Separate Price / Night 10000 4000 1000 5000 8000 12000 Availability Y Y Y N Y Y Pharmacy Item Name Panadol Disprene Augmentin Flagyl dicloron Quantity 1000 500 100 200 500 Price/10 tabs 10 20 50 30 30 Equipment Item No 1 2 3 4 5 Dept Name Neurology Dentistry Dentistry Neurology Orthopedic Price 1500 25000 35000 2500 5500 Patients Name Khwaja Bilal Hassan Iqbal Nimra Zahid Waqas Mann Hadia Bano Address 94-SM block Ihr 200-A1 johar town Ihr 402-F1 Wapda town Ihr Township Ihr Madina town faisalabad CNIC 34101-2313112-2 34103-2313112-3 34104-2313112-4 34105-2313112-5 34106-2313112-6 Phone Number 0323-3133240 0324-3133241 0325-3133242 0326-3133243 0327-3133244 Staff Name Hunble Ahsan Waqas Waheed Salman Employee Id 101 102 108 110 112 Password 1234 12345 123456 1234567 12345678 Admin Yes No No No NoStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started