Legal medicine
The branch of medicine that deals with the application of medical knowledge to legal problems and legal proceedings.
Legal medicine is also called forensic medicine.
A physician may be engaged in legal (or forensic) medicine while a lawyer with identical interests is said to be in medical jurisprudence.
It just depends upon the direction you are coming from.