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

ZoekMetGeslachtsnaamEnGeboortedatum with diacritics, wildcard and case insensitivity

#language: en

@gba
Feature: ZoekMetGeslachtsnaamEnGeboortedatum with diacritics, wildcard and case insensitivity

    Scenario Outline: searching by geslachtsnaam and voornamen searches with or without diacritics, case-insensitively and with a wildcard
      Given the person with citizen service number '000000024' has the following data
      | geboortedatum (03.10) | geslachtsnaam (02.40) | geslachtsnaam (diakrieten) | voornamen (02.10) | voornamen (diakrieten) |
      | 19830526              | Gundogan              | Gündoğan                   | Zoe Zumra         | Zoë Zümra              |
      When gba persons are searched with the following parameters
      | naam          | waarde                              |
      | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
      | geslachtsnaam | <geslachtsnaam>                     |
      | voornamen     | <voornamen>                         |
      | 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 | 000000024 |

      Examples:
      | geslachtsnaam | voornamen |
      | Gundogan      | Zoe Zumra |
      | Gündoğan      | Zoe Zumra |
      | Gündoğan      | Zoë Zümra |
      | Gundogan      | Zoë Zümra |
      | gundogan      | zoe zumra |
      | gündoğan      | zoe zumra |
      | gündoğan      | zoë zümra |
      | gundogan      | zoë zümra |
      | GUNDOGAN      | ZOE ZUMRA |
      | GÜNDOĞAN      | ZOE ZUMRA |
      | GÜNDOĞAN      | ZOË ZÜMRA |
      | GUNDOGAN      | ZOË ZÜMRA |
      | gundo*        | zoe zumra |
      | gündo*        | zoe zumra |
      | gündo*        | zoë zümra |
      | gundo*        | zoë zümra |
      | gundogan      | zoe*      |
      | gündoğan      | zoe*      |
      | gündoğan      | zoë*      |
      | gundogan      | zoë*      |
      | gundo*        | zoe*      |
      | gündo*        | zoe*      |
      | gündo*        | zoë*      |
      | gundo*        | zoë*      |
      | GUNDO*        | ZOE ZUMRA |
      | GÜNDO*        | ZOE ZUMRA |
      | GÜNDO*        | ZOË ZÜMRA |
      | GUNDO*        | ZOË ZÜMRA |
      | GUNDOGAN      | ZOE*      |
      | GÜNDOĞAN      | ZOE*      |
      | GÜNDOĞAN      | ZOË*      |
      | GUNDOGAN      | ZOË*      |
      | GUNDO*        | ZOE*      |
      | GÜNDO*        | ZOE*      |
      | GÜNDO*        | ZOË*      |
      | GUNDO*        | ZOË*      |

    Scenario Outline: Where you use a diacritic in a parameter, it must also be used when searching
      Given the person with citizen service number '000000024' has the following data
      | geboortedatum (03.10) | geslachtsnaam (02.40) | geslachtsnaam (diakrieten) | voornamen (02.10) | voornamen (diakrieten) |
      | 19830526              | Gundogan              | Gündoğan                   | Michel            | Michèl                 |
      And the person with citizen service number '000000048' has the following data
      | geboortedatum (03.10) | geslachtsnaam (02.40) | geslachtsnaam (diakrieten) | voornamen (02.10) | voornamen (diakrieten) |
      | 19830526              | Gundogan              |                            | Michel            |                        |
      When gba persons are searched with the following parameters
      | naam          | waarde                              |
      | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
      | geslachtsnaam | <geslachtsnaam>                     |
      | voornamen     | <voornamen>                         |
      | geboortedatum | 1983-05-26                          |
      | fields        | burgerservicenummer                 |
      Then the response has <aantal> persons

      Examples:
      | geslachtsnaam | voornamen | aantal |
      | Gundogan      | Michel    | 2      |
      | Gündoğan      | Michel    | 1      |
      | Gundogan      | Michèl    | 1      |