I got woken up with sharp pains on my right

Patient: I got woken up with sharp pains on my right side under my ribs, and the pain went into my pain and I had chest pains, it hurt terribly, the pain got better the next day but it made me sore, and everyday I have pain under my ribs on my right side and chest pain especially after eating, I had an ultrasound done and it came back with no gallstones or wall thickening, only said it was a fatty liver, wich I don’t think would cause this much pain, what can it be?

Doctor: