Poor diet quality and food diversity was associated with higher risk for severe symptoms in patients with IBS.