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

ZoekMetGeslachtsnaamEnGeboortedatum of a personal record with suspension of maintenance

#language: en

@gba
Feature: ZoekMetGeslachtsnaamEnGeboortedatum 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 data
      | geboortedatum (03.10) | geslachtsnaam (02.40) |
      | 19830526              | Maassen               |
      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          | ZoekMetGeslachtsnaamEnGeboortedatum |
      | geslachtsnaam | Maassen                             |
      | geboortedatum | 1983-05-26                          |
      | fields        | burgerservicenummer                 |
      Then the response has 0 persons

    Scenario: the personal record has suspension of maintenance with reason "W"
      Given the person with citizen service number '000000024' has the following data
      | geboortedatum (03.10) | geslachtsnaam (02.40) |
      | 19830526              | Maassen               |
      And the person has the following 'inschrijving' data
      | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) |
      | 20220829                             | W                                    |
      And the person with citizen service number '000000048' has the following data
      | geboortedatum (03.10) | geslachtsnaam (02.40) |
      | 19830526              | Maassen               |
      When gba persons are searched with the following parameters
      | naam          | waarde                              |
      | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
      | geslachtsnaam | Maassen                             |
      | geboortedatum | 1983-05-26                          |
      | fields        | burgerservicenummer                 |
      Then the response has 1 person
      And the response has a person with the following data
      | naam                | waarde    |
      | burgerservicenummer | 000000048 |

  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 data
      | geboortedatum (03.10) | geslachtsnaam (02.40) |
      | 19830526              | Maassen               |
      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          | ZoekMetGeslachtsnaamEnGeboortedatum |
      | geslachtsnaam | Maassen                             |
      | geboortedatum | 1983-05-26                          |
      | fields        | burgerservicenummer                 |
      Then the response has 0 persons

    Scenario: the personal record has suspension of maintenance with reason "F"
      Given the person with citizen service number '000000024' has the following data
      | geboortedatum (03.10) | geslachtsnaam (02.40) |
      | 19830526              | Maassen               |
      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 '000000048' has the following data
      | geboortedatum (03.10) | geslachtsnaam (02.40) |
      | 19830526              | Maassen               |
      When gba persons are searched with the following parameters
      | naam          | waarde                              |
      | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
      | geslachtsnaam | Maassen                             |
      | geboortedatum | 1983-05-26                          |
      | fields        | burgerservicenummer                 |
      Then the response has 1 person
      And the response has a person with the following data
      | naam                | waarde    |
      | burgerservicenummer | 000000048 |

    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 the person with citizen service number '000000024' has the following data
      | geboortedatum (03.10) | geslachtsnaam (02.40) | voornamen (02.10) |
      | 19830526              | Maassen               | Pieter            |
      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
      | geboortedatum (03.10) | geslachtsnaam (02.40) | voornamen (02.10) |
      | 19830526              | Maassen               | Peter             |
      When gba persons are searched with the following parameters
      | naam          | waarde                              |
      | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
      | geslachtsnaam | Maassen                             |
      | geboortedatum | 1983-05-26                          |
      | fields        | burgerservicenummer,naam.voornamen  |
      Then the response has 1 person
      And the response has a person with the following data
      | naam                | waarde    |
      | burgerservicenummer | 000000024 |
      | naam.voornamen      | Peter     |

  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 data
      | geboortedatum (03.10) | geslachtsnaam (02.40) |
      | 19830526              | Maassen               |
      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                       | ZoekMetGeslachtsnaamEnGeboortedatum |
      | geslachtsnaam              | Maassen                             |
      | geboortedatum              | 1983-05-26                          |
      | 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 data
      | geboortedatum (03.10) | geslachtsnaam (02.40) |
      | 19830526              | Maassen               |
      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                       | ZoekMetGeslachtsnaamEnGeboortedatum |
      | geslachtsnaam              | Maassen                             |
      | geboortedatum              | 1983-05-26                          |
      | 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 data
      | geboortedatum (03.10) | geslachtsnaam (02.40) |
      | 19830526              | Maassen               |
      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          | ZoekMetGeslachtsnaamEnGeboortedatum |
      | geslachtsnaam | Maassen                             |
      | geboortedatum | 1983-05-26                          |
      | fields        | burgerservicenummer                 |
      Then the response has 1 person

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