Systems and methods for hemodialysis or peritoneal dialysis having integratedelectrodeionization capabilities areprovided. In an embodiment, the dialysis system (10) includes a carbon source(40), a urease source (50) and an electrodeionizationunit (30). The carbon source (40) and urease source (50) can be in the form ofremovable cartridges.