During a large-scale epidemic, a local healthcare system can be overwhelmed by a large number of infected and non-infected patients. To serve the infected and non-infected patients well with limited medical resources, effective emergency medical service planning should be conducted before the epidemic. In this study, we propose a two-stage stochastic programming model, which integrally deploys various types of emergency healthcare facilities before an epidemic and serves infected and non-infected patients dynamically at the deployed healthcare facilities during the epidemic. With the service equity of infected patients and various practical requirements of emergency medical services being explicitly considered, our model minimizes a weighted sum of the expected operation cost and the equity cost. We develop two comparison models and conduct a case study on Chengdu, a Chinese city influenced by the COVID-19 epidemic, to show the effectiveness and benefits of our proposed model. Sensitivity analyses are conducted to generate managerial insights and suggestions. Our study not only extends the existing emergency supply planning models but also can facilitate better practices of emergency medical service planning for large-scale epidemics.