It depends on whether the vaccine system and the premarital examination system are together. If they are together, as long as you enter the ID information, it will be detected.
If they are not together, or even the competent departments are different, they will not be found out. Although they are all in the hospital system, they will not be found unless they are deliberately checked.
I hope I can help you ~