Ida, 29, was six months pregnant when she suddenly felt abdominal pains and went to a government hospital in Kampala.

Like all pregnant women in Uganda, she was tested for HIV as part of routine screening for the virus. She lost her baby and was then given the news that she was HIV-positive.

"I was in a lot of pain and the situation was bad. They told me they were going to clean my womb. They took me to the examination room and asked me how many children I had. I told them I had four," she said, recalling the events of 2008.

"They were using English. I did not understand what they were saying because I never studied English. They told me they were going to give me treatment. Later when I gained consciousness I saw a dressing on my belly, but because I was in great pain, I couldn't ask questions."

After the miscarriage, Ida tried for some years to get pregnant again. Eventually, she went to another hospital, where she was examined and told her fallopian tubes had been cut. Without her knowledge, she had been sterilized.

Joy, who, like Ida, did not want to give her real name, was sterilized in 2003, when she was 21 years old. She had been admitted to hospital in Kampala to deliver her first child. She was HIV-positive.

"They told me after birth that they would give me an injection so that I wouldn't give birth again for five years - which I accepted,"," she told the Thomson Reuters Foundation.

"I didn't know until later that I had been sterilized. I found out when I visited a clinic because I kept getting stomach pains."

The doctor at the clinic asked to see her medical records which were with her uncle. When she asked to see the forms she learnt that her fallopian tubes had been cut and her uncle had signed the consent form.

"Upon hearing that, I started shedding tears. This has greatly affected my health. I just struggle to accept the situation," she said.

A 2015 study carried out in nine districts of Uganda by the International Community of Women living with HIV Eastern Africa (ICWEA) found 72 out of 744 HIV-positive women surveyed had been sterilized. Twenty of them had been forced to undergo the procedure, or it had happened without their consent.

Hajarah Nagadya of ICWEA said that 18 of the 20 forced sterilizations had been carried out in government hospitals, and two cases occurred in private clinics.

"These women need psychological support such as counseling because a lot is going through their mind," Nagadya said.

"Others want to consider a legal action, go to court and have the government compensate them."

ALSO READ: HIV/AIDS 72% adolescent girls infected with virus don't know their status

Asuman Lukwago, the permanent secretary at the ministry, said such cases of forced sterilization were a criminal offence. However, he said there may be exceptional circumstances in which doctors may decide to sterilize women if they believed their lives would be in danger in pregnancy.

According to UNAIDS 2015 estimates, Uganda has an HIV prevalence rate of 7.1 percent among adults aged 15 to 49. An estimated 790,000 women aged 15 and over are living with HIV in the east African country.