HAAL✻CENTRAAL English translation
BRP API / Personen / Features / vastgesteld-verblijft-niet-op-adres

supplying the 'indicatie vastgesteld verblijft niet op adres' field when requesting address line data

#language: en

Feature: supplying the 'indicatie vastgesteld verblijft niet op adres' field when requesting address line data

  As a consumer
  I want to receive an indication when requesting address line data of a person where it has been established that the person requested no longer resides at the registered address
  So that I do not have to derive this myself from the in onderzoek designation value

 Rule: aanduiding in onderzoek value '089999' is supplied where the indicatieVastgesteldVerblijftNietOpAdres adressering field and all address line fields supplied are under investigation

  Scenario: the person requested no longer resides at the registered address and one or more address line fields are requested
    Given the person with citizen service number '000000152' has the following 'verblijfplaats' data
    | aanduiding in onderzoek (83.10) | datum ingang onderzoek (83.20) |
    | 089999                          | 20020701                       |
    And the 'verblijfplaats' has the following 'adres' data
    | gemeentecode (92.10) | straatnaam (11.10)       | huisnummer (11.20) | postcode (11.60) | woonplaats (11.70) |
    | 0518                 | Jonkheer van Riemsdijkln | 88                 | 2583XL           | Scheveningen       |
    When persons are searched with the following parameters
    | naam                | waarde                                          |
    | type                | RaadpleegMetBurgerservicenummer                 |
    | burgerservicenummer | 000000152                                       |
    | fields              | adressering.adresregel1,adressering.adresregel2 |
    Then the response has a person with only the following 'adressering' data
    | naam                                                       | waarde                      |
    | adresregel1                                                | Jonkheer van Riemsdijkln 88 |
    | adresregel2                                                | 2583 XL  SCHEVENINGEN       |
    | indicatieVastgesteldVerblijftNietOpAdres                   | true                        |
    | inOnderzoek.adresregel1                                    | true                        |
    | inOnderzoek.adresregel2                                    | true                        |
    | inOnderzoek.datumIngangOnderzoekVerblijfplaats.type        | Datum                       |
    | inOnderzoek.datumIngangOnderzoekVerblijfplaats.datum       | 2002-07-01                  |
    | inOnderzoek.datumIngangOnderzoekVerblijfplaats.langFormaat | 1 juli 2002                 |

  Scenario: the person requested no longer resides at the registered location and one or more address line fields are requested
    Given the person with citizen service number '000000309' has the following 'verblijfplaats' data
    | gemeente van inschrijving (09.10) | functie adres (10.10) | aanduiding in onderzoek (83.10) | datum ingang onderzoek (83.20) |
    | 0518                              | W                     | 089999                          | 20020701                       |
    And the 'verblijfplaats' has the following 'adres' data
    | gemeentecode (92.10) | locatiebeschrijving (12.10)       |
    | 0518                 | Woonboot tegenover de Grote Sloot |
    When persons are searched with the following parameters
    | naam                | waarde                                          |
    | type                | RaadpleegMetBurgerservicenummer                 |
    | burgerservicenummer | 000000309                                       |
    | fields              | adressering.adresregel1,adressering.adresregel2 |
    Then the response has a person with only the following 'adressering' data
    | naam                                                       | waarde                            |
    | adresregel1                                                | Woonboot tegenover de Grote Sloot |
    | adresregel2                                                | 'S-GRAVENHAGE                     |
    | indicatieVastgesteldVerblijftNietOpAdres                   | true                              |
    | inOnderzoek.adresregel1                                    | true                              |
    | inOnderzoek.adresregel2                                    | true                              |
    | inOnderzoek.datumIngangOnderzoekVerblijfplaats.type        | Datum                             |
    | inOnderzoek.datumIngangOnderzoekVerblijfplaats.datum       | 2002-07-01                        |
    | inOnderzoek.datumIngangOnderzoekVerblijfplaats.langFormaat | 1 juli 2002                       |

  Scenario: the person requested no longer resides at the registered location and the whole adressering group is requested
    Given the person with citizen service number '000000309' has the following 'verblijfplaats' data
    | gemeente van inschrijving (09.10) | functie adres (10.10) | aanduiding in onderzoek (83.10) | datum ingang onderzoek (83.20) |
    | 0518                              | W                     | 089999                          | 20020701                       |
    And the 'verblijfplaats' has the following 'adres' data
    | gemeentecode (92.10) | locatiebeschrijving (12.10)       |
    | 0518                 | Woonboot tegenover de Grote Sloot |
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000309                       |
    | fields              | adressering                     |
    Then the response has a person with only the following 'adressering' data
    | naam                                                       | waarde                            |
    | adresregel1                                                | Woonboot tegenover de Grote Sloot |
    | adresregel2                                                | 'S-GRAVENHAGE                     |
    | indicatieVastgesteldVerblijftNietOpAdres                   | true                              |
    | inOnderzoek.adresregel1                                    | true                              |
    | inOnderzoek.adresregel2                                    | true                              |
    | inOnderzoek.adresregel3                                    | true                              |
    | inOnderzoek.land                                           | true                              |
    | inOnderzoek.datumIngangOnderzoekVerblijfplaats.type        | Datum                             |
    | inOnderzoek.datumIngangOnderzoekVerblijfplaats.datum       | 2002-07-01                        |
    | inOnderzoek.datumIngangOnderzoekVerblijfplaats.langFormaat | 1 juli 2002                       |

  Scenario: the person requested no longer resides at the registered location and the whole adresseringBinnenland group is requested
    Given the person with citizen service number '000000309' has the following 'verblijfplaats' data
    | gemeente van inschrijving (09.10) | functie adres (10.10) | aanduiding in onderzoek (83.10) | datum ingang onderzoek (83.20) |
    | 0518                              | W                     | 089999                          | 20020701                       |
    And the 'verblijfplaats' has the following 'adres' data
    | gemeentecode (92.10) | locatiebeschrijving (12.10)       |
    | 0518                 | Woonboot tegenover de Grote Sloot |
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000309                       |
    | fields              | adresseringBinnenland           |
    Then the response has a person with only the following 'adressering' data
    | naam                                                       | waarde                            |
    | adresregel1                                                | Woonboot tegenover de Grote Sloot |
    | adresregel2                                                | 'S-GRAVENHAGE                     |
    | indicatieVastgesteldVerblijftNietOpAdres                   | true                              |
    | inOnderzoek.adresregel1                                    | true                              |
    | inOnderzoek.adresregel2                                    | true                              |
    | inOnderzoek.datumIngangOnderzoekVerblijfplaats.type        | Datum                             |
    | inOnderzoek.datumIngangOnderzoekVerblijfplaats.datum       | 2002-07-01                        |
    | inOnderzoek.datumIngangOnderzoekVerblijfplaats.langFormaat | 1 juli 2002                       |