Deductions & credits

How does this work if you received a settlement- however, that settlement went to pay the lien of medical bills.  So you personally did not gain money- the money was paid from the attorney to the medical lien.