Abstract

In China, emergency room residents (EMRs) generally face high working intensity. It is particularly important to arrange the working shifts of EMRs in a scientific way to balance their work and rest time. However, in existing studies, most of the scheduling models are based on the individual doctor or nurse as a unit, less considering the actuality of operation and management of emergency department (ED) in large public hospitals in China. Besides, the depiction of the hard and soft constraints of EMR scheduling in China is insufficient. So in order to obtain the scientific and reasonable scheduling shifts, this paper considers various management rules in a hospital, physicians’ personal preferences, and the time requirements of their personal learning and living and takes the minimum deviation variables from the soft constraints as the objective function to construct a mixed integer programming model with the doctor group as the scheduling unit. The analytic hierarchy process (AHP) is used to determine the weights of deviation variables. Then, IBM ILOG CPLEX 12.8 is used to solve the model. The feasibility and effectiveness of the scheduling method are verified by the actual case from West China Hospital of Sichuan University. The scheduling results can meet the EMRs’ flexible work plans and the preferences of the doctor teams for the shifts and rest days. Compared with the current manual scheduling, the proposed method can greatly improve the efficiency and rationality of shift scheduling. In addition, the proposed scheduling method also provides a reference for EMR scheduling in other China’s high-grade large public hospitals.

1. Introduction

The emergency department (ED) is not only a rescue department for severely ill patients but also a window for a hospital. The medical technology level and service quality of the ED are important aspects of social evaluation of hospitals. As the key department to provide all kinds of critical life support for patients, the ED must be open for 24 hours a day, 365 days a year. So the emergency room residents (EMRs) must work more shifts, often working at night and on weekends. In China, the day shift or the night shift of emergency room doctors is for up to 12 hours. Heavy work intensity and long shift time result in EMRs prone to fatigue, anger, pain, resentment, and other bad emotions [1, 2]. A study shows that 24.5% of emergency physicians are not satisfied with their current work [3]. In China, in recent years, because of the influence of patients’ health-seeking habits and rapid growth of patient visits (reaching as much as 810 million in 2017), EMRs in some advanced large public hospitals with good technical equipment condition are more stressed in face of a large flow of emergency patients everyday, such as West China Hospital of Sichuan University (WCH). WCH is one of the largest single-site hospitals in the world and also a leading medical center in China. In the ED of WCH, patient attendance hits 250 thousand, and over 60 thousand patients are rescued from certain death every year. In addition, as a research-oriented hospital, the EMRs of WCH take on the tasks of scientific research, teaching, and instructing students. Therefore, the ED in the most of the large public hospitals in the metropolis of China, represented by WCH, is often one of the most stressful, challenging, and high turnover departments in such hospitals [1, 4]. Therefore, in order to reduce the work pressure of EMRs and balance the work and rest time, it is particularly important to arrange the working time of emergency physicians in a scientific way. The effective arrangements for EMRs are helpful to improve the quality of medical service, optimize the management mechanism of the hospital, and alleviate the conflicts between doctors and patients [5].

The scheduling problem of medical staff is a combinatorial optimization problem. The current research mainly focuses on general medical departments, especially the nurse scheduling problem in these departments [68]. In these research studies, some soft and hard constraints are considered, including the policies of the state, rules of the hospital, and personal needs of doctors and nurses [9]. The 0-1 integer programming model, mixed integer programming model, and the goal programming model [1013] are constructed, and the exact algorithm and heuristic algorithm are used to solve them. Musa and Saxena [14] proposed a single-stage goal programming scheduling model based on the hospital scheduling rules and the preferences of nurses. Franz and Miller [15], based on the actual situation of a large hospital, constructed a mixed integer programming model for doctor scheduling and used a bounded heuristic algorithm to get the scheduling table and put forward the adjustment strategy based on the result of the solution. Azaiez and Al Sharif [16] established a 0-1 programming model based on the constraints of the hospital regulations (nurses’ skills and numbers) and the nurses’ preferences (arranging night shifts and weekend shifts equally and avoiding the isolated rest days). Li et al. [17] set up a multiobjective scheduling model based on nurse rostering with many soft and hard constraints and put forward a new time-predefined metaheuristic approach called the falling tide algorithm. Bruni and Detti [18] proposed a mixed integer linear programming model that met the requirements of medical services, management rules, and personal preferences. The Branch-and-Cut procedure was used to obtain the minimization of the number of total shifts and dissatisfied shifts.

