What diseases would cause you to cough up blood or have blood in the phlegm?

Hemoptysis. It depends on what the medical and social history of the patient is. The differential ranges from infection to cancer especially if the patient is a smoker. Hemoptysis requires a thorough medical evaluation.