HAALCENTRAAL English translation
BRP API / Personen / Features / gba

Search by surname and date of birth

#language: en

@gba
Feature: Search by surname and date of birth

Rule: voorvoegsel is not case-sensitive

  Scenario: Search with the full voorvoegsel in capitals
    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 with citizen service number '000000025' has the following data
    | geboortedatum (03.10) | geslachtsnaam (02.40) | voornamen (02.10) | voorvoegsel (02.30) |
    | 19830526              | Maassen               | Jan Peter         | van                 |
    When gba persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | voorvoegsel   | VAN                                 |
    | 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 | 000000025 |

  Scenario: Voorvoegsel does not have to be a valid voorvoegsel in table 36 Voorvoegsels
    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 with citizen service number '000000048' has the following data
    | geboortedatum (03.10) | geslachtsnaam (02.40) | voornamen (02.10) | voorvoegsel (02.30) |
    | 19830526              | Maassen               | Jan Peter         | Iets                |
    When gba persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | voorvoegsel   | iets                                |
    | 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: geslacht is not case-sensitive

  Scenario: Search with geslacht in lower case
    Given the person with citizen service number '000000027' has the following data
    | geboortedatum (03.10) | geslachtsnaam (02.40) | geslachtsaanduiding (04.10) |
    | 19830526              | Aedel                 | V                           |
    When gba persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Aedel                               |
    | geslacht      | v                                   |
    | 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 | 000000027 |

Rule: for a deceased person, the date of death must be returned

  Scenario: Search for a deceased person
    Given the person with citizen service number '000000028' has the following data
    | geboortedatum (03.10) | geslachtsnaam (02.40) |
    | 19830526              | Jansen                |
    And the person with citizen service number '000000035' has the following data
    | geboortedatum (03.10) | geslachtsnaam (02.40) |
    | 19830526              | Jansen                |
    And the person has the following 'inschrijving' data
    | naam                                 | waarde |
    | reden opschorting bijhouding (67.20) | O      |
    When gba persons are searched with the following parameters
    | naam                       | waarde                              |
    | type                       | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam              | Jansen                              |
    | inclusiefOverledenPersonen | true                                |
    | geboortedatum              | 1983-05-26                          |
    | fields                     | burgerservicenummer                 |
    Then the response has 2 persons
    And the response has a person with the following data
    | naam                | waarde    |
    | burgerservicenummer | 000000028 |
    And the response has a person with the following data
    | naam                | waarde    |
    | burgerservicenummer | 000000035 |
    And the person has the following 'opschortingBijhouding' data
    | naam               | waarde     |
    | reden.code         | O          |
    | reden.omschrijving | overlijden |