Application of a patient flow model to a surgery department