This is tough to answer not seeing the worms. If you have worms that look like angel-hair pasta pieces, then they are roundworms Smaller worms will either be capillaria or cecal worms.
BUT, did you see these worms in freshly voided manure? O, did you discover them later in a pile of manure? Rice-shaped worms can also be the larval stage of the housefly as it gets ready to pupate, and they could have been laid after the manure was voided.
There are over-the-counter wormers for poultry. Be sure to follow all label instructions and take all precautions when using any therapies on birds.
Thanks for your question,
Fly control is best attained by keeping the pens as dry as possible. They need water in which to breed. Keep an eye on that wound. As long as it stays dry and continues to heal, there should not be any need for any further treatment. If flies are attacking the wound, then an over the counter wound dressing will need to be applied. A petroleum based product would be preferred over that of a pine tar based preparation. Chickens do not have the same skin structure as cattle. Caninie or equine sections of a vet supply would have these preparations.