Thanks for writing to us.
The best way to diagnose a painful lump of the hand is to get an excision biopsy
of the lesions done. Since you are going for a surgery, biopsy report will confirm the diagnosis. the swellings can be due to ganglion cysts
or inclusion cysts.
I hope this information has been both informative and helpful for you.
Dr. Praveen Tayal