Gapeworms are transmitted in several ways. They may be contracted through eating embryonated gapeworm eggs (perhaps in coop bedding but more likely in the pen or yard) or more commonly through the ingestion of earthworms, slugs, or snails that serve as intermediary hosts for the gapeworm...
I think that gapeworms need to pass through an intermediary host like earthworms. I'm not positive on that so don't flame me if I am incorrect. Try a search to see if that is so. If it is, and if your hen has been positively diagnosed my guess is that the worms in your pen/yard are serving as...