The university hospital in the eastern Czech city of Ostrava said on Friday it had foiled a cyberattack on one of its servers overnight.