Diagnosing functional dyspepsia