You may be right on track, but because you mention swelling in legs, I want to mention something important that I see here way too often.
Edema in legs, particularly in lower legs or ankles, can be protein malnutrition, which is a big deal. Make sure your doctor runs COMPLETE blood work and checks all protein markers. I have been told we have not had complete labs drawn unless there were 18+ vials of blood drawn. Mine are more like 22.
Some times dingle berries are the lowest hanging fruit.