FGF21, age, T2DM duration, HbA1c, TG, and eGFR are risk factors for HP in the model adjusted by general and biochemical parameters. Here, FGF21 is linked to type 2 diabetes mellitus.