HAALCENTRAAL English translation
BRP API / Personen / Features / opschorting-bijhouding-gba

ZoekMetPostcodeEnHuisnummer of a personal record with suspension of maintenance

#language: en

@gba
Feature: ZoekMetPostcodeEnHuisnummer of a personal record with suspension of maintenance

  Rule: A personal record with reason for suspension of maintenance "W" (erasure) is not supplied

    Scenario: the personal record has suspension of maintenance with reason "W"
      Given the person with citizen service number '000000024' has the following 'verblijfplaats' data
      | gemeente van inschrijving (09.10) |
      | 0599                              |
      And the 'verblijfplaats' has the following 'adres' data
      | gemeente_code | postcode (11.60) | huisnummer (11.20) |
      | 0599          | 2628HJ           | 2                  |
      And the person has the following 'inschrijving' data
      | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) |
      | 20220829                             | W                                    |
      When gba persons are searched with the following parameters
      | naam       | waarde                      |
      | type       | ZoekMetPostcodeEnHuisnummer |
      | postcode   | 2628HJ                      |
      | huisnummer | 2                           |
      | fields     | burgerservicenummer         |
      Then the response has 0 persons


  Rule: A personal record with reason for suspension of maintenance "F" (error) is not supplied

    Scenario: the personal record has suspension of maintenance with reason "F"
      Given the person with citizen service number '000000024' has the following 'verblijfplaats' data
      | gemeente van inschrijving (09.10) |
      | 0599                              |
      And the 'verblijfplaats' has the following 'adres' data
      | gemeente_code | postcode (11.60) | huisnummer (11.20) |
      | 0599          | 2628HJ           | 2                  |
      And the person has the following 'inschrijving' data
      | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) |
      | 20220829                             | F                                    |
      When gba persons are searched with the following parameters
      | naam       | waarde                      |
      | type       | ZoekMetPostcodeEnHuisnummer |
      | postcode   | 2628HJ                      |
      | huisnummer | 2                           |
      | fields     | burgerservicenummer         |
      Then the response has 0 persons

    Scenario: the personal record has suspension of maintenance with reason "F" and the same citizen service number has been used on another personal record
      Given an address has the following data
      | gemeente_code | postcode (11.60) | huisnummer (11.20) |
      | 0599          | 2628HJ           | 2                  |
      And the person with citizen service number '000000024' has the following data
      | geslachtsnaam (02.40) |
      | Maassen               |
      And the person is registered at the address with the following data
      | gemeente van inschrijving (09.10) |
      | 0599                              |
      And the person has the following 'inschrijving' data
      | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) |
      | 20220829                             | F                                    |
      And the person with citizen service number '000000024' has the following data
      | geslachtsnaam (02.40) |
      | Rafi               |
      And the person is registered at the address with the following data
      | gemeente van inschrijving (09.10) |
      | 0599                              |
      When gba persons are searched with the following parameters
      | naam       | waarde                                 |
      | type       | ZoekMetPostcodeEnHuisnummer            |
      | postcode   | 2628HJ                                 |
      | huisnummer | 2                                      |
      | fields     | burgerservicenummer,naam.geslachtsnaam |
      Then the response has 1 person
      And the response has a person with the following data
      | naam                | waarde    |
      | burgerservicenummer | 000000024 |
      | naam.geslachtsnaam  | Rafi      |


  Rule: A personal record with a reason for suspension of maintenance other than "O" (deceased) is found only when the parameter inclusiefOverledenPersonen is used with value true

    Scenario: the personal record has suspension of maintenance with reason "O" and inclusiefOverledenPersonen is not used
      Given the person with citizen service number '000000024' has the following 'verblijfplaats' data
      | gemeente van inschrijving (09.10) |
      | 0599                              |
      And the 'verblijfplaats' has the following 'adres' data
      | gemeente_code | postcode (11.60) | huisnummer (11.20) |
      | 0599          | 2628HJ           | 2                  |
      And the person has the following 'inschrijving' data
      | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) |
      | 20220829                             | O                                    |
      When gba persons are searched with the following parameters
      | naam       | waarde                      |
      | type       | ZoekMetPostcodeEnHuisnummer |
      | postcode   | 2628HJ                      |
      | huisnummer | 2                           |
      | fields     | burgerservicenummer         |
      Then the response has 0 persons

    Scenario Outline: the personal record has suspension of maintenance with reason "O" and inclusiefOverledenPersonen has value <inclusiefOverledenPersonen>
      Given the person with citizen service number '000000024' has the following 'verblijfplaats' data
      | gemeente van inschrijving (09.10) |
      | 0599                              |
      And the 'verblijfplaats' has the following 'adres' data
      | gemeente_code | postcode (11.60) | huisnummer (11.20) |
      | 0599          | 2628HJ           | 2                  |
      And the person has the following 'inschrijving' data
      | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) |
      | 20220829                             | O                                    |
      When gba persons are searched with the following parameters
      | naam                       | waarde                       |
      | type                       | ZoekMetPostcodeEnHuisnummer  |
      | postcode                   | 2628HJ                       |
      | huisnummer                 | 2                            |
      | fields                     | burgerservicenummer          |
      | inclusiefOverledenPersonen | <inclusiefOverledenPersonen> |
      Then the response has <aantal gevonden personen> person

      Examples:
      | inclusiefOverledenPersonen | aantal gevonden personen |
      | false                      | 0                        |
      | true                       | 1                        |


  Rule: A personal record with any other reason for suspension of maintenance can be found and supplied

    Scenario Outline: the personal record has suspension of maintenance with reason "<opschorting>"
      Given the person with citizen service number '000000024' has the following 'verblijfplaats' data
      | gemeente van inschrijving (09.10) |
      | 0599                              |
      And the 'verblijfplaats' has the following 'adres' data
      | gemeente_code | postcode (11.60) | huisnummer (11.20) |
      | 0599          | 2628HJ           | 2                  |
      And the person has the following 'inschrijving' data
      | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) |
      | 20220829                             | <opschorting>                        |
      When gba persons are searched with the following parameters
      | naam       | waarde                      |
      | type       | ZoekMetPostcodeEnHuisnummer |
      | postcode   | 2628HJ                      |
      | huisnummer | 2                           |
      | fields     | burgerservicenummer         |
      Then the response has 1 person

      Examples:
      | opschorting | omschrijving              |
      | E           | emigratie                 |
      | M           | ministerieel besluit      |
      | R           | pl is aangelegd in de rni |
      | .           | onbekend                  |