If purulent cervical discharge is observed just before planned IUD insertion, the IUD is not inserted and STI testing is done; the infection, if present, is then treated, and the IUD is inserted after treatment of the infection is complete.