HAAL✻CENTRAAL English translation
BRP API / Personen / Features / onbekendwaardes

As a user of the API I do not want to receive unknown values within locatie

# language: en

Feature: As a user of the API I do not want to receive unknown values within locatie
  so that I do not have to interpret it and do not have to write code to handle this situation

  Where specific values are reserved in the registry for an unknown value, these values are not passed on in the API.
  Where an element in the registry has a default value, meaning that the value is unknown, the corresponding field is not included in the response.


Rule: date fields with value "00000000" are translated into DatumOnbekend

  Scenario: an entirely unknown start date of the address occupancy in verblijfplaats
    Given the person with citizen service number '000000371' has the following 'verblijfplaats' data
    | naam                               | waarde   |
    | functie adres (10.10)              | W        |
    | datum aanvang adreshouding (10.30) | 00000000 |
    And the 'verblijfplaats' has the following 'adres' data
    | naam                        | waarde                      |
    | gemeentecode (92.10)        | 0518                        |
    | locatiebeschrijving (12.10) | Woonboot bij de Grote Sloot |
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000371                       |
    | fields              | verblijfplaats.datumVan         |
    Then the response has a person with only the following 'verblijfplaats' data
    | naam                 | waarde        |
    | type                 | Locatie       |
    | datumVan.type        | DatumOnbekend |
    | datumVan.onbekend    | true          |
    | datumVan.langFormaat | onbekend      |