Question

In a hospital there are a number of department based on disease. Major department exist are...

In a hospital there are a number of department based on disease. Major department exist are Dermatology, Cardiology, Gynecology, Pathology, etc. Each department is capable to serve the patient in increasingly fair manner. To avail the treatment facility, patient visits to the relevant department where (s)he is allotted a token number. Allotment of token number is purely on the basis of arrival time. Separate queue is maintained for each department. Hospital maintains the following information about the patient.

Based on the above information, solve the following challenges the hospital has to encounter.

i. Allot the unique token number to each patient.

ii. Store all the information related to the above field.

iii. Total number of patient in a particular queue.

iv. How many patients arrive in a day (you can take the average of week or month)?

v. Which type of data structure is preferred by you? Explain its advantages over any other data structure which you may consider near appropriate

Homework Answers

Answer #1

I would prefer to solve this problem in object oriented style where we use class, object and queue data structure concept.

Since there are multiple departments, we need to create class for each department. For example if we take cardiology department, the class struture will be as follows:

Class Cardiology:
ii)Attributes : 1)Token Id, 2) Patient name 3)Appointment Date: Current date 4)Patient Age etc.

So as per the above we need to create classes for the remaining departments with appropriate attribues.

When ever a patient arrives to lets say for Cardiology department, we need to create object for cardiology class and instatiate it with proper attribues.

The object thus create is pushed in to Queue data structure,

v)We are using Queue here because queue works on the concept of First Come First Serve Basis, So here in this scenario, since patients have to be served depending on their arrival time, the patient who comes first will have to be served first. This is the main advantage of queue compared to other data structures.

The patient objects which are pushed first are pulled from queue first.

i) In order to allot unique token number to each patient we can use global variable. whenever a patient object is created global variable is incremented and instantiated to token id attribute of the patient object.

iv)In order to get number of patients visited in particular day , we can pull out the patient objects and filter them according to date and then adding them will give total count of patients.

Thanks


Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
The scenario for this assessment is a multi-specialty hospital system, the Royal Rundle Hospital (RRH), that...
The scenario for this assessment is a multi-specialty hospital system, the Royal Rundle Hospital (RRH), that provides a broad range of services to the community which include surgical, maternity, obstetric care, dialysis, emergency, mental health, aged and palliative care, allied health services and a 24-hour emergency department. The RRH has been serving in the region for over 50 years and has been using paper-based forms and documents to store and manage all the data with some use of spreadsheets that...
You have been asked by the Royal University Hospital to assist in estimating their cost structure...
You have been asked by the Royal University Hospital to assist in estimating their cost structure so that management is better able to plan and control the business affairs of the Magnetic Resonance Imaging (MRI) department. The manager of the MRI department has asked you to assist in classifying the utility costs. Utility cost are very high in the department given that the MRI machine cannot be turned off due to the long warm-up period required for its use. When...
7. You have been asked to develop a capitation rate for a primary care group based...
7. You have been asked to develop a capitation rate for a primary care group based on the following projections: Service Annual Frequency/1,000 Cost per Service Inpatient Visits 100 $7,000.00 Office Visits 3,000 $45.00 Lab/X-ray 500 $25.00 What per-member per-month (PMPM) rate would be required to break even, ignoring any copayments? Use the information from the previous problems in solving problems 8 and 9. Assume that you are the hospital administrator and that the health plan has offered you a...
Assume there is treatment for Disease X and costs related to this treatment is given below:...
Assume there is treatment for Disease X and costs related to this treatment is given below: (3 points) Service Costs Travel cost to specialized testing site $75 Wage loss due to time off to get treatment $250 Treatment covered by health insurance plan $500 Out-of-pocket medical cost for treatment $200 Emotional pain $200 Calculate the total costs from the societal perspective Calculate the total costs from the healthcare insurance perspective Calculate the total costs from the patient perspective? 3Is the...
1. Summarize in a few sentences what Ayers found about pricing strategies in car markets. 2....
1. Summarize in a few sentences what Ayers found about pricing strategies in car markets. 2. Do you think that this is a profit maximizing strategy? Do you think this is an appropriate and reasonable strategy for businesses to undertake it it increases their profits? 3. Can you think of other goods or services that could be - or are - priced the same way? Check out the article on discrimination in coffee shops "Waiting for Good Joe" for some...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary rivals? How will the acquisition of Reebok by Adidas impact the structure of the athletic shoe industry? Is this likely to be favorable or unfavorable for New Balance? 2- What issues does New Balance management need to address? 3-What recommendations would you make to New Balance Management? What does New Balance need to do to continue to be successful? Should management continue to invest...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how the firms resources incompetencies support the given pressures regarding costs and local responsiveness. Describe entry modes have they usually used, and whether they are appropriate for the given strategy. Any key issues in their global strategy? casestudy: Atlanta, June 17, 2014. Sea of Delta employees and their families swarmed between food trucks, amusement park booths, and entertainment venues that were scattered throughout what would...