The gender recognition register and the index to it, as well as the link between the original birth certificate or adoption record and the new record, would not be open to public inspection or search, except for specified official purposes, for which a trace could be justified under the law.