For the pain under the ribs on the right side when inhaling, it certainly includes a lot of causes. First of all, this problem may be caused by liver qi discomfort and qi stagnation and blood stasis. So for this, the method can be regulated with Chinese herbal medicine, commonly used drugs include Radix et Rhizoma, Chai Hu, and one should abstain from spicy and greasy foods, which are not good for the liver. Second, it may be a muscle pain or costochondritis, and of course, it may be caused by pleurisy. For these diseases, you can first go to the hospital to take a film to check, if there are problems with the examination then we should actively treat. It may also be caused by cholecystitis, but at this time an ultrasound can be done to see if there are any problems with the gallbladder. It may also be pleurisy or pneumonia, which is also possible, so a chest X-ray or CT of the lungs should be done at this time. If the examination is clear, you can treat it with the right medicine.