Flexible endoscopy is usually a painless process and does not require general anesthesia, making it safer for most patients. This method is used for the diagnosis and treatment of various diseases.