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

requesting naam fields with fields (PersoonBeperkt)

#language: en

@gba
Feature: requesting naam fields with fields (PersoonBeperkt)

  Scenario: 'voorletters' is requested with field path 'naam.voorletters'
    Given the person with citizen service number '000000413' has the following data
    | naam                  | waarde     |
    | geslachtsnaam (02.40) | Maassen    |
    | geboortedatum (03.10) | 19830526   |
    | voornamen (02.10)     | Jan Pieter |
    When gba persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | naam.voorletters                    |
    Then the response has a person with only the following 'naam' data
    | naam      | waarde     |
    | voornamen | Jan Pieter |

  Scenario Outline: 'volledige naam' is requested with field path '<fields>'
    Given the person with citizen service number '000000152' has the following data
    | naam                                 | waarde     |
    | geslachtsaanduiding (04.10)          | V          |
    | geslachtsnaam (02.40)                | Maassen    |
    | geboortedatum (03.10)                | 19830526   |
    | voorvoegsel (02.30)                  | van den    |
    | voornamen (02.10)                    | Jan Pieter |
    | adellijke titel of predicaat (02.20) | JH         |
    When gba persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | <fields>                            |
    Then the response has a person with the following data
    | naam                  | waarde |
    | geslacht.code         | V      |
    | geslacht.omschrijving | vrouw  |
    And the person has the following 'naam' data
    | naam                                 | waarde     |
    | geslachtsnaam                        | Maassen    |
    | voorvoegsel                          | van den    |
    | voornamen                            | Jan Pieter |
    | adellijkeTitelPredicaat.code         | JH         |
    | adellijkeTitelPredicaat.soort        | predicaat  |
    | adellijkeTitelPredicaat.omschrijving | jonkheer   |

    Examples:
    | fields             |
    | naam.volledigeNaam |
    | naam               |