The present invention provides for methods and systems for the treatment and diagnosis of Hirschsprung-associated enterocolitis. Treatment of Hirschsprung-associated enterocolitis can include providing and administering an antifungal agent or a combination of an antifungal agent and an antibiotic. Diagnosis of Hirschsprung-associated enterocolitis can include the detection of fungal species by way of qPCR.