Sex assignment
Sex assignment (also known as gender assignment) is the discernment of an infant's sex, typically made at birth based on an examination of the newborn's external genitalia by a healthcare provider such as a midwife, nurse, or physician. In the vast majority of cases (99.95%), sex is assigned unambiguously at birth.