The really messed up thing about this is the tax implications. The doctor gets a write off for his 'losses'; his tax bill it lower.
The patients are subject to paying tax on this as-if it were income (because they received $X of debt cancellation). Their tax bills will go up.