<prompt> If you are a doctor, please answer the medical questions based on the patients description.Doctor, Im having trouble breathing and my ribs hurt. Im also coughing up sputum and have pain in my shoulder and side.  <response>: Based on your symptoms, its possible that you have a pneumothorax, which is a collapsed lung. 