Don’t know if this has been previously posted http://pubs.acs.org/doi/pdf/10.1021/es032519b Have not seen much info on NSAIDs and composted manure. There are some studies on NSAIDS and euthanasia drugs on composted carcasses.
The primary question would be how often are the drugs/wormers used? If short term use and/or not many animals being administered those drugs contribute to the total compost pile, you probably don’t have to be overly concerned. Concentration and prolonged exposure really does matter. Toxins are released to our waterways daily - the volume released and the flow rates of the water are monitored to make sure the toxins are diluted enough and not retained long in one place to cause significant impact. In other words “dilution is the solution to pollution” in much of today’s environmental world. P.S. that is one of the big reasons for increased antibiotic resistance and estrogens being found in our drinking water…
ETA - I would make sure it is well composted. The heat generated during composting helps to kill pathogens and does break down some chemicals. Composting with manure/organics is sometimes used to remediate soils contaminated with hydrocarbons. Hyper accumulating plants are used for phytoremediation of metals. Heat from composting would not likely help with some of the inorganic compounds.