However, the problem of emergency doctor scheduling has not received much attention, and only few scholars have made preliminary exploration [19, 20]. Beaulieu et al. [21] took 6 months as a shift cycle to establish the multiobjective programming model considering the doctors’ working time, the number of night shifts, and the doctors’ seniority levels. The decomposition strategy can handle up to 20 doctors, but the actual scheduling table is not shown. El-Rifai et al. [22], based on the characteristics of emergency dynamic demand, set up a stochastic mixed integer programming model to achieve the best balance between the quality of service and the intensity of doctors’ work. According to the fact that the patients’ arrival rate is dynamic and random, Xie et al. [23, 24] used the M/M/C queuing theory to estimate the patient’s waiting time in the system of dynamic demand and then constructed the mixed integer programming model for EMR scheduling to obtain a flexible shifting scheme. Besides, the data mining analysis is used to improve scheduling of EMRs [25].

To conclude, in the existing research, most of the scheduling models are based on the individual doctor or nurse as a unit, less considering the actuality of operation and management of large public hospitals in China. Besides, the depiction of the hard and soft constraints of EMR scheduling in China is insufficient. So in this paper, we consider various management rules in a hospital, physicians’ personal preferences, and the time requirements of their personal learning and living to arrange their work shifts. In addition, according to the current hospital management situations in China, the doctors are divided into groups, and the multiobjective programming model is constructed to schedule physicians by groups in the emergency room. Finally, the validity of the model is validated by taking WCH as an example. The research results are expected to provide some references for scheduling EMRs in other China’s high-grade large public hospitals.

This paper is organized as follows: Section 2 proposes the multiobjective scheduling model. Section 3 gives a case study about EMRs of WCH. Results and management implications are given in Section 4. At last, the conclusions and future research directions are proposed in Section 5.

2. Methods

The EMRs in largest public hospitals in China are usually divided into some groups (no less than three groups). These EMRs fall into two categories: first-class doctors and second-class doctors. The work shifts include day shifts (8 a.m. to 8 p.m.), strengthen shifts (including two time intervals, 8 a.m. to 3 p.m. and 2 p.m. to 9 p.m.), and night shifts (8 p.m. on the first day to 8 a.m. on the second day). Only one doctor group works in the day shift or night shift or strengthen shift. So three doctor groups are scheduled everyday. The doctor group scheduling model is constrained by the hard constraints (national laws and hospital regulations) and soft constraints (doctors’ personal preferences and flexible work rules). So taking one month as a cycle (30 days), how to schedule the doctor groups into different work shifts is a challenging problem.

In addition, considering the rationality, fairness, and humanization of EMR scheduling, some assumptions are made as follows:(i)The constraints of the scheduling model are in line with labor laws in China and regulations(ii)Each doctor corresponds to a seniority level. There is no difference in the quality of work between doctors at the same level(iii)The difference of the workload of doctors at the same level in the same scheduling period is as small as possible(iv)The number of night shifts must be scheduled fairly and reasonably(v)Doctors’ personal research and teaching hours, expected rest days, and preferences for different shifts should be satisfied as much as possible

In this study, a multiobjective programming model is proposed, and the model is divided into two stages. In the first stage, the doctors are assigned to some medical teams. The doctors who want the same rest days at most are assigned into a group as much as possible. And each group must include a first-level doctor for the needs of internal exchange and learning each other within a group. In addition, the number of doctors in each group is as equal as possible. The result of grouping is obtained by the genetic algorithm. In the second stage, the assigned teams are scheduled to meet the requirements of soft and hard constraints, especially to satisfy the soft constraints as far as possible. This paper will focus on the second stage to solve the medical group scheduling problem.

2.1. Definition of Parameters and Variables

In order to construct the model, the parameters and variables shown in Tables 1 and 2 are applied.

2.2. Setting the Constraints of Formulation

According to the investigation of the ED of the largest public hospitals in China and the analysis of various factors that affect EMR scheduling, the constraints of EMR scheduling are obtained. According to whether or not the constraints must be satisfied, the constraints of EMR scheduling are divided into hard constraints and soft constraints. Hard constraints refer to the conditions that must be met in any scheduling environment; otherwise, the scheduling scheme is not feasible. Hard constraints mainly include the labor regulations and hospital management systems. Soft constraints refer to the preferences of doctors for work shifts and flexible working rules in the scheduling period.

The hard constraints of the model are as follows:

Hard constraints meet national laws, hospital regulations, work shifts, and working hours for doctor groups and restrictions on the number of doctor groups per shift per day. Formula (1) defines that each doctor group can only be assigned one shift in a day. Formula (2) indicates that a doctor is assigned a night shift and that no day shift or strengthen shift can be scheduled to the same doctor team the next day. Formula (3) defines that the number of doctor groups per shift should be within a certain range during the shift period. Equation (4) defines that the number of doctor groups assigned to all shifts per day should also be within a certain range in the scheduling cycle. Formula (5) defines the uniform distribution of the night shifts of doctors at the same level during the shift period. Formula (6) shows that no doctor group can be assigned any shifts during the expected rest days in the shift period. The soft constraints of the model are as follows:

