In some cases, x-rays or ultrasound exams may be needed to find an underlying cause of edema. Blood and urine tests may also be used.