A man has pleaded guilty to punching a nurse while being treated for a dislocated shoulder at Maryborough Hospital.