Scheduling software for the Hubble Space Telescope has been adapted to reduce hospital waiting time for patients