Programmable machine for dialyser reuse