Thank you for the query.
Black vomit can indicate bleeding from stomach (from the place where the esophagus
and stomach or intestine were connected, from peptic ulcers). You never know how serious is the bleeding as in the stomach and intestines there is a lot of space for blood accumulation. That is with such symptom, it is strongly advisable to visit ER and have emergency endoscopy
His urinary tract infection
should be diagnosed with urine culture test to get to know what kind of bacteria does he have and which antibiotics will be most effective.
Such long lasting urinary tract infection might also need urologist
consult and some additional tests should be performed.
Hope this will help.