The soft constraints meet the flexible working rules and the doctor groups’ preferences for the shifts and expected rest days. The formula (7) ensures that any one doctor group cannot be assigned two night shifts in a row during the scheduling period. If the values of the positive deviation variables and from the constraint (7) are 1, the doctor group will work in three consecutive night shifts. To avoid this situation, the positive deviation variables of the constraint (8) should be given an optimum value to minimize the positive deviation variables from the constraint (7). The formulas (9) and (10) and the formulas (11) and (12) express a similar meaning to the formulas (7) and (8). The constraints (13) and (14) define that a physician group in the scheduling period has at least one full holiday weekend including Saturday and Sunday. On the basis of four weeks in the scheduling period, the value of the negative deviation variables from the constraint (15) is also 1 in reference that the value of the binary variable is 1 every week. In other words, a group of doctors in the scheduling period do not have continuous rest days including Saturday and Sunday. To make any of a physician group have complete rest days on Saturday and Sunday, the deviation variables should be minimized. The constraint (16) defines that the workload of every doctor group is evenly arranged as much as possible.

2.3. Building the Objective Function of the Formulation

The objective function of the model is as follows:

The objective of this model is trying to meet most of the soft constraints and minimizing the deviation variables from the soft constraints. The deviation variables have different weight values according to the importance of the soft constraints. In this paper, each deviation variable is given a weight value which is gained by the application of the analytic hierarchy process (AHP). Suppose the value of the weight is .

3. Case Study

Take the No. 1 resuscitation room in the ED of WCH as a background. The composition of the doctors is shown in Table 3.

Twenty-five emergency room doctors are replaced by numbers 1∼25, of which 1∼5 and 6∼25, respectively, refer to the doctors with seniority level 1 and seniority level 2. The scheduling period is 30 days. The expected rest days of each doctor are shown in Table 4. The values of expected rest days are blank, which indicates that the corresponding doctors have no requirements of the expected rest days. Because each emergency room resident is facing many tasks simultaneously, including treating patients, scientific research, teaching, and instructing students, it is normal for different EMRs to expect different rest days.

According to the above parameters, firstly, the doctors with the same expected rest days are assigned to a group. According to the expected rest days of each doctor in Table 4, the results of grouping and arrangements of expected rest days are shown in Table 5. The number in bold indicates that the EMRs have the expected leave dates in Table 5.

4. Results and Management Implications

Firstly, the AHP is applied to gain the weight values of the deviation variables. Then, the CPLEX solver is used to obtain the scheduling table.

4.1. Application of AHP to Gain the Deviation Variable Weight Values

The criterion layer is the soft constraint of the model. The criteria are as follows: : no two consecutive night shifts. : no more than two consecutive night shifts. : no three consecutive day shifts. : no more than three consecutive day shifts. : no continuous three strengthen shifts. : no more than three continuous strengthen shifts. : at least one complete weekend. : average arrangement of each doctor’s workload.

The comparisons between any two factors of the above eight factors are made by the EMRs. A total of 25 score tables are issued, and 21 of them are successfully recovered. These collected score tables include 5 copies from 5 doctors at high seniority levels () and 16 copies from 16 doctors at average seniority levels (). According to the data of marking tables from 21 doctors, the weighted average formula is used to calculate the degree of importance of each constraint. Meanwhile, different weight values of doctors at the high and the average seniority level are also considered. The marking tables are only distributed to the doctors individually, and finally, the doctor group scores can be obtained through these tables.

is defined as the score of importance. shows that the two factors compared are equally important. , respectively, indicates that one factor is important, strongly important, very strongly important, and extremely important than the other. On the contrary, indicates that one factor is extremely less important than the other. indicates intermediary values. Suppose that the number of doctors at the seniority level is . The total number of doctors at the seniority level who select the importance degree is . The rank weight of doctors at the seniority level is . The average scores from doctors at all levels can be obtained according to the weighted average by the following equation:

Finally, the degree of importance of each soft constraint can be obtained by using the following equation:

Pairwise comparison of the soft constraints from 21 score tables and factors’ relative importance values are shown in Table 6 ().

According to Table 6, the judgment matrix A is obtained as follows:

The root method is applied to calculate the weight value of each criterion element as follows:

The maximum eigenvalue of matrix A is .

The consistency index of judgment matrix A is found by

