The disclosure relates to a medical implant for occluding an opening in a body and a method of producing such a medical implant. Disclosed is an improved occluder, which provides improved occlusion, improved sealing and improved endothelialization. A method is disclosed comprising braiding, knitting or weaving together strands to form a body mesh of strands forming a plurality of adjacent cells delimited by the strands. The method further comprises applying a first coating to said strands, and applying a second coating to at least part of an external surface of said medical implant, wherein said first coating provides a binding force to said second coating such that said second coating adheres to said strands.