Since 2003 German hospitals are reimbursed according to diagnosis related groups (DRGs). Patient classification in neonatology is based inter alia on birth weight, with substantial discontinuities in reimbursement at eight different thresholds. These discontinuities create strong incentives to upcode preterm infants into classes of lower birth weight. Using data from the German birth statistics 1996 to 2010 and German hospital data from 2006 to 2011, we estimate that since the introduction of DRGs, hospitals have upcoded at least 12,000 preterm infants and gained additional reimbursement in excess of 100 million Euro. The scale of upcoding in German neonatology enables us to study the anatomy of cheating in a profession that otherwise claims to have high ethical standards. We show that upcoding is not only positively linked with the strength of financial incentives but also with expected treatment costs measured by poor newborn health conditional on weight. This suggests that doctors and midwives do not indiscriminately upcode any potential preterm infant as a rational model of crime would predict. Rather, they may find it easier to cheat when this helps aligning the lump-sum reimbursement with the expected actual treatment costs.