Well, it’s not testimonial and thats what the 5th protects. It’s like hair samples at arrest to get DNA.
I haven’t read the opinion but I assume they came down on the “not testimonial” argument to the 5th doesn’t apply.
This is a search of his brain.