Anger over the injuries has driven much of the testimony in the case so far, as service members vividly described a rescue operation that exposed them to enemy fire. Shannon Allen, the wife of Sgt. First Class Mark Allen, who was shot in the head took the stand on Monday.

Sergeant Allen, a national guardsman from Georgia, had part of his brain removed during surgery, and is now unable to speak, walk, or take care of himself. His wife has said little publicly, but in a Facebook post after Sergeant Bergdahl was freed, she blamed him for causing her husband’s incapacitation.

“Instead of being his wife, I have become his caregiver,” Ms. Allen testified on Monday.

Last week, Staff Sgt. Jason Walters testified that his six-man team had only just arrived in Afghanistan when they were sent to search for Sergeant Bergdahl. They had little time to prepare for the rugged terrain of Paktika Province, and little intelligence to go on.

On the second morning of the search, “an insane amount of fire came out of nowhere,” Sergeant Walters said. Militants had them surrounded. In minutes, half the team had been wounded. Sergeant Walters turned to see “a cloud of blood” spraying from the head of Sergeant Allen.

“I started treating his wounds, talking to him, telling him to hang on,” Sergeant Walters said.

The battle subsided only after F-15 fighter jets and Apache helicopters arrived overhead.

Only later would the troops learn that the battalion responsible for the area believed that 150 Taliban fighters were near the village where the soldiers were resting when they came under fire.

“My words can’t take away what people have been through,” Sergeant Bergdahl told the court on Monday. “Offering condolences is not enough. People went through things they shouldn’t have had to go through. I grieve for those who have suffered and their families.”