Legal medicine contributions to patient safety. From ascertainment and evaluation to research in medical liability