need advice asap

i had a doctors apt today with my obgyn ive been having back pain and trouble peeing i was diagnosed with kidney infection and givin antibiotics my back pain is still there not getting better or worse should my doctor had sent me to hospital to get more test done or did she do the right thing by just prescribing me antibiotics im scared this can become worse and i could of prevented it by takin my slef to the hospital even though i was told to just take antibiotic toention i have not peed all day but once and i have been drinking water like crazy what should i do?