Hi Dee Shawson
Welcome to HealthcareMagic.
It is highly possible that you injured your rib.The swelling could be of the soft tissue
around the injury
.Normally rib fractures
heal by themselves without any surgical intervention.But you need to give it rest by restricting movement.
Firstly stop lifting heavy weights or putting stress
on your back.
Further , visit your Orthopedician and get an Xray and further management.