The differential diagnosis for anthrax includes mycoplasma pneumonia, Legionnaire's disease, psittacosis, tularemia, Q fever, viral pneumonia, histoplasmosis (fibrosing mediastinitis), and coccidioidomycosis.