A nephrostomy will drain urine from a blocked kidney or blocked ureter into a bag outside the body.