Thanks for your query.Based on the facts that you have posted it appears that you have undergone Hysterectomy
very recently and has difficulty in passing urine with slight hematuria
There is oedema of the all the pelvic organs after hysterectomy and that is the reason for these problems.
Your Dr might have prescribed you antibiotics an anti inflammatory medicine while discharging you from Hospital
Continue taking it for 2weeks .All these issue will get resolved in 2 weeks.