A plan by NSW Labor to introduce mandatory blood testing for people who assault police and frontline workers has been branded "problematic" by the state's peak medical body.

Opposition Leader Jodi McKay said Labor would introduce a bill to test alleged offenders for blood borne viruses, including HIV and hepatitis C, saying more should be done to support police and frontline health and emergency workers.

NSW Opposition Leader Jodi McKay Credit:AAP

"If we can give a police officer or others on the frontline peace of mind that they are not infected then I am all for that," Ms McKay said in a statement on Wednesday evening.

"They put themselves in harm's way for us every day, the very least that government can do is give them some certainty over the risk of infection from blood-borne diseases."