person with 'indicatie vastgesteld verblijft niet op adres' in occupancy within a period
#language: en @gba Feature: person with 'indicatie vastgesteld verblijft niet op adres' in occupancy within a period As a consumer I want persons of whom it has been established that they no longer reside at the address not to be supplied as occupants So that I do not have to exclude them as occupants myself A citizen can report to the municipality that someone else is wrongly registered at their address. The municipality then investigates this and may conclude that this other person indeed no longer resides at that address. Where, during the investigation, it is established that a person no longer lives at the address at which they are registered in the BRP, this part of the result of the investigation can already be recorded on the personal record of the person. This is done by setting aanduiding onderzoek 089999. This records that it has been established that a person does not (or no longer) reside at the address at which they are registered, but that the investigation into the (new) residential address is still ongoing. This can prevent problems for the new or former co-occupants. Where an investigation has been closed, it must normally be assumed that the results of the investigation have been processed in the registry. The fact that there is an investigation that has ended with the designation established as no longer an occupant (089999) can then be ignored. It can happen, however, that this investigation is closed without having been completed in substance. This can happen, for example, after the person concerned registers in another municipality. That other municipality often will not or cannot investigate the residence prior to registration in that municipality. The investigation is then closed in the registry without it having been established that the registration of residences is correct. The designation established as no longer an occupant is then still relevant, even though the investigation has ended. Where an investigation ended before the start date of a next stay, we can safely assume that the investigation was also completed in substance. Where an investigation ended on or after the start date of a next stay, we cannot say with certainty whether the investigation was completed in substance or only administratively. In that case we supply the person as a possible occupant. Background: Given address 'A1' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010000000001 | And address 'A2' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010000000002 | Rule: a person with aanduiding in onderzoek value '089999' or '589999' is not supplied as an occupant from the start date of the investigation Scenario Outline: the person no longer resides at the address requested and <scenario> Given the person with citizen service number '000000024' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | aanduiding in onderzoek (83.10) | datum ingang onderzoek (83.20) | datum aanvang adreshouding (10.30) | | 0800 | 089999 | 20220526 | 20200818 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | <datum van> | | datumTot | <datum tot> | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has 0 occupancies Examples: | datum van | datum tot | scenario | | 2022-05-26 | 2023-05-26 | periode begint op de dag ingang onderzoek | | 2022-07-12 | 2022-08-12 | periode begint na de dag ingang onderzoek | Scenario: the person no longer resides at the address requested and is by now registered at another address, and the period falls after the start of the investigation Given the person with citizen service number '000000024' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | aanduiding in onderzoek (83.10) | datum ingang onderzoek (83.20) | datum aanvang adreshouding (10.30) | | 0800 | 589999 | 20220526 | 20200818 | And the person was subsequently registered at address 'A2' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20220810 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2022-06-03 | | datumTot | 2022-07-01 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has 0 occupancies Rule: a person with aanduiding in onderzoek value '089999' or '589999' is supplied as an occupant up to the start date of the investigation Scenario: the person still resides at the address requested and <scenario> Given the person with citizen service number '000000024' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | aanduiding in onderzoek (83.10) | datum ingang onderzoek (83.20) | datum aanvang adreshouding (10.30) | | 0800 | 089999 | 20220526 | 20200818 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | <datum van> | | datumTot | <datum tot> | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode> | | adresseerbaarObjectIdentificatie | 0800010000000001 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000024 | And the occupant has the following 'verblijfplaatsInOnderzoek' data | aanduidingGegevensInOnderzoek | datumIngangOnderzoek | | 089999 | 20220526 | Examples: | datum van | datum tot | periode | scenario | | 2021-01-01 | 2022-01-01 | 2021-01-01 tot 2022-01-01 | periode ligt voor de datum ingang onderzoek | | 2022-04-26 | 2022-05-26 | 2022-04-26 tot 2022-05-26 | periode loopt tot de datum ingang onderzoek | | 2022-01-01 | 2023-01-01 | 2022-01-01 tot 2022-05-26 | periode loopt tot na de datum ingang onderzoek | Scenario: the person no longer resides at the address requested and is by now registered at another address, and <scenario> Given the person with citizen service number '000000024' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | aanduiding in onderzoek (83.10) | datum ingang onderzoek (83.20) | datum aanvang adreshouding (10.30) | | 0800 | 589999 | 20220526 | 20200818 | And the person was subsequently registered at address 'A2' with the following data | datum aanvang adreshouding (10.30) | | 20220810 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | <datum van> | | datumTot | <datum tot> | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode> | | adresseerbaarObjectIdentificatie | 0800010000000001 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000024 | And the occupant has the following 'verblijfplaatsInOnderzoek' data | aanduidingGegevensInOnderzoek | datumIngangOnderzoek | | 589999 | 20220526 | Examples: | datum van | datum tot | periode | scenario | | 2021-01-01 | 2022-01-01 | 2021-01-01 tot 2022-01-01 | periode ligt voor de datum aanvang van het verblijf | | 2022-04-26 | 2022-05-26 | 2022-04-26 tot 2022-05-26 | periode loopt tot de datum ingang onderzoek | | 2022-01-01 | 2023-01-01 | 2022-01-01 tot 2022-05-26 | periode loopt tot na de datum ingang onderzoek | Rule: a person with an investigation that has ended, with aanduiding in onderzoek value '089999' on the current verblijfplaats, is supplied as an occupant Scenario Outline: the person has an investigation that has ended with aanduiding in onderzoek value '089999' and the period overlaps the duration of the investigation Given the person with citizen service number '000000024' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | aanduiding in onderzoek (83.10) | datum ingang onderzoek (83.20) | datum einde onderzoek (83.30) | datum aanvang adreshouding (10.30) | | 0800 | 089999 | 20220526 | 20220810 | 20200818 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | <datum van> | | datumTot | <datum tot> | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode> | | adresseerbaarObjectIdentificatie | 0800010000000001 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000024 | Examples: | datum van | datum tot | periode | scenario | | 2022-01-01 | 2023-01-01 | 2022-01-01 tot 2023-01-01 | periode overlapt de hele duur van het onderzoek | | 2022-01-01 | 2022-05-01 | 2022-01-01 tot 2022-05-01 | periode loopt tot voor ingang onderzoek | | 2022-06-01 | 2022-07-01 | 2022-06-01 tot 2022-07-01 | periode valt binnen onderzoek | Rule: a person with aanduiding in onderzoek value '089999' or '589999' on a historical verblijfplaats, where the investigation ended before the start date of the next verblijfplaats, is supplied as an occupant Scenario Outline: the person has an investigation that has ended with aanduiding in onderzoek value '<aanduiding onderzoek>' and is by now registered at another address, the investigation ended before the start of the next verblijfplaats, and <scenario> Given the person with citizen service number '000000024' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | aanduiding in onderzoek (83.10) | datum ingang onderzoek (83.20) | datum einde onderzoek (83.30) | datum aanvang adreshouding (10.30) | | 0800 | <aanduiding onderzoek> | 20220526 | 20220810 | 20200818 | And the 'verblijfplaats' has been changed to the following data | land (13.10) | datum aanvang adres buitenland (13.20) | | 0000 | 20220901 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | <datum van> | | datumTot | <datum tot> | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has an occupancy with the following data | naam | waarde | | periode | <datum van> tot <datum tot> | | adresseerbaarObjectIdentificatie | 0800010000000001 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000024 | Examples: | aanduiding onderzoek | datum van | datum tot | scenario | | 089999 | 2022-01-01 | 2022-09-01 | periode overlapt de hele duur van het onderzoek | | 089999 | 2022-01-01 | 2022-05-01 | periode loopt tot voor ingang onderzoek | | 089999 | 2022-06-01 | 2022-08-01 | periode valt binnen onderzoek | | 089999 | 2022-08-12 | 2022-08-17 | periode valt na beëindigen van onderzoek | | 589999 | 2022-01-01 | 2022-09-01 | periode overlapt de hele duur van het onderzoek | | 589999 | 2022-01-01 | 2022-05-01 | periode loopt tot voor ingang onderzoek | | 589999 | 2022-06-01 | 2022-08-01 | periode valt binnen onderzoek | | 589999 | 2022-08-12 | 2022-08-29 | periode valt na beëindigen van onderzoek | Rule: a person with aanduiding in onderzoek value '089999' or '589999' on a historical verblijfplaats, where the investigation ended on or after the start date of the next verblijfplaats, is supplied as an occupant up to the start date of the investigation and as a possible occupant from the start date of the investigation # where the investigation ended on or after the start date of the next verblijfplaats, it cannot be determined with certainty why the investigation ended # the investigation may, for example, have been ended by a municipality other than the one it concerned, without that municipality having established that 'vastgesteld geen bewoner meer' no longer applies Scenario Outline: the person has an investigation that has ended with aanduiding in onderzoek value '<aanduiding onderzoek>' and is by now registered at another address, and <scenario> Given address 'A1' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010000000001 | And the person with citizen service number '000000024' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | aanduiding in onderzoek (83.10) | datum ingang onderzoek (83.20) | datum einde onderzoek (83.30) | datum aanvang adreshouding (10.30) | | 0800 | <aanduiding onderzoek> | 20220526 | <datum einde onderzoek> | 20200818 | And the 'verblijfplaats' has been changed to the following data | land (13.10) | datum aanvang adres buitenland (13.20) | | 0000 | 20220901 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2022-01-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has an occupancy with the following data | naam | waarde | | periode | 2022-01-01 tot 2022-05-26 | | adresseerbaarObjectIdentificatie | 0800010000000001 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000024 | And the response has an occupancy with the following data | naam | waarde | | periode | 2022-05-26 tot 2022-09-01 | | adresseerbaarObjectIdentificatie | 0800010000000001 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000024 | Examples: | aanduiding onderzoek | datum einde onderzoek | scenario | | 089999 | 20220902 | onderzoek is beëindigd na de datum aanvang van de volgende verblijfplaats | | 589999 | 20220902 | onderzoek is beëindigd na de datum aanvang van de volgende verblijfplaats | | 089999 | 20220901 | onderzoek is beëindigd op de datum aanvang van de volgende verblijfplaats | | 589999 | 20220901 | onderzoek is beëindigd op de datum aanvang van de volgende verblijfplaats |