Control of viral infections in hospitals