HAALCENTRAAL English translation
BRP API / Personen / Features / nationaliteit-gba

Nationality

# language: en

@gba
Feature: Nationality

Background:
  Given national table "Nationaliteiten" has the following values
  | code | omschrijving              |
  | 0000 | Onbekend                  |
  | 0001 | Nederlandse               |
  | 0002 | Behandeld als Nederlander |
  | 0100 | Algerijnse                |
  | 0263 | Surinaamse                |
  | 0499 | Staatloos                 |

  Given national table "Reden_Nationaliteit" has the following values
  | code | omschrijving                                         |
  | 000  | Onbekend                                             |
  | 001  | Wet op het Nederlanderschap 1892, art. 1, onder a    |
  | 017  | Rijkswet op het Nederlanderschap 1984, art. 3, lid 1 |
  | 301  | Vaststelling bezit vreemde nationaliteit             |
  | 310  | Vaststelling bijzonder Nederlanderschap              |
  | 311  | Vaststelling onbekende nationaliteit                 |
  | 312  | Vaststelling staatloosheid                           |

  Scenario: the person has a nationality
    Given the person with citizen service number '000000012' has a 'nationaliteit' with the following data
    | nationaliteit (05.10) | reden opnemen (63.10) | datum ingang geldigheid (85.10) |
    | 0001                  | 001                   | 19750707                        |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000012                       |
    | fields              | nationaliteiten                 |
    Then the response has a person with a 'nationaliteit' with the following data
    | naam                       | waarde                                            |
    | nationaliteit.code         | 0001                                              |
    | nationaliteit.omschrijving | Nederlandse                                       |
    | redenOpname.code           | 001                                               |
    | redenOpname.omschrijving   | Wet op het Nederlanderschap 1892, art. 1, onder a |
    | datumIngangGeldigheid      | 19750707                                          |

  Scenario: the person has several nationalities
    Given the person with citizen service number '000000218' has a 'nationaliteit' with the following data
    | nationaliteit (05.10) | reden opnemen (63.10) | datum ingang geldigheid (85.10) |
    | 0052                  | 301                   | 19750707                        |
    And the person has another 'nationaliteit' with the following data
    | nationaliteit (05.10) | reden opnemen (63.10) | datum ingang geldigheid (85.10) |
    | 0263                  | 301                   | 19620107                        |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000218                       |
    | fields              | nationaliteiten                 |
    Then the response has a person with a 'nationaliteit' with only the following data
    | naam                       | waarde                                   |
    | nationaliteit.code         | 0052                                     |
    | nationaliteit.omschrijving | Belgische                                |
    | redenOpname.code           | 301                                      |
    | redenOpname.omschrijving   | Vaststelling bezit vreemde nationaliteit |
    | datumIngangGeldigheid      | 19750707                                 |
    And the person has a 'nationaliteit' with only the following data
    | naam                       | waarde                                   |
    | nationaliteit.code         | 0263                                     |
    | nationaliteit.omschrijving | Surinaamse                               |
    | redenOpname.code           | 301                                      |
    | redenOpname.omschrijving   | Vaststelling bezit vreemde nationaliteit |
    | datumIngangGeldigheid      | 19620107                                 |

  Scenario: the person has a nationality with reden opname = unknown
    Given the person with citizen service number '000000231' has a 'nationaliteit' with the following data
    | nationaliteit (05.10) | reden opnemen (63.10) | datum ingang geldigheid (85.10) |
    | 0001                  | 000                   | 19750707                        |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000231                       |
    | fields              | nationaliteiten                 |
    Then the response has a person with a 'nationaliteit' with the following data
    | naam                       | waarde      |
    | nationaliteit.code         | 0001        |
    | nationaliteit.omschrijving | Nederlandse |
    | redenOpname.code           | 000         |
    | redenOpname.omschrijving   | Onbekend    |
    | datumIngangGeldigheid      | 19750707    |

  Scenario: the person is Staatloos
    Given the person with citizen service number '000000255' has a 'nationaliteit' with the following data
    | nationaliteit (05.10) | reden opnemen (63.10) | datum ingang geldigheid (85.10) |
    | 0499                  | 312                   | 19750707                        |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000255                       |
    | fields              | nationaliteiten                 |
    Then the response has a person with a 'nationaliteit' with the following data
    | naam                       | waarde                     |
    | nationaliteit.code         | 0499                       |
    | nationaliteit.omschrijving | Staatloos                  |
    | redenOpname.code           | 312                        |
    | redenOpname.omschrijving   | Vaststelling staatloosheid |
    | datumIngangGeldigheid      | 19750707                   |

  Scenario: the person is treated as a Dutch national, bijzonder Nederlanderschap has value "B"
    Given the person with citizen service number '000000243' has a 'nationaliteit' with the following data
    | reden opnemen (63.10) | bijzonder Nederlanderschap (65.10) | datum ingang geldigheid (85.10) |
    | 310                   | B                                  | 19570115                        |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000243                       |
    | fields              | nationaliteiten                 |
    Then the response has a person with a 'nationaliteit' with the following data
    | naam                                | waarde                                  |
    | aanduidingBijzonderNederlanderschap | B                                       |
    | redenOpname.code                    | 310                                     |
    | redenOpname.omschrijving            | Vaststelling bijzonder Nederlanderschap |
    | datumIngangGeldigheid               | 19570115                                |

  Scenario: the person is treated as a Dutch national, nationaliteit has code 0002
    Given the person with citizen service number '000000115' has a 'nationaliteit' with the following data
    | nationaliteit (05.10) | reden opnemen (63.10) | datum ingang geldigheid (85.10) |
    | 0002                  | 310                   | 19570116                        |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000115                       |
    | fields              | nationaliteiten                 |
    Then the response has a person with a 'nationaliteit' with the following data
    | naam                       | waarde                                  |
    | nationaliteit.code         | 0002                                    |
    | nationaliteit.omschrijving | Behandeld als Nederlander               |
    | redenOpname.code           | 310                                     |
    | redenOpname.omschrijving   | Vaststelling bijzonder Nederlanderschap |
    | datumIngangGeldigheid      | 19570116                                |

  Scenario: the person has an unknown nationality
    Given the person with citizen service number '000000048' has a 'nationaliteit' with the following data
    | nationaliteit (05.10) | reden opnemen (63.10) | datum ingang geldigheid (85.10) |
    | 0000                  | 311                   | 00000000                        |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000048                       |
    | fields              | nationaliteiten                 |
    Then the response has a person with a 'nationaliteit' with the following data
    | naam                       | waarde                               |
    | nationaliteit.code         | 0000                                 |
    | nationaliteit.omschrijving | Onbekend                             |
    | redenOpname.code           | 311                                  |
    | redenOpname.omschrijving   | Vaststelling onbekende nationaliteit |
    | datumIngangGeldigheid      | 00000000                             |

  Scenario: an ended registration of a foreign nationality
    Given the person with citizen service number '000000061' has a 'nationaliteit' with the following data
    | nationaliteit (05.10) | reden opnemen (63.10) | datum ingang geldigheid (85.10) |
    | 0263                  | 301                   | 20100801                        |
    And the 'nationaliteit' has been changed to the following data
    | reden beëindigen (64.10) | datum ingang geldigheid (85.10) |
    | 404                      | 20150131                        |
    And the person has another 'nationaliteit' with the following data
    | nationaliteit (05.10) | reden opnemen (63.10) | datum ingang geldigheid (85.10) |
    | 0001                  | 017                   | 20100801                        |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000061                       |
    | fields              | nationaliteiten                 |
    Then the response has a person with a 'nationaliteit' with the following data
    | naam                       | waarde                                               |
    | nationaliteit.code         | 0001                                                 |
    | nationaliteit.omschrijving | Nederlandse                                          |
    | redenOpname.code           | 017                                                  |
    | redenOpname.omschrijving   | Rijkswet op het Nederlanderschap 1984, art. 3, lid 1 |
    | datumIngangGeldigheid      | 20100801                                             |

  Scenario: loss of bijzonder Nederlanderschap
    Given the person with citizen service number '000000073' has a 'nationaliteit' with the following data
    | reden opnemen (63.10) | bijzonder Nederlanderschap (65.10) | datum ingang geldigheid (85.10) |
    | 310                   | V                                  | 20010319                        |
    And the 'nationaliteit' has been changed to the following data
    | reden beëindigen (64.10) | datum ingang geldigheid (85.10) |
    | 410                      | 20190604                        |
    And the person has another 'nationaliteit' with the following data
    | nationaliteit (05.10) | reden opnemen (63.10) | datum ingang geldigheid (85.10) |
    | 0001                  | 017                   | 20190602                        |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000073                       |
    | fields              | nationaliteiten                 |
    Then the response has a person with a 'nationaliteit' with the following data
    | naam                       | waarde                                               |
    | nationaliteit.code         | 0001                                                 |
    | nationaliteit.omschrijving | Nederlandse                                          |
    | redenOpname.code           | 017                                                  |
    | redenOpname.omschrijving   | Rijkswet op het Nederlanderschap 1984, art. 3, lid 1 |
    | datumIngangGeldigheid      | 20190602                                             |

  Scenario: the nationality is incorrect
    Given the person with citizen service number '000000085' has a 'nationaliteit' with the following data
    | nationaliteit (05.10) | reden opnemen (63.10) | datum ingang geldigheid (85.10) |
    | 0100                  | 301                   | 20200713                        |
    And the 'nationaliteit' has been corrected to the following data
    | datum ingang geldigheid (85.10) |
    | 20200727                        |
    And the person has another 'nationaliteit' with the following data
    | nationaliteit (05.10) | reden opnemen (63.10) | datum ingang geldigheid (85.10) |
    | 0263                  | 301                   | 20100801                        |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000085                       |
    | fields              | nationaliteiten                 |
    Then the response has a person with a 'nationaliteit' with the following data
    | naam                       | waarde                                   |
    | nationaliteit.code         | 0263                                     |
    | nationaliteit.omschrijving | Surinaamse                               |
    | redenOpname.code           | 301                                      |
    | redenOpname.omschrijving   | Vaststelling bezit vreemde nationaliteit |
    | datumIngangGeldigheid      | 20100801                                 |

  Scenario: an updated start date of validity
    Given the person with citizen service number '000000267' has a 'nationaliteit' with the following data
    | nationaliteit (05.10) | reden opnemen (63.10) | onjuist (84.10) | datum ingang geldigheid (85.10) |
    | 0100                  | 311                   | O               | 20200713                        |
    And the 'nationaliteit' has been changed to the following data
    | nationaliteit (05.10) | reden opnemen (63.10) | datum ingang geldigheid (85.10) |
    | 0100                  | 311                   | 20200727                        |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000267                       |
    | fields              | nationaliteiten                 |
    Then the response has a person with a 'nationaliteit' with the following data
    | naam                       | waarde                               |
    | nationaliteit.code         | 0100                                 |
    | nationaliteit.omschrijving | Algerijnse                           |
    | redenOpname.code           | 311                                  |
    | redenOpname.omschrijving   | Vaststelling onbekende nationaliteit |
    | datumIngangGeldigheid      | 20200727                             |

  Scenario: the nationality changed to bijzonder Nederlanderschap
    Given the person with citizen service number '000000267' has a 'nationaliteit' with the following data
    | nationaliteit (05.10) | reden opnemen (63.10) | datum ingang geldigheid (85.10) |
    | 0100                  | 301                   | 20200713                        |
    And the 'nationaliteit' has been changed to the following data
    | reden opnemen (63.10) | bijzonder Nederlanderschap (65.10) | datum ingang geldigheid (85.10) |
    | 310                   | V                                  | 20200724                        |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000267                       |
    | fields              | nationaliteiten                 |
    Then the response has a person with a 'nationaliteit' with the following data
    | naam                                | waarde                                  |
    | aanduidingBijzonderNederlanderschap | V                                       |
    | redenOpname.code                    | 310                                     |
    | redenOpname.omschrijving            | Vaststelling bijzonder Nederlanderschap |
    | datumIngangGeldigheid               | 20200724                                |

  Scenario: the person has only a nationality that has ended
    Given the person with citizen service number '000000012' has a 'nationaliteit' with the following data
    | naam                  | waarde |
    | nationaliteit (05.10) | 0001   |
    And the 'nationaliteit' has been changed to the following data
    | naam                            | waarde |
    | reden beëindigen (64.10)        | 410    |
    | datum ingang geldigheid (85.10) | morgen |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000012                       |
    | fields              | nationaliteiten                 |
    Then the response has a person without 'nationaliteit' data

  Scenario: the person has no nationality
    Given the person with citizen service number '000000061' has the following data
    | naam                            | waarde          |
    | voornamen (02.10)               | Daan            |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000061                       |
    | fields              | nationaliteiten                 |
    Then the response has a person without 'nationaliteit' data