It depends on the exact circumstances. As a general matter, a party is responsible for its own costs in a legal matter. However, if the lawsuit was frivolous--that is, there was not a good reason in the law or based on the facts to bring it--then the party sued may be able to recover his or her legal costs. So if this physician should never have been named, or the suit never brought, he or she may be able to get his or her costs. Similarly, even if he or she can't recover all of the costs, if part of the suit was frivolous or abusive--for example, you brough unnecessary or unsupported motions, which the doctor had to respond to--the doctor may be able to recover costs connected with those specific elements of the suit.