How do border management policies impact the movement of foreign nationals during health crises like SIR?

Given the recent departure of Bangladeshi nationals through the Hakimpur border due to SIR fears, I want to understand how India's border management adapts to sudden health emergencies and balances humanitarian and security concerns.