Sort staff roster by seniority. Highest to lowest. If this is not possible this is noted within the roster that for this day this individual was not scheduled and the code continues trying to schedule according to the roster. Once everyone has had a chance to be placed on the schedule, those individuals marked or noted with available shifts are used to fill vacancies within schedule. Once again by seniority, and for each person with unscheduled days, the preferred shift is identified from roster and any vacancy is filled according to skill and location.
Any day is selected as long as the preferred shift is honored.
If individuals remain with unscheduled days and if there are vacancies within the schedule, they are marked for the scheduling coordinator to evaluate. These constraints will probably have to be evaluated during the creation of schedule, to minimize vacancies. Grading of schedule done by counting the number of vacancies and perhaps the number of unscheduled work shifts of resident staff. See table 6. This table identifies each of the six different locations and the shift requirements for nursing staff.