Data I leave start time and end time is time format 08:00,
CodePudding user response:
You play this registration system is a bit false oh, appointments are not can choose a doctor? You give another whole internship you ask about?Will build a source queue, according to the doctor array loops and sa, generating new source collection each doctor's number
CodePudding user response:
Source specified time evenly by number? What do you mean? If the booking have 20 people, there are four doctors, are you going to each doctor divide five people??????? Or is it an average 20 people in time intervals, give to the doctor?Want to know what everyone sees a doctor time are not sure! Light is in accordance with the time, no good,
And natural need to be able to choose a doctor appointment,
So if there are five doctors and largest set every day, every doctor appointment number (the number can be through the investigation, ask the doctor to arrive at a number of average accepts a doctor one day, and the number can be set, or one thousand, one day, a doctor on early in the morning go to work, only accepts the number is assigned a day the day before, how the whole?)
If every doctor accepts number is 10 people, a day on average at the time of users online booking, if specified the doctor, to add the user information to doctors in the queue, doctor number minus one, which the doctor, if users have no choice, as the number of doctors have to make an appointment to the lowest height were allocated,
Such as the number of doctors have to make an appointment for 3.4.3.5.6, so your algorithm should be will be randomly added to the user accepts the number 3 in the queue,
Day accepts the total number of rules, the most complex is to set up a doctor's specific time,
Just like you said, three hours 20 minutes in the morning, afternoon three hours 20 minutes, if there are 20 people, how to set the doctor who is to come in the morning or afternoon? So with an average of only five in the morning, five in the afternoon, and consider the last one time is enough, for example, a doctor accepts five people in the morning, has examined four people, but is now 11.15, is about to take off work, people still need to continue to accepts the last?
CodePudding user response:
Source specified time evenly by number? What do you mean? If the booking have 20 people, there are four doctors, are you going to each doctor divide five people??????? Or is it an average 20 people in time intervals, give to the doctor?Want to know what everyone sees a doctor time are not sure! Light is in accordance with the time, no good,
And natural need to be able to choose a doctor appointment,
So if there are five doctors and largest set every day, every doctor appointment number (the number can be through the investigation, ask the doctor to arrive at a number of average accepts a doctor one day, and the number can be set, or one thousand, one day, a doctor on early in the morning go to work, only accepts the number is assigned a day the day before, how the whole?)
If every doctor accepts number is 10 people, a day on average at the time of users online booking, if specified the doctor, to add the user information to doctors in the queue, doctor number minus one, which the doctor, if users have no choice, as the number of doctors have to make an appointment to the lowest height were allocated,
Such as the number of doctors have to make an appointment for 3.4.3.5.6, so your algorithm should be will be randomly added to the user accepts the number 3 in the queue,
Day accepts the total number of rules, the most complex is to set up a doctor's specific time,
Just like you said, three hours 20 minutes in the morning, afternoon three hours 20 minutes, if there are 20 people, how to set the doctor who is to come in the morning or afternoon? So with an average of only five in the morning, five in the afternoon, and consider the last one time is enough, for example, a doctor accepts five people in the morning, has examined four people, but is now 11.15, is about to take off work, people still need to continue to accepts the last?
CodePudding user response:
This is a question of business logic, you should let the people hospital assign you a method, you have to do is use program implementation,CodePudding user response:
My suggestion is that doctors in scheduling sequence (including doctors basic information, etc.), make an appointment and time should be given to the background management, by the user's own custom operation, such as the functional department yourself time to dynamic scheduling doctor and the doctor, this is the background data set, as for the front end is the data display is ok, you don't need to pipe the family business how to develop, you can set how they want to decide,CodePudding user response:
Business direction different hospitals and scheduling of things is not the same, and this is not the product comforms to the drawing is not clearCodePudding user response:
This is demand research, rather than you [think] how the problem of how to do, namely the customer put forward concrete process (business), you use the program to realize, don't be taken for granted to help their clients to think of the business,