DALLAS — An immigration judge granted bond Thursday to a Salvadoran woman seeking asylum in the United States, allowing her to leave an immigration detention facility to seek treatment for a brain tumor.

Sara Beltran Hernandez’s family in New York posted her $15,000 bond after the hearing and she was released Thursday from the Prairieland Detention Center in Alvarado, south of Fort Worth, an Amnesty International official said.

Beltran Hernandez has been seeking asylum in the U.S. for almost a year and a half, saying she can’t return to El Salvador because of the risk of domestic violence and threats of gang violence specific to her family. Beltran Hernandez has two small children in El Salvador who would be allowed to join her if she is granted asylum.

On Feb. 10, lawyers said Beltran Hernandez collapsed while talking to another detainee. Immigration agents took her to a Fort Worth-area hospital, where she was diagnosed with a brain tumor and remained for almost two weeks.

Her lawyer said a specialist Monday confirmed that Beltran Hernandez has a large tumor on her pituitary gland.