When the needle through heparin cap is pulled out, the hole caused by the needle in the heparin cap will be closed automatically owing to its elasticity so as to prevent bleeding from it avoiding infection of outflow blood. It has features with advantages of easy operation and replacement as a result of work of heparin cap resisting contra-flow.