the patient's blood passes over a partially permeable membrane in the machine that is designed to replicate the kidney tubules. The dialysis fluid is on the other side of the membrane. A concentration gradient is established, allowing excess ions and urea to diffuse from an area of high concentration in the patient' blood to an area of low concentration in the dialysis fluid.