In Heinrich Mann's novel Man of Straw, the anti-hero manages to get out of military service with a bogus diagnosis of foot problems. He drew on Thomas Mann's experience: their mother knew a doctor, the doctor was willing to do a favor, Thomas Mann was discharged.
As a native German I rather feel it associated with the German Empire - probably also not a desirable association (read "Der Untertan" by Heinrich Mann (in English this book seems to be known under different names: "Man of Straw", "The Patrioteer", "The Loyal Subject")), but it has nothing to do with nazis.