It often takes a day or two to differentiate between the two. No one medication or treatment works for all of us. Our symptoms often wax or wane over time and our bodies have various drug sensitivities. Even if we find something that helps us to sleep, or eases the pain, it may prove ineffective after a period of time. A change in diet helps some patients.
Some people develop food sensitivities.
Ask your doctor to recommend an allergist. I never dreamed that I had food sensitvities until I went to a wonderful allergist. Early treatment to re-establish a normal sleep routine is important and rest is recommended to maintain energy. Anti-depressants are often prescribed, not just for situational depression, but for sleep and joint pain. It is also invaluable for Disability Claims.