https://github.com/systemd/systemd/commit/71ad73569d9a5e2588...
Though the main problem would be that there isn't a "national ID number" everywhere in the world, so the format would be near arbitray.
Store birth date in systemd for age verification
https://news.ycombinator.com/item?id=47436240