The health care system is characterized by limited resources, including the physical facilities as well as skilled human resources. Due to the extensive fixed cost of medical facilities and the high specialization required by the medical staff, the problem of resource scarcity in a health care supply chain is much more acute than in other industries. In the pandemic of the Coronavirus, where medical services are the most important services in communities, and protective and preventive guidelines impose new restrictions on the system, the issue of resource allocation will be more complicated and significantly affect the efficiency of health care systems. In this paper, the problem of activating the operating rooms in hospitals, assigning active operating rooms to the COVID-19 and non-COVID-19 patients, assigning specialty teams to the operating rooms and assigning the elective and emergency patients to the specialty teams, and scheduling their operations is studied by considering the new constraints of protective and preventive guidelines of the Coronavirus. To address these issues, a mixed-integer mathematical programming model is proposed. Moreover, to consider the uncertainty in the surgery duration of elective and emergency patients, the stochastic robust optimization approach is utilized. The proposed model is applied for the planning of operating rooms in the cardiovascular department of a hospital in Iran, and the results highlight the role of proper management in supplying sufficient medical resources effectively to respond to patients and scheduled surgical team to overcome the pressure on hospital resources and medical staff results from pandemic conditions.