the thinning of renal cortex
could be due to urinary obstruction secondary to kidney
Presently you need to look if the obstruction still present by doing sonography
or CT scan
An IVP may give information about renal function and obstruction.
If obstruction is there it needs to be surgically treated.
Also take an antibiotic course if urine infection present in consultation with your doctor.