Hi,
Noted the history about a 30 year old female having pain under the right 
rib cage particularly at night on changing position to right lateral side, squatting and so on.
The most probable cause  I can think about is 
costochondritis as the 
Ultrasound for liver, 
gallbladder, 
pancreas and kidneys is normal.
I would advise you the following in such a situation:
Consult you Doctor and discuss about costochondritis as a possible cause so that he/she examines for local tenderness, goes for additional investigations of X-ray chest to rule out any problems related to lungs and so on.
You may need a long course of Doxycyclin, oral steroids in tapering dosages and anti-inflammatory medicines with painkiller property.
Local rubefacient liniment helps in local warmth and relaxation.
Strapping to give rest to the part. 
Hope I have answered your query. Let me know if I can assist you further.
Regards,
Dr. T. Chandrakant, General Surgeon