Scientists have discovered how the materials used in medical implants like artificial joints can be adapted to control the immune response to them and reduce the risk of rejection.