Welcome to HCM
You have suffered a viral infection recently and, your description of pain is pleuritic in nature which is due to inflammation of membranes around lungs.
You should see your treating Physician once again to examine medically and if required a repeat X ray
or chest sonography
may be done to know any fluid in cavity.
may be viral or Tubercular in origin?
Other possibility is muscular pain
can be treated by local hot fomentation and analgesics.
In the mean time cough
suppressing medicine to be continued and analgesic may help to relive pain.
You can sleep in right lateral position to avoid movement of right side to reduce pain.