The City on the Edge of Forever - S1-E29
Character mistake: When Spock is finally able to determine that Edith must die to restore time, Kirk asks Spock how it will happen, and Spock tells him he can only estimate general events, not specifics. However, after Spock's previous attempt, he tells Kirk he'd seen her obituary. The obituary would necessarily include how and when she died.
Answer: Kirk was getting his physical and Dr. McCoy probably turned off communications, because if he hadn't, Kirk would have left and headed straight for the bridge, leaving McCoy irritated.