This all depends on genre. If it is fantasy, horror, or some others, there is a little more leeway. But I just had some major cringe fits from reading some of the posts above (As an academic researcher, I'm a neurobiologist.) You may be better off by having parts of the eye transplanted rather than the whole thing (there is both research and medical methodology for such things). But unless one is willing to go into the robotics aspect of human medicine (and thus, again, have significant leeway in fiction), using terms like oculomotor (the oculomotor nerve is totally separate from the optic nerve) will get an author in hot water with some readers. If one is going to use medical facts/terms in support of "fantastic" fictional procedures (just like using historical facts in a historical novel), they better be right. This requires research. Also, a total eye transplant in an adult human won't work because all of the neural connections between the retina and the optic regions of the brain require precise and experiential developmental ordering, which would be impossible to duplicate, even if one could get cut axons in a nerve to connect to donor axons in a transplanted optic nerve. The eye would be able to form images, but the messages to the brain would be gibberish.
Keep in mind, though, that a neurobiologist like me doesn't have any problem reading horror and supernatural suspense, which both frequently defy anatomical and physiological fact. I write the stuff, so I do deviate from human physiological and psychological reality with no problem in those settings.
If you are writing something futuristic but not in one of the genres that allow a total bend of our medical realities, your best bet might be to incorporate some aspect of optical robotics since mating man with machine allows some freedom from physiological reality. But even then, be very careful with terminology and any anatomy or physiology that is mentioned. It doesn't require that much research to get the details right.
Uncle Jim's suggestion totally sidesteps these problems and allows focus on a totally different kind of emotional reaction to the medical events in a story, so that should be considered as well.