Tourist visa applications ask for existing chronic and infectious diseases. People declaring a positive HIV status will not be granted an entry visa. According to the local embassy, people living with HIV are not allowed to enter Iran.
From our experience in Baku/Azerbaijan, we know that all applicants for an Iranian visa are required to provide a blood test, performed by an Iranian organisation in Baku. Visas are denied if there is any problem.