person with 'indicatie vastgesteld verblijft niet op adres' in occupancy with a reference date
#language: en @gba Feature: person with 'indicatie vastgesteld verblijft niet op adres' in occupancy with a reference date 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 | BewoningMetPeildatum | | peildatum | <peildatum> | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has 0 occupancies Examples: | peildatum | periode | scenario | | 2022-05-26 | 2022-05-26 tot 2022-05-27 | peildatum valt op de dag ingang onderzoek | | 2022-07-12 | 2022-07-12 tot 2022-07-13 | peildatum valt 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 reference date falls after the start of the investigation and before the start of the next address occupancy 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 | BewoningMetPeildatum | | peildatum | 2022-06-03 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has 0 occupancies Scenario: the person no longer resides at the address requested and is by now registered with a partly unknown date of departure, and the reference date falls within the period of uncertainty 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 'verblijfplaats' has been changed to the following data | land (13.10) | datum aanvang adres buitenland (13.20) | | 0000 | 20220600 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeildatum | | peildatum | 2022-06-03 | | 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 may still reside 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 | BewoningMetPeildatum | | peildatum | <peildatum> | | 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: | peildatum | periode | scenario | | 2022-05-25 | 2022-05-25 tot 2022-05-26 | peildatum valt op de dag voor de datum ingang onderzoek | | 2022-01-01 | 2022-01-01 tot 2022-01-02 | peildatum valt voor de datum ingang onderzoek | | 2020-08-18 | 2020-08-18 tot 2020-08-19 | peildatum valt op de datum aanvang van het verblijf | Scenario: the person no longer resides at the address requested and is by now registered at another address, and the reference date falls before the start of the investigation and before the start of the next address occupancy 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 | BewoningMetPeildatum | | peildatum | 2022-04-10 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has an occupancy with the following data | naam | waarde | | periode | 2022-04-10 tot 2022-04-11 | | 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 | 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' on the current 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 | 089999 | 20220526 | 20220810 | 20200818 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeildatum | | peildatum | <peildatum> | | 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: | peildatum | periode | scenario | | 2022-01-01 | 2022-01-01 tot 2022-01-02 | peildatum valt voor de datum ingang onderzoek en na datum aanvang verblijf | | 2022-07-12 | 2022-07-12 tot 2022-07-13 | peildatum valt na de dag ingang onderzoek en voor datum einde onderzoek en voor datum aanvang volgende verblijfplaats | | 2022-08-12 | 2022-08-12 tot 2022-08-13 | peildatum valt na de dag ingang onderzoek en na datum einde 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 '589999' and was registered at another address after the investigation ended, 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 | 589999 | 20220526 | 20220730 | 20200818 | And the 'verblijfplaats' has been changed to the following data | land (13.10) | datum aanvang adres buitenland (13.20) | | 0000 | 20220810 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeildatum | | peildatum | <peildatum> | | 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: | peildatum | periode | scenario | | 2022-01-01 | 2022-01-01 tot 2022-01-02 | peildatum valt voor de datum ingang onderzoek en na datum aanvang verblijf | | 2022-07-12 | 2022-07-12 tot 2022-07-13 | peildatum valt na de dag ingang onderzoek en voor datum einde onderzoek en voor datum aanvang volgende verblijfplaats | | 2022-08-03 | 2022-08-03 tot 2022-08-04 | peildatum valt na de dag ingang onderzoek en na datum einde onderzoek en voor datum aanvang volgende verblijfplaats | 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: the person has an investigation that has ended with aanduiding in onderzoek value '<aanduiding onderzoek>' and the investigation ended after the start of the next verblijfplaats, 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 | 589999 | 20220526 | 20220902 | 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 | BewoningMetPeildatum | | peildatum | <peildatum> | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode> | | adresseerbaarObjectIdentificatie | 0800010000000001 | And the occupancy has a <soort bewoner> with the following data | burgerservicenummer | | 000000024 | Examples: | peildatum | periode | soort bewoner | scenario | | 2022-01-01 | 2022-01-01 tot 2022-01-02 | bewoner | peildatum voor datum ingang van het onderzoek | | 2022-07-30 | 2022-07-30 tot 2022-07-31 | mogelijke bewoner | peildatum tijdens het onderzoek | Scenario Outline: the person has an investigation that has ended with aanduiding in onderzoek value '589999' and the investigation ended on the start date 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 | 589999 | 20220526 | 20220901 | 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 | BewoningMetPeildatum | | peildatum | <peildatum> | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode> | | adresseerbaarObjectIdentificatie | 0800010000000001 | And the occupancy has a <soort bewoner> with the following data | burgerservicenummer | | 000000024 | Examples: | peildatum | periode | soort bewoner | scenario | | 2022-01-01 | 2022-01-01 tot 2022-01-02 | bewoner | peildatum voor ingang onderzoek | | 2022-06-01 | 2022-06-01 tot 2022-06-02 | mogelijke bewoner | peildatum na ingang en voor einde onderzoek |