Cohen in hospitals

I know cohanim are not allowed to touch dead bodies and be in the same room as jewish bodies, is it permissible for a cohen to work as a nurse, im sure during training you will at least have to be around bodies and its not like your saving them, is it still okay for a cohen to learn nursing?

Problem