Your doctor may recommend surgery to determine a diagnosis. Your doctor may also recommend surgery to treat a condition if lifestyle measures and medications are not adequate. There are several adult surgeries that may be performed for diagnosis and treatment.