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

Persoon: supplying inOnderzoek when requesting persoon data

#language: en

@gba
Feature: Persoon: supplying inOnderzoek when requesting persoon 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 Persoon is requested
      When gba persons are searched with the following parameters
      | naam                | waarde                          |
      | type                | RaadpleegMetBurgerservicenummer |
      | burgerservicenummer | 000000024                       |
      | fields              | <fields>                        |
      Then the response has a person with the following data
      | naam                                             | waarde   |
      | <fields>                                         | <waarde> |
      | persoonInOnderzoek.aanduidingGegevensInOnderzoek | 010000   |
      | persoonInOnderzoek.datumIngangOnderzoek          | 20230101 |

      Examples:
      | fields                                    | waarde    |
      | aNummer                                   |           |
      | burgerservicenummer                       | 000000024 |
      | geboorte                                  |           |
      | geboorte.datum                            |           |
      | geboorte.datum.langFormaat                |           |
      | geboorte.datum.type                       |           |
      | geboorte.datum.datum                      |           |
      | geboorte.datum.onbekend                   |           |
      | geboorte.datum.jaar                       |           |
      | geboorte.datum.maand                      |           |
      | geboorte.land                             |           |
      | geboorte.land.code                        |           |
      | geboorte.land.omschrijving                |           |
      | geboorte.plaats                           |           |
      | geboorte.plaats.code                      |           |
      | geboorte.plaats.omschrijving              |           |
      | geslacht                                  |           |
      | geslacht.code                             |           |
      | geslacht.omschrijving                     |           |
      | leeftijd                                  |           |
      | naam                                      |           |
      | naam.adellijkeTitelPredicaat              |           |
      | naam.adellijkeTitelPredicaat.code         |           |
      | naam.adellijkeTitelPredicaat.omschrijving |           |
      | naam.adellijkeTitelPredicaat.soort        |           |
      | naam.geslachtsnaam                        |           |
      | naam.volledigeNaam                        |           |
      | naam.voorletters                          |           |
      | naam.voornamen                            |           |
      | naam.voorvoegsel                          |           |
      | naam.aanduidingNaamgebruik                |           |
      | naam.aanduidingNaamgebruik.code           |           |
      | naam.aanduidingNaamgebruik.omschrijving   |           |