Doctor who left post at emergency department to collect takeaway food is struck off