"More needs to be done to improve medical awareness and recognition of diversity because “the consequences can be so dire, as this case shows,” Branstetter said."
No, this was not a consequence of not recognizing diversity. This was a consequence of someone irrationally demanding to be recognized by an identity to the point of being detrimental to their health.
If you want to be a man, and want people to treat you like a man, in direct conflict with your actual biology, this is the result. Because reality doesn't give two ***** about your feelings about yourself.