A process of filtering and removing waste products from the bloodstream. Two main types are hemodialysis and peritoneal dialysis. In hemodialysis, the blood flows out of the body into a machine that filters out the waste products and routes the cleansed blood back into the body. In peritoneal dialysis, the cleansing occurs inside the body. Dialysis fluid is injected into the peritoneal cavity and wastes are filtered through the peritoneum, the thin membrane that surrounds the abdominal organs.