Bloody poo could be anything from bad constipation to a severe infection. Only your vet will know for sure which is causing it.

Make sure to take a fresh stool sample of the green small poo with you when you go to your appointment so they can test for parasites.

I hope your vet appointmet goes smooth and turns out to be something easily treatable.