Hi, thanks for writing to HCM.
All the symptoms in the description suggests that you suffered a RIB INJURY
These injuries are self limiting and usually heal spontaneously within 3-4 weeks.
Temporarily follow the below mentioned guidelines -
* avoid lying on the affected side
* Ice packing to alleviate the pain
antiinflammatory medicines as needed
* Calcium supplements
* Moist heat fomentation to resolve the swelling
Hope this information is helpful. Good day