title: Programming medical rosters in Prolog.
abstract: The Logic Programming language, Prolog, is used to schedule the medical duty roster for a French psychiatric hospital. Each of the seventeen doctors participating is asked to fill in a form indicating his preferences (prefers, can or cannot) for the slots (days and weekends) of a roster covering a period of three months. An algorithm has been designed which seems to produce an optimal solution, in the sense that as many participants as possible are satisfied. First of all, the program fills in the 'preferred' slots, then the 'possible' slots and finally the 'not-impossible' slots. A number of constraints are applied: two consecutive roster slots are not allowed and the number of allocations is limited for each person. If more than one person is a candidate for a given slot at a given preference level, then a probabilistic conflict resolution procedure is put into action. Prolog, which is modular and easily modifiable, seems, with its declarative interpretation and backtracking mechanism, to be well adapted to the solution of such problems.
authors.affiliation: Centre Hospitalier Spécialisé, Bourges, France.
authors.forename: S
authors.initials: S
authors.lastname: Rosenberg
mesh_terms: D000465:Algorithms; D005602:France; D006778:Hospitals, Psychiatric / Q000458:organization & administration*; D008331:Management Information Systems; D010562:Personnel Staffing and Scheduling Information Systems; D011381:Programming Languages