I'm curious about the UTI (only b/c my daughter was mistakenly diagnosed several times with UTI, yeast infection, etc.. and it was none of that-- common constipation was causing impacted feces to press against her bladder causing painful spasms).
As far as the medicine... does she normally protest about taking medicine? My children have always been great medicine takers, even when it tastes yucky, which most of it does. Usually the dosage is administered not with a dropper, but with a plunger/syringe thingee. They are always given a cup of something to drink to hold in one hand while I "shoot" the medicine in their mouth, so they can IMMEDIATELY follow it with the drink to help wash the taste away. Be sure that you are not "asking" her if she is ready for her medicine or any of those common "traps" that we can unwittingly fall into. Tell her it is time, then explain (matter-of-factly, not apologetically) how it will happen. My suggestion is to tell her (also matter-of-factly) that once she's taken it, she will receive ___ (whatever you want to reward her obedience in taking this offending medication - 3 M&Ms, a lifesaver, a book being read to her, whatever). You have to be really careful about making it sound like she has any option about taking the medicine (she doesn't), but reward, reward, reward her for doing it without an argument. That is how I have always approached dispensing medication with my kids.. even when it is drops in the eye for pink eye, or drops in the ear for ear infection/perforated ear drum, or saline spray up the nose with sinus infections.
Hope she is well soon.