stdnum.nl.brin

Brin number (Dutch number for schools).

The Brin (Basis Registratie Instellingen) is a number to identify schools and related institutions. The number consists of four alphanumeric characters, sometimes extended with two digits to indicate the site (this complete code is called the vestigingsnummer).

The register of these numbers can be downloaded from: http://www.duo.nl/organisatie/open_onderwijsdata/databestanden/default.asp

>>> validate('05 KO')
'05KO'
>>> validate('07NU 00')
'07NU00'
>>> validate('12KB1')
Traceback (most recent call last):
    ...
InvalidLength: ...
>>> validate('30AJ0A')  # location code has letter
Traceback (most recent call last):
    ...
InvalidFormat: ...
stdnum.nl.brin.compact(number)

Convert the number to the minimal representation. This strips the number of any valid separators and removes surrounding whitespace.

stdnum.nl.brin.is_valid(number)

Checks to see if the number provided is a valid Brin number.

stdnum.nl.brin.validate(number)

Checks to see if the number provided is in the correct format. This currently does not check whether the number points to a registered school.

Previous topic

stdnum.my.nric

Next topic

stdnum.nl.bsn