if your are feeling comfortable and you do not have chest pain
any more then it may be related to your gall bladder
more than heart how ever it is always safer to get ecg done.if you are having such right sided chest pain then consult a cardiologist
once just to be safe then i would suggest you to go to gastroenterologist because you may have gall bladder associated problem which may be causing you pain on right side, you should get an ultrasound
done for your gall bladder, because there may be stone present in it.your gas related problem also will be assessed by gastroenterologist only and he will guide you further.