Brannon Braga wrote the story from the initial idea of the Doctor having an identity crisis, "What if the doctor discovers that Voyager is a hologram and he is real?"
The core idea behind Brannon Braga's story concept revolves around the Doctor questioning his own existence and identity, specifically in relation to the possibility of Voyager being a hologram.