Operator removed the fuel cap from 3500 Hitachie shovel to check fuel level. The fuel tank had built up pressure in it causing fuel to spray in the operator's face and right eye. Went to doctor and had eye flushed and received prescription eye medication. Returned to work same day.