The first choice for rib pain is to rule out rib fractures due to trauma. If rib pain occurs in the absence of obvious trauma you should visit a thoracic surgeon or orthopaedic surgeon to improve relevant laboratory tests and imaging (X-rays, CT and MRI) to rule out rib pain caused by the cardiovascular system, digestive system and tumours, and take targeted treatment for the primary cause after clarifying the cause.