A 38-year-old woman with a BMI of 37 kg/m² has poorly controlled type 2 diabetes and obstructive sleep apnoea despite intensive lifestyle changes and optimised medical therapy. According to obesity management guidelines, which of the following is an appropriate indication for considering bariatric surgery?