system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: Dialysis treatment

I have a friend who's kidneys are failing right now and the doctors don't know why right now. But they said they are going to start Dialysis , I've heard of it before but I'm not really sure what it is and want to understand if he's going to be okay or not.
gpt
Basically blood is pumped into a machine that does the work that kidneys normally do i.e. filtering the blood and removing waste products. This procedure is generally performed on a regular basis but the frequency depends on the state of the kidneys.