Medical law

Does a doctor have a right to error? Medical and legal view on the problem