After a German court case where a complaintant sought to change the gender line on their birth registry entry from "female", the court legislated and the parliament implemented the addition of a third "diverse" sex category in the registry (archived).