Thanks for your question on Health Care Magic.
I can understand your situation and problem.
Yes, you should definitely
consult doctor and get done chest x ray to rule out
lung infection and
pleural effusion.
You are having continuous coughing and right sided chest pain, worsening by coughing.
So possibility of pleuritic pain is more. And it is seen commonly with pneumonia and pleural effusion.
So chest x ray is needed to rule out these possible causes.
If chest x ray is normal then possibility of
musculoskeletal pain is more.
So start antihistamine drug for cough suppression.
Start painkiller and
muscle relaxant drugs. Avoid heavyweight lifting and strenuous exercise. Avoid movements causing pain. Apply warm water pad on affected site.
Don't worry, you will be alright.
Hope I have solved your query. Wish you good health. Thanks.