A Data-Driven Optimization Model for Medical Resource Allocation during the Pandemic