A general guide would be if it's serious enough for antibiotics you probably shouldn't be flying. More seriously, the painkillers, especially if strong are very likely to affect your alertness.
This forum is not the right place to seek fly/no-fly advice. You ALWAYS need to ask your AME in such cases. Please don't fly until you've been cleared to do so by him.