That depends on what the medicine is in the medicated feed. Usually, but not always, it is Amprolium. If it is not Amprolium, what I am about to say is not correct.
You've hit on a bit of a controversial issue. Some "authorities" say it is not a problem to eat the eggs immediately once you stop feeding Amprolium in the medicated feed. Other "authorities" say you should not eat the eggs for a certain time, anywhere from 1 to 4 weeks.
I'm not a medical professional but I kind of like what a bird vet said. It should not be a problem because the Ampolium does not pass through the interstinal walls that easily. But with all the differing claims, waiting a week is probably prudent. At least he said something like that.
I'm certainly not an authority. I personally think the people recommending the longer withdrawal periods are maybe confusing the strength of Amprolium in medicine for treating Coccidiosis with the strength of Amprolium in the medicated feed to prevent it. There is a tremendous difference in the strength. If I were in your situation, I'd eat the eggs after a week's withdrawal. But that is just me.