Blood in urine can be a serious trouble, the commonest cause being infections and stone and sometimes cancer too. you need to get yourself thoroughly evaluated with urine test, and ultrasound
and an xray kub.ultrasound will also help out to rule out the troubles in your abdomen like as you said bloating
of stomach.one other aspect which is serious is that you were on pain medication which can cause bleeding from stomach because of gastritis
which can be a cause of your bloating of stomach.take care and regards.