As part of the settlement, announced Tuesday, the city also acknowledged that it was wrong to have disqualified Parker for a job as a police communications technician because of his HIV, which is a disability under the Americans with Disabilities Act.

Parker, 61, had applied for the job in July 2013 and was given a “conditional” offer of employment shortly thereafter, according to the feds’ lawsuit.

But after he told the city about his HIV during a routine medical exam, the NYPD requested more information about his CD4 count, a measure of health in people with HIV.

In December 2013, the NYPD sent Parker a “notice of medical disqualification” due to his “low CD4 count.”

“I keep myself in shape. I don’t let my body wither. I live life to the fullest. I felt confident I could do the job,” Parker told The Post after the Manhattan US Attorney’s office sued the city in January.

A spokesman for the city’s Law Department didn’t return a request for comment.

“As a result of this lawsuit, the City of New York has acknowledged that HIV status is not a basis to deny an individual employment,” Acting Manhattan US Attorney Joon Kim said. “We will continue to work to ensure that employers do not discriminate against job applicants with disabilities.”