(CNN) A 30-year-old federal prison inmate who tested positive for coronavirus and gave birth while on a ventilator has died, the US Bureau of Prisons says.

The woman was serving a 26-month sentence for "Maintaining a Drug involved Premises," the agency said in a news release. She had been in federal custody since March 20, when she was transported from a jail in South Dakota to a federal prison medical center in Forth Worth, Texas.

As of Wednesday, 1,534 federal inmates and 343 BOP staff have tested positive for coronavirus nationwide, BOP says. At least 31 federal inmates have died due to the disease. There have been no staff deaths, the agency said.

On March 28, eight days after she was transported to Texas, the woman was sent to a nearby hospital for concerns regarding her pregnancy, BOP said. She was discharged the same day.

The woman was seen by the prison facility's medical staff on March 31 for a "fever, dry cough and other symptoms" and was again transported to the hospital, where she was placed on a ventilator.

Read More