Mark Chavez appeared in federal court and surrendered his medical license as part of a plea agreement.