A murder trial has been told a teen allegedly attacked with a metal pole and suffering head injuries was re-admitted to hospital hours after he was released.