If you have had this problem for as long as you say the doctor is the only one who can diagnose the reason. Pitting edema can be a symptom of quite a few things as can blood in the urine. If your doctor hasn't diagnosed the problem ask to be referred to the correct specialist who can.
Good luck...