This question already has an answer here:
The Voyager's story from the doctor ends with this:
EMH: Computer, freeze programme. A tragic, needless death, but as you can see, Voyager was not responsible. After Tedran was killed, Voyager was attacked by nine Kyrian ships. My programme was disabled, most likely when they stole my backup module. The next thing I knew, I was standing next to this gentleman seven centuries later.
What happened after that? The next episode plot summary seems to be unrelated.