Diagnosis of functional dyspepsia typically involves a thorough clinical evaluation, including a detailed medical history and physical examination. Laboratory tests, imaging studies, and endoscopy may be performed to rule out organic causes of the symptoms. The diagnosis is often one of exclusion, made when no structural abnormalities are found.