Poor you, rafichagran 😟.
They were my symptoms when I had gallstones, the pain would be on my right hand side, under my ribcage and my back/shoulder blade. S & D, sweating then the chills. I ended up with a stone stuck in my bile duct, so I had to wait for it to clear before they removed my gall bladder.
I wouldn't have thought a bug, virus or food poisoning would last a couple of days three weeks ago and then return for another two days. Appendicitis? Pain plus S & D is bound to take it out of you, if you're feeling low and depressed that's understandable in the circumstances. Maybe a visit to your doctor would put your mind at rest.
I hope you soon feel better 💐.