Hi , will try my best to answer your query,
Your symptoms of pain and passing of blood during micturation called heamturia, may be due to urethral or renal stones
or urinary tract infection
. Don't neglect consult your doctor and get an ultrasound
done to rule out urethral stones and urine examination to rule out any infection.I advice you to drink plenty of water .
Get well soon