You dont say where the pain is located, is it on the right ,under the ribs, and radiating to the shoulder and into your Back , could be a Gall Bladder attack, it could be bruised Ribs if you hurt yourself there, they take a while to heal and hurt, Go and ask your Doc again if it continues.