A former gynecologist at the University of California, Los Angeles was found guilty on five counts in a sexual abuse case Thursday in a Los Angeles court.

The jury found Dr. James Heaps not guilty on seven of the 21 counts and were deadlocked on the remaining charges.

Heaps, a longtime campus gynecologist at UCLA, had pleaded not guilty to 21 felony counts in the sexual assaults of seven women between 2009 and 2018. He has denied wrongdoing.

James Heaps
In this June 26, 2019 file photo UCLA gynecologist James Heaps, center, and his wife, Deborah Heaps, arrive at Los Angeles Superior Court. (AP Photo/Damian Dovarganes,File)

Heaps was indicted last year on multiple counts each of sexual battery by fraud, sexual exploitation of a patient and sexual penetration of an unconscious person by fraudulent representation.

UCLA has agreed to pay nearly $700 million in lawsuit settlements to hundreds of Heaps’ patients, who said he groped them, made suggestive comments or conducted unnecessarily invasive exams during his 35-year career.

Women who brought the lawsuits said the university ignored their complaints and deliberately concealed abuse that happened for decades during examinations at the UCLA student health center, the Ronald Reagan UCLA Medical Center or in Heaps’ campus office.

UCLA acknowledged it received a sex abuse complaint against Heaps from a patient in December 2017 and it launched an investigation the following month that concluded she was sexually assaulted and harassed, attorneys said.

Heaps, however, continued to practice until his retirement in June 2018 amid the scandal. The university did not release its finding in the investigation until November 2019 — months after Heaps was arrested.

Heaps’ attorney and UCLA did not immediately return requests for comment Thursday.