There is described inter alia a medical device having a surface which comprises a coating layer, said coating layer being a biocompatible composition comprising an entity capable of interacting with mammalian blood to prevent coagulation or thrombus formation, which entity is covalently attached to said surface through a link comprising a 1,2,3-triazole.