Owch. My dad basically did this in a doorframe. (My mum closed a door slightly while he had his finger in the frame and didn't realise it until it was a bit too late).
Now he has a slightly deformed index finger. Doesn't affect him in doing anything at all though.