A pyonephrosisis an accumulation of pus in the cavity of the kidney, especially in the renal pelvis. This leads to a decrease in mass of the parenchyma.