How the US does scheduling is kind of insane. Doctors like pilots (and truck drivers in Europe) should have clear rules about how long they work with rest periods and so on. Giving people 24h shifts is nonsensical and insane.