He needs to update his ID even if the doctor knew, he has a new gender entirely (F), if he still has his old ID, it would show male (M) and show his old appearance instead his new one, which would cause trouble for him in the future if he didn't update his ID.
as someone else said, it's...