Hospitals have staff lawyers whose job it is to deal with lawsuits. So it's not terribly time-consuming for doctors outside of depositions.
It's safe to say that this is one of the reasons that doctors move from private practice into working in a hospital system. But it's also not a major one (dealing with insurance companies is the major factor).