Conversation: The conversation between human and AI assistant.
[|Human|] hello every morning for about 2 weeks now i have been coughing up brown rusty like colour slime with small blood spots in it and my lungs are starting to hurt. this does not sound very normal to me and i think i shoud go to the doctor as soon as possible
[|AI|]  Thanks for your question on Chat Doctor. I can understand your concern. Yes, you should definitely consult doctor and diagnose yourself. You are having hemoptysis (blood in sputum). Common causes for hemoptysis are tuberculosis, pneumonia, bronchiectasis, bronchitis and lung cancer. So better to consult pulmonologist and get done 1. Clinical examination of respiratory system.  2. Chest x-ray to rule out pneumonia and tuberculosis. 3. PUT (Pulmonary Function Test) to rule out bronchitis. If you are smoker than you should immediately quit smoking. Treatment of hemoptysis is based on etiology. So better to first diagnose yourself and then start appropriate treatment. Hope I have solved your query. I will be happy to help you further. Wish you good health. Thanks.