The New York City Health Department had confirmed 23 cases and 17 hospitalizations associated with a respiratory infection.