**
Thanks for contacting with your health concern.
1. since the symptoms are there for almost couple of weeks thus I do recommend following symptomwise approach:
i. As the pain is on the right side, in addition to x-ray, ask for
ultrasonography of HBR [hepatobiliary region] for
Amoebic liver abscess and
Cholecystitis. [history of gallstones is there]
ii. Consult a chest specialist who will go for systemic examination and if any chest signs are present will ask for imaging scans of chest with Hb%, WBC, ESR and then will provide proper management [as they can ask more detailed questions on associated symptoms]
PS. other possibilities which can be excluded at the time of examination are an old fracture of rib,
costochondritis, muscle sprain, inflammatory bowel disorder,
chronic appendicitis.
iv. Although most of the times, pain may be the result of minor injury or postural changes, however sometimes there may be an underlying medical condition/situation which needs appropriate treatment.