Pain pills affect period?

Amber

I have been on pain meds since August 4th when I broke my leg and then had surgery. My period is really late, but I know that I am not pregnant because the doctors tested me multiple times and I haven't had sex since the last negative test. Do you think that maybe the pain pills might have caused this? I know that the pills have slowed down other systems in my body (tummy issues). Would love some insight.