as there is blood in motion and your sputum it is possible that the reason for the blood is a problem with your gastrointestinal system. It would be a good idea to get a endoscopy
done. You could also a Chest x-ray to get rule out any lung pathology. best of luck.