The patient, the doctor, their lawyers and the judge: rights and duties