The disclosure relates to a medical implant (1) 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, whereby the ratio between the amount of the first and second coating on said external surface is different from said ratio on an internal surface of the implant.