Debilitated or immunocompromised patients may develop viral or fungal gastritis with cytomegalovirus, candidiasis, histoplasmosis, or mucormycosis; these diagnoses should be considered in patients with exudative gastritis, esophagitis, or duodenitis.