hemodialysis is a procedure in which blood is removed from the body through a system of tubing , ultrafiltered through a dialyzer , or artificial kidney , and then returned to the body cleansed of waste products and impurities .