The New York Court of Appeals on Thursday heard arguments on whether doctors can face state homicide charges if the drugs they prescribe are used by a patient during a fatal overdose on the medication.

Dr. Stan XuHui Li, who practiced in Queens, is seeking to have his conviction on manslaughter charges for the overdose deaths of two of his patients overturned by New York’s highest court.