It is better in cases as epidemics to buy hospital equipment by Sadaqah (optional charity).

Then, if the Sadaqah money is not sufficient to buy the required equipment, we can take the remaining money from Zakah.