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

Persoon: supplying inOnderzoek when requesting nationaliteit data

#language: en

@gba
Feature: Persoon: supplying inOnderzoek when requesting nationaliteit data

    Background:
      Given the person with citizen service number '000000024' has the following data
      | aanduiding in onderzoek (83.10) | datum ingang onderzoek (83.20) |
      | 010000                          | 20230101                       |
      And the person has a parent '1' with the following data
      | burgerservicenummer (01.20) | aanduiding in onderzoek (83.10) | datum ingang onderzoek (83.20) |
      | 222222222                   | 020000                          | 20230102                       |
      And the person has a 'nationaliteit' with the following data
      | nationaliteit (05.10) | aanduiding in onderzoek (83.10) | datum ingang onderzoek (83.20) |
      | 0052                  | 040000                          | 20230104                       |
      And the person has a 'partner' with the following data
      | burgerservicenummer (01.20) | aanduiding in onderzoek (83.10) | datum ingang onderzoek (83.20) |
      | 555555555                   | 050000                          | 20230105                       |
      And the person has the following 'overlijden' data
      | datum overlijden (08.10) | aanduiding in onderzoek (83.10) | datum ingang onderzoek (83.20) |
      | 20020701                 | 060000                          | 20230106                       |
      And the person has the following 'verblijfplaats' data
      | land adres buitenland (13.10) | aanduiding in onderzoek (83.10) | datum ingang onderzoek (83.20) |
      | 0000                          | 080000                          | 20230108                       |
      And the person has a 'kind' with the following data
      | burgerservicenummer (01.20) | aanduiding in onderzoek (83.10) | datum ingang onderzoek (83.20) |
      | 999999999                   | 090000                          | 20230109                       |
      And the person has the following 'verblijfstitel' data
      | aanduiding verblijfstitel (39.10) | aanduiding in onderzoek (83.10) | datum ingang onderzoek (83.20) |
      | 37                                | 100000                          | 20230110                       |
      And the person has the following 'gezagsverhouding' data
      | indicatie curateleregister (33.10) | indicatie gezag minderjarige (32.10) | aanduiding in onderzoek (83.10) | datum ingang onderzoek (83.20) |
      | 1                                  | 12                                   | 110000                          | 20230111                       |

  Rule: onderzoek is supplied where at least one item of data from that category has been requested

    Scenario Outline: several categories are under investigation and <fields> from the category Nationaliteit is requested
      When gba persons are searched with the following parameters
      | naam                | waarde                          |
      | type                | RaadpleegMetBurgerservicenummer |
      | burgerservicenummer | 000000024                       |
      | fields              | nationaliteiten.<fields>        |
      Then the response has a person with a 'nationaliteit' with the following data
      | naam                                      | waarde    |
      | nationaliteit.code                        | 0052      |
      | nationaliteit.omschrijving                | Belgische |
      | inOnderzoek.aanduidingGegevensInOnderzoek | 040000    |
      | inOnderzoek.datumIngangOnderzoek          | 20230104  |

      Examples:
      | fields                            |
      | redenOpname                       |
      | redenOpname.code                  |
      | redenOpname.omschrijving          |
      | type                              |
      | datumIngangGeldigheid             |
      | datumIngangGeldigheid.langFormaat |
      | datumIngangGeldigheid.type        |
      | datumIngangGeldigheid.datum       |
      | datumIngangGeldigheid.onbekend    |
      | datumIngangGeldigheid.jaar        |
      | datumIngangGeldigheid.maand       |
      | nationaliteit.code                |
      | nationaliteit.omschrijving        |