Here is all I can remember. An alien race makes their ship look like a federation ship. The crew board it, discover it is not quite like it should be. The doctor is left there assisting. In the end the ship transforms back to how it was. That is all I can remember, my apologies, its been a long while.