In recent years, with the development of society and the improvement of the level of science, education, culture and health, the medical industry has occupied an increasingly important position in people lives, and a more comfortable and efficient medical experience has also become the common goal pursued by major hospitals. As an important department of the hospital, the emergency department receives patients with urgent conditions, relatively serious conditions, and a large number of patients, so it is of great significance for both patients and hospitals to improve the quality and experience of medical services in the emergency department. This article has found some ways to improve the quality of care by using Anylogic to simulate the emergency department.