If there’s legal proceedings happening, he cannot be compelled to talk to a mental health provider (only show up to his appointment). Any of their notes can be subpoenaed by the government and if he goes to a court martial will make the military judge conduct an in camera review to see if parts are releasable. If he doesn’t say anything, those records don’t exist.