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

valid fields values for requesting value table fields

# language: en
Feature: valid fields values for requesting value table fields

  Background:
    Given address 'A1'
      | identificatiecode verblijfplaats (11.80) |
      |                         0599010000219679 |
    And 'Pieter', born on 26-05-1983
    * has the following data
      | geslachtsnaam (02.40) | geslachtsaanduiding (04.10) |
      | Maassen               | M                           |
    * 'Pieter' was registered at address 'A1' 3 years ago

  Rule: the full and exact path (case-sensitive) of a date field must be supplied as a fields value in order to request all fields of that field

    Scenario Outline: the geslacht field is requested with fields value 'geslacht'
      When 'geboorte.datum' is requested for persons searched by <zoek methode>
      Then the response has no error message

      Examples:
        | zoek methode                                          |
        | burgerservicenummer van 'Pieter'                      |
        | geslachtsnaam 'Maassen' en geboortedatum '1983-05-26' |

  Rule: all fields of a value table field are supplied where existing or non-existing sub-fields of it are requested

    Scenario Outline: the geslacht field is requested with fields value 'geslacht.<sub-veld>'
      When 'geslacht.<sub-veld>' is requested for persons searched by <zoek methode>
      Then the response has no error message

      Examples:
        | zoek methode                                          | sub-veld     |
        | burgerservicenummer van 'Pieter'                      | code         |
        | geslachtsnaam 'Maassen' en geboortedatum '1983-05-26' | omschrijving |
        | adresseerbaar object identificatie van 'A1'           | nietBestaand |