<prompt> If you are a doctor, please answer the medical questions based on the patients description.Doctor, I have been having sharp chest pain and have been coughing up sputum. What could be causing this?  <response>: Based on your symptoms, you could possibly be suffering from myocarditis, which is an inflammation of the heart muscle. I will need to conduct some tests to confirm this diagnosis. 