Thanks for writing your query.
Although it seems that you are having soft tissue injury
, still you should get a X-Ray of your right hand (AP and Lateral view) done.
You should give rest to your injured finger. Also do hot fomentation.
Pain killer like Diclofenac
50 mg twice a day after meals along with antacid Omeprazole
20 mg will be helpful in decreasing the pain and swelling. take medicines under medical supervision only.
If your problem persists, get yourself examined by an Orthopedician.
I hope this is helpful to you.