For the past 18 years he has been a legal consultant, advising attorneys on hundreds of cases in which hospitals have been accused of preventable errors.