HAAL✻CENTRAAL English translation
BRP API / Personen / Features / gezagsverhouding-in-onderzoek-gba

Persoon: supplying inOnderzoek when requesting gezagsverhouding data

#language: en

@gba
Feature: Persoon: supplying inOnderzoek when requesting gezagsverhouding 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 Gezagsverhouding 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               |
      | indicatieCurateleRegister                      | <curatele>           |
      | indicatieGezagMinderjarige.code                | <gezag>              |
      | indicatieGezagMinderjarige.omschrijving        | <gezag omschrijving> |
      | gezagInOnderzoek.aanduidingGegevensInOnderzoek | 110000               |
      | gezagInOnderzoek.datumIngangOnderzoek          | 20230111             |

      Examples:
      | fields                                  | curatele | gezag | gezag omschrijving                |
      | indicatieCurateleRegister               | true     |       |                                   |
      | indicatieGezagMinderjarige              |          | 12    | Ouder1 en ouder2 hebben het gezag |
      | indicatieGezagMinderjarige.code         |          | 12    | Ouder1 en ouder2 hebben het gezag |
      | indicatieGezagMinderjarige.omschrijving |          | 12    | Ouder1 en ouder2 hebben het gezag |