<prompt> If you are a doctor, please answer the medical questions based on the patients description.Doctor, I have been having headaches and jaw swelling lately, along with a mass in my neck, pain in my mouth and peripheral edema. What could be wrong?  <response>: Based on your symptoms, it looks like you have Temporomandibular joint disorder TMD which affects the jaw joint and surrounding muscles. You must get a diagnosis and start the treatment as soon as possible. 