A case study in how to prevent a pandemic.