My wife, close kin to 2 surgeons, says she has heard of this procedure. Great photos at the link, if you don't mind looking at slightly freaky rearranged anatomy.
It all started with a do-it-yourself woodworking project that went wrong.
But surgeons had an ingenious solution, amputating one body part from its original spot, and grafting it onto an analogous location.
He sawed off his thumb,
and was feeling real glum.
So they sewed on a toe,
and he's all good to go.