The random index is used as the consistency index when the matrix entries are absolutely random. Values of the random index are presented in Table 7 [26].

As the consistency evaluation index, the consistency ratio is expressed as follows:

Referring to Table 7, when , . Then, . So matrix A does not have satisfactory consistency.

After 30 corrections by the induced matrix modification method, the new judgment matrix is as follows:

The new weight value of each criterion element is obtained as follows:

The maximum eigenvalue of matrix is .

. So matrix meets the requirement of satisfactory consistency. The objective function of the scheduling model can be gained, which is as follows:

4.2. Using CPLEX Solver to Obtain the Scheduling Table

Considering that the mathematical model is the MILP model, the numbers of variables and constraints are small, and the data scale in this case is also small, it is appropriate to use the CPLEX solver to solve the problem. The multiobjective scheduling model was solved using IBM ILOG CPLEX 12.8 on a computer with 2.30 GHz Intel i5 processor and 64-bit 8.0 GB RAM. The solved model includes 1,310 binary variables, 10 integer variables, and 1,475 constraints. The computational time is 2.26 s.

The scheduling table is shown in Table 8. Assume that number 1 is Monday and 6 and 7, 13 and 14, 20 and 21, and 27 and 28 are weekends (represented by asterisk in Table 8). The dark shade part in Table 8 shows the expected rest days of each group. The columns BC and YB in the table show the number of total shifts and night shifts for each doctor group during the scheduling period, respectively. The doctor groups with the pentagram do not have a complete weekend. The horizontal line in Table 8 indicates that the number of consecutive shifts is more than 5 days.

Some results can be obtained by comparison of the above scheduling table with the soft constraints of the model (see Table 9). The facts of two or more consecutive night shifts and three or more consecutive day shifts and strengthen shifts do not exist in the scheduling program. Besides, the expectations of doctors for rest days are fulfilled. The soft constraint that the total shifts of the doctors at each seniority level are evenly scheduled is also generally met. Therefore, the scheduling program with the doctor group as a unit satisfies the soft and hard constraints of the model. The feasibility of the multiobjective programming model is also verified.

In the current situation in the No. 1 resuscitation room in the emergency department of West China Hospital of Sichuan University, it takes 1-2 days to construct a one-month schedule manually by trial and error. Using the proposed method in this paper, a high-quality schedule is generated in reasonable time. Besides, there may be some limitations through manual scheduling that some soft constraints cannot be satisfied. On the contrary, the scheduling result by the proposed model can be obtained in reasonable time, which can better meet various management rules in a hospital, physicians’ personal preferences, and the time requirements of their personal learning and living. Therefore, the proposed model can greatly improve the efficiency and rationality of shift scheduling for China’s high-grade large public hospitals.

5. Conclusions

Doctors are the most important medical resources in a hospital. EMRs undertake the long and intensive work. Scientific and reasonable scheduling shifts are of great significance for relieving work pressure and improving the quality of medical service. Based on the actual situation of the ED in China’s high-grade large public hospitals and the fact that most of the scheduling models are based on the individual doctor as a unit and that the depiction of the hard and soft constraints of EMR scheduling in China is insufficient in the existing research, a multiobjective programming model with the doctor group as the scheduling unit is proposed aimed at satisfying the doctors’ personal preferences as the soft constraint under the national laws and hospital rules. The mathematical model of the scheduling problem is to satisfy more soft constraints as far as possible. The CPLEX solver is used to obtain the scheduling table. The scheduling result satisfies the doctors’ personal preferences. The feasibility and effectiveness of the method are verified by the actual case from West China Hospital of Sichuan University. The methods and ideas for scheduling EMRs can be applied to other hospitals all over the world.

Nonetheless, there are some limitations in this paper, and future research may expand further. In this paper, the AHP is applied to compute deviation variable weight values. However, the AHP is a decision-making method simulating the human brain, and it has strong subjectivity. Future research may seek more objective methods to obtain the weight values. Besides, the doctors’ preferences for different shifts as the soft constraint may be considered further. Moreover, because the scheduling of the EMRs is influenced by various factors, exploring the factors that affect EMR scheduling and the index of the doctor’s satisfaction further is also the direction of future research.

Data Availability

The data used to support the findings of this study are included within the article.

Conflicts of Interest

The authors declare that there are no conflicts of interest regarding the publication of this paper.

Acknowledgments

This work was supported by the Natural Science Foundation of China (grant numbers 71532007, 71131006, and 71172197) and Key Research and Development Program, Science & Technology Department of Sichuan Province (grant numbers 2017SZ0007 and 2019YFS0385). We would like to thank the emergency physicians of West China Hospital of Sichuan University for their assistance in the investigation.