piighost/dk-cpr
Danish CPR number: the birth date as day, month and year, a dash, then four digits whose last one gives the sex. The dash is mandatory and the date is validated, which is what keeps it apart from a ten digit run.
Label: DK_CPR
Pattern (?<!\w)(?:0[1-9]|[12]\d|3[01])(?:0[1-9]|1[0-2])\d{2}-\d{4}(?!\w)
Must be caught Patienten er registreret som 010190-1234 i systemet. → 010190-1234Hun står opført med 300785-2345 på kortet. → 300785-2345
Must be left alone Koden 321390-1234 findes ikkeReference 0101901234
Tags: dk, government-id, identity, health
Download the detector as TOML
Used by
piighost/dk — Denmark: phone and the CPR number, which doubles as the health identifier.
piighost/health — Health identifiers across nine countries: the Danish CPR number, the British NHS number, the French social security…
Related patterns
piighost/ar-dni — Argentine national identity document number, the DNI: eight digits, written solid or with a period after the second…
piighost/at-svnr — Austrian social security number, the Sozialversicherungsnummer: ten digits, a three digit serial and one check digit,…
piighost/au-driving-licence — Australian driver licence number.
piighost/au-medicare — Australian Medicare number: ten digits in the groups the card prints, sometimes followed by the individual reference…
piighost/au-passport — Australian passport number, eight or nine characters, per the Purview Australia passport definition: one letter from…
piighost/be-nrn — Belgian national register number in its written form: the birth date in dotted pairs, a dash, a three digit sequence…
← piighost/dk · All patterns in the catalogue · piighost/dk-default →