A two-phase integrated approach for elective surgery and bed management problems