The removal of certain elements from the blood by virtue of the difference in the rates of their diffusion through a semipermeable membrane, for example, by means of a haemodialysis machine or filter.