Select the correct answer.

Which of the following definitions best represents the meaning of the word invalided in this sentence from Ernest Hemingway's "In Another Country"?

The doctor told me that the major's wife, who was very young and whom he had not married until he was definitely invalided out of the war, had died of pneumonia.

A.
to be promoted with medals or honors
B.
to be tortured in prisoner of war camps
C.
to be discharged in disgrace for not reporting to duty
D.
to be removed from service due to injury or illness

D. to be removed from service due to injury or illness