Training is in tatters as doctors prioritise urgent care and discharges