A hospital was evacuated after a man arrived with a WW1 shell in his rectum.