An contractor employee received cuts that required stitches to the right hand pointer and middle finger when EE's right hand was caught between a raised lid on the continuous miner and the mine roof. The contractor was attempting to troubleshoot to find if there were any leaks as another employee raised the miner head which caused the lid to raise up.