PHOENIX — The Hacienda Healthcare facility in Phoenix will stay open, according to a statement from the Arizona Department of Health Services.  

The Arizona Department of Health Services says they reached an agreement with Hacienda that "gives the state increased oversight over the facility while allowing for the residents to stay in their home."

A spokesperson for the Arizona Department of Health Services says moving the patients could have been harmful. 

"Because of their serious medical needs, moving these patients could have been harmful to them and was the option of last resort," an ADHS spokesperson said.

The agreement requires Hacienda to hire "external quality improvement experts to ensure the health and safety of the residents," the spokesperson said. 

RELATED: Victim in Hacienda Healthcare scandal was also abused in 2002, lawsuit says

RELATED: Hacienda Healthcare doctor who cared for incapacitated woman who gave birth gives up medical license

This is the facility where an incapacitated woman receiving care was raped and later gave birth. 

The man accused of the rape is expected to stand trial next month. 

ADHS is expected to continue to monitor the facility to ensure patients are safe.