A Woodbridge pulmonologist who lost his medical license for inappropriate sexual contact during the medical exams of two women has been granted the right to a hearing on whether his license should be reinstated. The state Medical Examining Board voted Tuesday to hold a hearing on whether Dr. Sushil Gupta should be allowed to practice medicine. Gupta, who has not practiced for the past seven years, apologized in writing to the board and the women in November when he asked for his license back. He also wrote that he had completed courses on “professional boundaries” and would not see any female patients without a chaperone. State records show he has been helping to run the business side of the Hamden Sleep Disorders Center.