What should I do if it hurts underneath my chest and in the middle of my ribs?

Inhaling hard below both chests pain in the middle of the rib cage pain may be caused by herpes virus infection, pneumothorax, pleurisy and other causes, you can use acyclovir, levofloxacin and other medications according to different causes of the disease, bed rest, closed chest drainage and other treatment modalities. 1. Herpes virus infection: Herpes virus infection causing herpes zoster can cause intercostal neuralgia, which can be treated with topical acyclovir cream or oral antiviral medications such as acyclovir and vasiclovir. 2. Pneumothorax: When spontaneous pneumothorax occurs and the pleura ruptures, it can cause pain under both chests when inhaling. If the symptoms are mild, bed rest and oxygen inhalation can promote the improvement of the condition; if the symptoms are serious, closed chest drainage is feasible. 3. pleurisy: due to infection caused by inflammation of the pleura, the pleura friction movement caused by pain when inhaling, you can take levofloxacin, amoxicillin and other anti-infective drugs treatment. Inhaling hard below the two chest pain in the middle of the rib cage pain causes more, including costochondritis, pneumonia, etc., the patient should go to the hospital in a timely manner, improve the examination, give targeted treatment after the cause is clear.