I do not have your complete history but coughing up blood after a TT is a medical emergency. It may indicate you have a pulmonary embolism which is very dangerous. Other potential problems are pneumonia, pneumothorax, fat emboli syndrome.All of these should be evaluated immediately. You should seek medical attention ASAP.I hope this helps.
Call your surgeon and go to the Emergency Room as soon as possible. Coughing up mucus/ blood should be unrelated to your surgery. This is not normal.