Dimitrios Pagourtzis has been ordered "committed to and confined" to a Texas Department of State Health Services facility, the ruling states. The treatment may not exceed 120 days.
The order states Pagourtzis is unfit for trial as of Oct. 18. The trial, which was moved to Fort Bend County, was set to begin in February 2020.
Earlier this month, the suspect's lawyers indicated that he was likely to be declared incompetent for trial.
Pagourtzis' mental state has been the focus of several discussions between prosecutors and defense attorneys since the shooting that killed 10 and injured 13 others.
In August, attorneys for Pagourtzis said his mental state had deteriorated to the point that he doesn't understand the case before him.
The video above is from a previous story.
- Santa Fe shooting suspect's mental state has 'degraded': attorneys
- Judge decides to move Santa Fe HS shooting trial
- Dimitrios Pagourtzis: What we know about the Santa Fe shooting suspect
- Bomb technicians surround home near Santa Fe High School following deadly shooting
- 10 dead, 13 injured in shooting at Santa Fe High School
- Survivors and victims' families attend emotional hearing as suspected Santa Fe HS shooter appears in court
- Dimitrios Pagourtzis doesn't remember many details of shooting at Santa Fe High School, attorneys say
- Timeline: How the deadly shooting at Santa Fe High School unfolded