Ray, I’m concerned that your kitten had such a large worm infestation that he can’t pass anything due to a blockage of some kind. Make sure you are feeding him wet food (skip the dry for now) and plenty of water. Goat’s milk, or yogurt with live cultures would be good also, maybe even a few drops of olive oil to his wet food when you feed him. I’m surprised you saw tapeworm segments when he pooped, as I have only seen them on the cats’ fur before treatment (letting me know they have a tapeworm). Usually they die and are absorbed by the cats digestive system after treatment. Roundworms will pass through though and some will come out alive and die soon after. Roundworms and hookworms can kill a kitten, by making it anemic, causing gastrointestinal blockages and severe malnutrition.
If the doctor is stumped, then find another vet as time is ticking away here and he is obviously trying to go. Maybe even an emergency vet. At least, call the old vet and ask if he thinks he could have an obstruction due to a very large worm burden. Keep us posted on his progress!!