In my opinion you still have your clean time. Sometimes there are medical reasons that we have to take narcotics. You did the right thing by not wanting to take them. I have been clean and sober 17 months and have had two surgeries during this time. I took the meds at the hospital for the first surgery and came home without any oral meds. The second surgery was bigger and I had to take pain meds at home. It was very difficult but I did not abuse them so I am still clean and sober.
I hope you feel better soon. You can get through this without relapsing.