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

verblijfplaats fields with default values are supplied unchanged

# language: en

@gba
Feature: verblijfplaats fields with default values are supplied unchanged

  Where specific values are reserved in the registry for an unknown value, these values are supplied unchanged by the GBA API.
  Where an element in the registry has a default value, meaning that the value is unknown, the corresponding field is included in the response with that value.


Rule: the following default values are supplied unchanged with the verblijfplaats
  This concerns the following properties and default values of the person:
  | property                                         | standaardwaarde  |
  | ------------------------------------------------ | ---------------- |
  | verblijfplaats.straat                            | .                |
  | verblijfplaats.huisnummer                        | 0                |
  | verblijfplaats.woonplaats                        | .                |
  | verblijfplaats.nummeraanduidingIdentificatie     | 0000000000000000 |
  | verblijfplaats.adresseerbaarObjectIdentificatie  | 0000000000000000 |
  | verblijfplaats.land                              | 0000             |

  Scenario: unknown value "." for straatnaam
    Given the person with citizen service number '000000164' has the following 'verblijfplaats' data
    | naam                  | waarde |
    | functie adres (10.10) | W      |
    And the 'verblijfplaats' has the following 'adres' data
    | naam                 | waarde |
    | gemeentecode (92.10) | 0518   |
    | straatnaam (11.10)   | .      |
    | huisnummer (11.20)   | 1      |
    When gba persons are searched with the following parameters
    | naam                | waarde                                       |
    | type                | RaadpleegMetBurgerservicenummer              |
    | burgerservicenummer | 000000164                                    |
    | fields              | verblijfplaats.verblijfadres.korteStraatnaam |
    Then the response has a person with the following 'verblijfplaats' data
    | naam   | waarde |
    | straat | .      |

  Scenario: unknown value "0" for huisnummer
    Given the person with citizen service number '000000176' has the following 'verblijfplaats' data
    | naam                  | waarde |
    | functie adres (10.10) | W      |
    And the 'verblijfplaats' has the following 'adres' data
    | naam                 | waarde     |
    | gemeentecode (92.10) | 0518       |
    | straatnaam (11.10)   | een straat |
    | huisnummer (11.20)   | 0          |
    When gba persons are searched with the following parameters
    | naam                | waarde                                  |
    | type                | RaadpleegMetBurgerservicenummer         |
    | burgerservicenummer | 000000176                               |
    | fields              | verblijfplaats.verblijfadres.huisnummer |
    Then the response has a person with the following 'verblijfplaats' data
    | naam       | waarde     |
    | straat     | een straat |
    | huisnummer | 0          |
 
  Scenario Outline: unknown value "<waarde>" for <element>
    Given the person with citizen service number '000000188' has the following 'verblijfplaats' data
    | naam                  | waarde |
    | functie adres (10.10) | W      |
    And the 'verblijfplaats' has the following 'adres' data
    | naam                 | waarde     |
    | gemeentecode (92.10) | 0344       |
    | straatnaam (11.10)   | een straat |
    | <element>            | <waarde>   |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000188                       |
    | fields              | <fields>                        |
    Then the response has a person with the following 'verblijfplaats' data
    | naam    | waarde     |
    | straat  | een straat |
    | <field> | <waarde>   |

    Examples:
    | fields                                          | field                            | element                                    | waarde           |
    | verblijfplaats.verblijfadres.woonplaats         | woonplaats                       | woonplaats (11.70)                         | .                |
    | verblijfplaats.nummeraanduidingIdentificatie    | nummeraanduidingIdentificatie    | identificatiecode nummeraanduiding (11.90) | 0000000000000000 |
    | verblijfplaats.adresseerbaarObjectIdentificatie | adresseerbaarObjectIdentificatie | identificatiecode verblijfplaats (11.80)   | 0000000000000000 |

Rule: date fields with value "00000000" are supplied
  
  Scenario: an entirely unknown start date of the address occupancy in adres
    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) | 0344       |
    | straatnaam (11.10)   | een straat |
    When gba 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     |
    | straat                   | een straat |
    | datumAanvangAdreshouding | 00000000   |

  Scenario: an entirely unknown date in verblijfplaats buitenland
    Given the person with citizen service number '000000383' has the following 'verblijfplaats' data
    | naam                                   | waarde   |
    | land adres buitenland (13.10)          | 6014     |
    | datum aanvang adres buitenland (13.20) | 00000000 |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000383                       |
    | fields              | verblijfplaats.datumVan         |
    Then the response has a person with only the following 'verblijfplaats' data
    | naam                        | waarde                       |
    | land.code                   | 6014                         |
    | land.omschrijving           | Verenigde Staten van Amerika |
    | datumAanvangAdresBuitenland | 00000000                     |

Rule: where no corresponding value for a code occurs in the table, only the code is supplied

  Scenario: the code for the country of the foreign address (13.10) does not occur in the table Landen
    Given the person with citizen service number '000000255' has the following 'verblijfplaats' data
    | land adres buitenland (13.10) |
    | 1234                          |
    When gba persons are searched with the following parameters
    | naam                | waarde                            |
    | type                | RaadpleegMetBurgerservicenummer   |
    | burgerservicenummer | 000000255                         |
    | fields              | verblijfplaats.verblijfadres.land |
    Then the response has a person with only the following 'verblijfplaats' data
    | naam      | waarde |
    | land.code | 1234   |