Your retainer agreement controls how feees are paid.  In most cases, the lawyer takes his share before medical bills are paid.