Thanks for writing to HCM
Firstly USG of abdomen should be done for pain.
UGS is very sensitive for hepatobiliary system
All causes of pain in this reason should be excluded.
If all visceral causes are excluded then musculoskeletal causes should also be ruled out.
LFT should be done to assess liver
Treatment depends upon clinical findings and investigation reports.
Get well soon.