"Extreme Measures" is an episode from the seventh season of Star Trek: Deep Space Nine, the seventh of the ten final chapters. The production code of the episode is 573. First aired May 19, 1999. Written by Bradley Thompson and David Weddle. Directed by Steve Posey. The episode was well received, and has an average rating of 4/5 on the official Star Trek website (as of April 14th, 2007).
Sloan shows up in Julian Bashir's quarters, baited by the fake announcement of a cure to the changelings' plague. When Sloan sees no way to get out of Bashir's interrogation, he kills himself. Bashir, with Miles O'Brien, use an "optronic engrammatic interpreter" to infiltrate Sloan's mind. Sloan tries to keep the two inside his brain, so that they will die when he goes brain dead. Sloan baits Bashir with all of Section 31's information. Seconds before total brain death, O' Brien realizes the trap and tells Bashir to get them out of Sloan's mind. Having obtained the chemical formula for the cure, Bashir administers the drug to Odo. Aside from some brief discomfort, Odo is completely cured.