Dozens of witnesses, primarily soldiers, testified that Hasan specifically targeted uniformed personnel.
Army Staff Sgt. Alonzo Lunsford, the first survivor to take the stand, recounted how the gunman rose from a chair in the processing center, shouted "Allahu Akbar" -- Arabic for God is great, pulled out a pistol and began shooting.
"It was a state of panic," Lunsford said.
As Lunsford was checking behind him, "Major Hasan is turning the weapon on me," he said. "He has a laser on his weapon and it goes across my line of sight and I blink. In that time, he discharges his weapon. The first round, I'm hit in the head."
A second shot caught Lunsford in the back. He decided to play dead for a while before changing his mind and deciding to run for the door. He made it out of the building but was shot five more times outside, he testified.
Capt. Dorothy Ellen Carskadon, who was at her final checkup ahead of her deployment, testified that she initially believed the shooting was part of a military exercise.
Then he heard Pvt. Francheska Velez screaming, "my baby, my baby" as she cradled her stomach. She crawled to the pregnant Velez and tried to comfort her, telling the 21-year-old private that it would be OK and that the training exercise would end soon.
Velez and her unborn baby died in the attack.
Carskadon told the court she suffered four gunshot wounds: one that grazed her head; another through her right hip; a third lodged in her right leg; and a fourth in the abdomen.
Chief Warrant Officer Christopher Royal, 41, stared down at Hasan from the stand, where he testified how he charged the gunman to try to stop him and how Hasan shot him.
Days before he took the stand, Royal told CNN that he had forgiven Hasan.
"I can't hold that grudge," Royal said. "It's just too much. I won't allow him to consume any more energy for my life than he has already done, and so I have released him.
"I have forgiven him completely," he said. "It's not up to me to punish him. His punishment will come."