More public hospitals will extend their operating hours as part of the government's efforts to reduce overcrowding in emergency departments.