Need help with SLE, rheumatoid arthritis, and headaches

Best answers
I'm trying to decipher an encounter note for a new patient who came in because of headaches and joint/swelling. She already had the RA diagnosis, but the provider added SLE to her problem list. Is there a way to tell which condition the joint problems are attributed to? I assumed it was the RA, but the SLE didn't get diagnosed until this encounter so I'm totally lost. And where do the headaches fall into? Am I missing an assumed relationship anywhere here? Maybe I'm overthinking this...?