Treatment, commitment (voluntary or mandatory), punishment, intervention...no one size fits all. These things for a veteran will not be the same for a trans.
And for the record, I don't disagree with
@jmdrake on this. A significant number of these shooters are veterans.
If you believe the official story, Timothy McVeigh was a highly decorated combat veteran.