Hospital grade sockets perform this function well because they're designed for health care environment where uninterrupted power is important.
An uninterrupted power in the hospitals suppose to be before it reaches a recepticle. In case of a blackout every hospital has an alternate power generator.