occupancy within a period with wholly or partly unknown dates
#language: en @gba Feature: occupancy within a period with wholly or partly unknown dates Background: Given address 'vorige' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010000000001 | And address 'gevraagd' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010000000002 | And address 'volgende' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010000000003 | And address 'daaropvolgende' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010000000004 | Rule: a person is a possible occupant during the period of uncertainty of the start date and an occupant after the period of uncertainty Scenario Outline: first and only verblijfplaats with a partly unknown start date Given the person with citizen service number '000000012' is registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | <datum aanvang> | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2020-01-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode mogelijke bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | And the response has an occupancy with the following data | naam | waarde | | periode | <periode bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000012 | Examples: | datum aanvang | periode mogelijke bewoner | periode bewoner | | 20210500 | 2021-05-01 tot 2021-06-01 | 2021-06-01 tot 2023-01-01 | | 20210000 | 2021-01-01 tot 2022-01-01 | 2022-01-01 tot 2023-01-01 | Scenario: first and only verblijfplaats with an entirely unknown start date Given the person with citizen service number '000000012' is registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 00000000 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2020-01-01 | | datumTot | 2021-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | 2020-01-01 tot 2021-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | Scenario Outline: next verblijfplaats after the period of uncertainty and within the period requested Given the person with citizen service number '000000012' is registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | <datum aanvang> | And the person was subsequently registered at address 'volgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20221014 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2020-01-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode mogelijke bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | And the response has an occupancy with the following data | naam | waarde | | periode | <periode bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000012 | Examples: | datum aanvang | periode mogelijke bewoner | periode bewoner | | 20210500 | 2021-05-01 tot 2021-06-01 | 2021-06-01 tot 2022-10-14 | | 20210000 | 2021-01-01 tot 2022-01-01 | 2022-01-01 tot 2022-10-14 | Scenario Outline: next verblijfplaats after the period of uncertainty and after the period requested Given the person with citizen service number '000000012' is registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | <datum aanvang> | And the person was subsequently registered at address 'volgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20221014 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2020-01-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode mogelijke bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | And the response has an occupancy with the following data | naam | waarde | | periode | <periode bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000012 | Examples: | datum aanvang | periode mogelijke bewoner | periode bewoner | | 20210500 | 2021-05-01 tot 2021-06-01 | 2021-06-01 tot 2022-10-14 | | 20210000 | 2021-01-01 tot 2022-01-01 | 2022-01-01 tot 2022-10-14 | Scenario Outline: next verblijfplaats within the period of uncertainty and within the period requested Given the person with citizen service number '000000012' is registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | <datum aanvang> | And the person was subsequently registered at address 'volgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20210526 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2020-01-01 | | datumTot | 2022-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode mogelijke bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | Examples: | datum aanvang | periode mogelijke bewoner | | 20210500 | 2021-05-01 tot 2021-05-26 | | 20210000 | 2021-01-01 tot 2021-05-26 | | 00000000 | 2020-01-01 tot 2021-05-26 | Scenario Outline: next verblijfplaats within the period of uncertainty and after the period requested Given the person with citizen service number '000000012' is registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | <datum aanvang> | And the person was subsequently registered at address 'volgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20210526 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2020-01-01 | | datumTot | 2021-05-16 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode mogelijke bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | Examples: | datum aanvang | periode mogelijke bewoner | | 20210500 | 2021-05-01 tot 2021-05-16 | | 20210000 | 2021-01-01 tot 2021-05-16 | | 00000000 | 2020-01-01 tot 2021-05-16 | Scenario Outline: the previous verblijfplaats falls within the period of uncertainty and there is a next and a subsequent verblijfplaats Given the person with citizen service number '000000012' is registered at address 'vorige' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20210516 | And the person was subsequently registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | <datum aanvang> | And the person was subsequently registered at address 'volgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20220730 | And the person was subsequently registered at address 'daaropvolgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20221014 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2020-01-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode mogelijke bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | And the response has an occupancy with the following data | naam | waarde | | periode | <periode bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000012 | Examples: | datum aanvang | periode mogelijke bewoner | periode bewoner | | 20210500 | 2021-05-17 tot 2021-06-01 | 2021-06-01 tot 2022-07-30 | | 20210000 | 2021-05-17 tot 2022-01-01 | 2022-01-01 tot 2022-07-30 | Scenario: entirely unknown start date and there is a previous, next and subsequent verblijfplaats Given the person with citizen service number '000000012' is registered at address 'vorige' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20210516 | And the person was subsequently registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 00000000 | And the person was subsequently registered at address 'volgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20220730 | And the person was subsequently registered at address 'daaropvolgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20221014 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2020-01-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | 2021-05-17 tot 2022-07-30 | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | Rule: a person is a possible occupant during the period of uncertainty of the start date of the next stay and an occupant before it Scenario Outline: the start of the next stay is partly unknown and the subsequent stay begins outside the period of uncertainty Given the person with citizen service number '000000012' is registered at address 'vorige' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20210516 | And the person was subsequently registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20210526 | And the person was subsequently registered at address 'volgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | <datum aanvang volgende> | And the person was subsequently registered at address 'daaropvolgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20230210 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2021-01-01 | | datumTot | 2023-07-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000012 | And the response has an occupancy with the following data | naam | waarde | | periode | <periode mogelijke bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | Examples: | datum aanvang volgende | periode bewoner | periode mogelijke bewoner | | 20210700 | 2021-05-26 tot 2021-07-01 | 2021-07-01 tot 2021-08-01 | | 20220000 | 2021-05-26 tot 2022-01-01 | 2022-01-01 tot 2023-01-01 | Scenario: the start of the next stay is entirely unknown and there is no subsequent verblijfplaats Given the person with citizen service number '000000012' is registered at address 'vorige' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20210516 | And the person was subsequently registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20210526 | And the person was subsequently registered at address 'volgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 00000000 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2021-01-01 | | datumTot | 2023-07-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | 2021-05-26 tot 2021-05-27 | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000012 | And the response has an occupancy with the following data | naam | waarde | | periode | 2021-05-27 tot 2023-07-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | Scenario Outline: the start of the next stay requested and the start of the next stay are unknown and overlap (so there is no period of certain occupancy) Given the person with citizen service number '000000012' is registered at address 'vorige' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20180516 | And the person was subsequently registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | <datum aanvang gevraagde> | And the person was subsequently registered at address 'volgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | <datum aanvang volgende> | And the person was subsequently registered at address 'daaropvolgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20230210 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2020-01-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode mogelijke bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | Examples: | datum aanvang gevraagde | datum aanvang volgende | periode mogelijke bewoner | | 20210700 | 20210700 | 2021-07-01 tot 2021-08-01 | | 20210000 | 20210700 | 2021-01-01 tot 2021-08-01 | | 00000000 | 20210700 | 2020-01-01 tot 2021-08-01 | | 20210700 | 20210000 | 2021-07-01 tot 2022-01-01 | | 20210000 | 20210000 | 2021-01-01 tot 2022-01-01 | | 00000000 | 20210000 | 2020-01-01 tot 2022-01-01 | | 20210700 | 00000000 | 2021-07-01 tot 2023-01-01 | | 20210000 | 00000000 | 2021-01-01 tot 2023-01-01 | | 00000000 | 00000000 | 2020-01-01 tot 2023-01-01 | Rule: a person is certainly not an occupant on or before the start date of the previous stay Scenario Outline: <scenario> Given the person with citizen service number '000000012' is registered at address 'vorige' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | <datum aanvang vorige> | And the person was subsequently registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | <datum aanvang gevraagde> | And the person was subsequently registered at address 'volgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20220730 | And the person was subsequently registered at address 'daaropvolgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20221014 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2020-01-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode mogelijke bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | And the response has an occupancy with the following data | naam | waarde | | periode | <periode bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000012 | Examples: | scenario | datum aanvang vorige | datum aanvang gevraagde | periode mogelijke bewoner | periode bewoner | | vorige verblijf voor onzekerheidsperiode | 20180210 | 20210500 | 2021-05-01 tot 2021-06-01 | 2021-06-01 tot 2022-07-30 | | vorige verblijf voor onzekerheidsperiode | 20180210 | 20210000 | 2021-01-01 tot 2022-01-01 | 2022-01-01 tot 2022-07-30 | | vorig verblijf in onzekerheidsperiode | 20210516 | 20210500 | 2021-05-17 tot 2021-06-01 | 2021-06-01 tot 2022-07-30 | | vorig verblijf in onzekerheidsperiode | 20210516 | 20210000 | 2021-05-17 tot 2022-01-01 | 2022-01-01 tot 2022-07-30 | | onzekerheidsperiode vorige overlapt onzekerheidsperiode gevraagde | 20210500 | 20210500 | 2021-05-01 tot 2021-06-01 | 2021-06-01 tot 2022-07-30 | | onzekerheidsperiode vorige overlapt onzekerheidsperiode gevraagde | 20210000 | 20210500 | 2021-05-01 tot 2021-06-01 | 2021-06-01 tot 2022-07-30 | | onzekerheidsperiode vorige overlapt onzekerheidsperiode gevraagde | 00000000 | 20210500 | 2021-05-01 tot 2021-06-01 | 2021-06-01 tot 2022-07-30 | | onzekerheidsperiode vorige overlapt onzekerheidsperiode gevraagde | 20210500 | 20210000 | 2021-05-01 tot 2022-01-01 | 2022-01-01 tot 2022-07-30 | | onzekerheidsperiode vorige overlapt onzekerheidsperiode gevraagde | 20210000 | 20210000 | 2021-01-01 tot 2022-01-01 | 2022-01-01 tot 2022-07-30 | | onzekerheidsperiode vorige overlapt onzekerheidsperiode gevraagde | 00000000 | 20210000 | 2021-01-01 tot 2022-01-01 | 2022-01-01 tot 2022-07-30 | Scenario Outline: return migration and <scenario> Given the person with citizen service number '000000012' is registered at address 'vorige' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20180730 | And the 'verblijfplaats' has been changed to the following data | land (13.10) | datum aanvang adres buitenland (13.20) | regel 1 adres buitenland (13.30) | regel 2 adres buitenland (13.40) | regel 3 adres buitenland (13.50) | | 5010 | <datum aanvang vorige> | Rue du pomme 26 | Bruxelles | postcode 1000 | And the person was subsequently registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | <datum aanvang gevraagde> | And the person was subsequently registered at address 'volgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20220730 | And the person was subsequently registered at address 'daaropvolgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20221014 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2020-01-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode mogelijke bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | And the response has an occupancy with the following data | naam | waarde | | periode | <periode bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000012 | Examples: | scenario | datum aanvang vorige | datum aanvang gevraagde | periode mogelijke bewoner | periode bewoner | | vorige verblijf voor onzekerheidsperiode | 20180210 | 20210500 | 2021-05-01 tot 2021-06-01 | 2021-06-01 tot 2022-07-30 | | vorige verblijf voor onzekerheidsperiode | 20180210 | 20210000 | 2021-01-01 tot 2022-01-01 | 2022-01-01 tot 2022-07-30 | | vorig verblijf in onzekerheidsperiode | 20210516 | 20210500 | 2021-05-17 tot 2021-06-01 | 2021-06-01 tot 2022-07-30 | | vorig verblijf in onzekerheidsperiode | 20210516 | 20210000 | 2021-05-17 tot 2022-01-01 | 2022-01-01 tot 2022-07-30 | Scenario Outline: the start of the stay requested is entirely unknown Given the person with citizen service number '000000012' is registered at address 'vorige' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | <datum aanvang vorige> | And the person was subsequently registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | <datum aanvang gevraagde> | And the person was subsequently registered at address 'volgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20220730 | And the person was subsequently registered at address 'daaropvolgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20221014 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2020-01-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode mogelijke bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | Examples: | datum aanvang vorige | datum aanvang gevraagde | periode mogelijke bewoner | | 20210516 | 00000000 | 2021-05-17 tot 2022-07-30 | | 20210500 | 00000000 | 2021-05-01 tot 2022-07-30 | | 20210000 | 00000000 | 2021-01-01 tot 2022-07-30 | | 00000000 | 00000000 | 2020-01-01 tot 2022-07-30 | Rule: a person is certainly not an occupant from the start date of the stay following the next stay #212 (not supplied in v2.0.x) Scenario Outline: the start of the next stay is wholly or partly unknown and the subsequent stay falls within the period of uncertainty of the next stay Given the person with citizen service number '000000012' is registered at address 'vorige' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20210516 | And the person was subsequently registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20210526 | And the person was subsequently registered at address 'volgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | <datum aanvang volgende> | And the person was subsequently registered at address 'daaropvolgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | <datum aanvang daaropvolgende> | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2021-01-01 | | datumTot | 2023-07-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000012 | And the response has an occupancy with the following data | naam | waarde | | periode | <periode mogelijke bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | Examples: | datum aanvang volgende | datum aanvang daaropvolgende | periode bewoner | periode mogelijke bewoner | #| 20210700 | 20210730 | 2021-05-26 tot 2021-07-01 | 2021-07-01 tot 2021-07-30 | #| 20220000 | 20221014 | 2021-05-26 tot 2022-01-01 | 2022-01-01 tot 2022-10-14 | #| 00000000 | 20221014 | 2021-05-26 tot 2021-05-27 | 2021-05-27 tot 2022-10-14 | | 20210700 | 20210700 | 2021-05-26 tot 2021-07-01 | 2021-07-01 tot 2021-08-01 | | 20210700 | 20210000 | 2021-05-26 tot 2021-07-01 | 2021-07-01 tot 2021-08-01 | | 20210700 | 00000000 | 2021-05-26 tot 2021-07-01 | 2021-07-01 tot 2021-08-01 | #| 20220000 | 20221000 | 2021-05-26 tot 2022-01-01 | 2022-01-01 tot 2022-11-01 | | 20220000 | 20220000 | 2021-05-26 tot 2022-01-01 | 2022-01-01 tot 2023-01-01 | | 20220000 | 00000000 | 2021-05-26 tot 2022-01-01 | 2022-01-01 tot 2023-01-01 | #| 00000000 | 20221000 | 2021-05-26 tot 2021-05-27 | 2021-05-27 tot 2022-11-01 | #| 00000000 | 20220000 | 2021-05-26 tot 2021-05-27 | 2021-05-27 tot 2023-01-01 | | 00000000 | 00000000 | 2021-05-26 tot 2021-05-27 | 2021-05-27 tot 2023-07-01 | Rule: the occupancy supplied is limited by the period requested Scenario Outline: the start of the address occupancy is partly unknown and <scenario> Given the person with citizen service number '000000012' is registered at address 'vorige' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20210516 | And the person was subsequently registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | <datum aanvang> | And the person was subsequently registered at address 'volgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20221014 | And the person was subsequently registered at address 'daaropvolgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20230730 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | <datum van> | | datumTot | 2022-07-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode mogelijke bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | And the response has an occupancy with the following data | naam | waarde | | periode | <periode bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000012 | Examples: | scenario | datum aanvang | datum van | periode mogelijke bewoner | periode bewoner | | periode begint voor onzekerheidsperiode | 20210500 | 2021-01-01 | 2021-05-17 tot 2021-06-01 | 2021-06-01 tot 2022-07-01 | | periode begint in onzekerheidsperiode en voor aanvang vorige | 20210500 | 2021-05-03 | 2021-05-17 tot 2021-06-01 | 2021-06-01 tot 2022-07-01 | | periode begint in onzekerheidsperiode en na aanvang vorige | 20210500 | 2021-05-26 | 2021-05-26 tot 2021-06-01 | 2021-06-01 tot 2022-07-01 | | periode begint voor onzekerheidsperiode | 20210000 | 2020-07-01 | 2021-05-17 tot 2022-01-01 | 2022-01-01 tot 2022-07-01 | | periode begint in onzekerheidsperiode en voor aanvang vorige | 20210000 | 2021-05-03 | 2021-05-17 tot 2022-01-01 | 2022-01-01 tot 2022-07-01 | | periode begint in onzekerheidsperiode en na aanvang vorige | 20210000 | 2021-05-26 | 2021-05-26 tot 2022-01-01 | 2022-01-01 tot 2022-07-01 | Scenario Outline: the start of the address occupancy is entirely unknown and <scenario> Given the person with citizen service number '000000012' is registered at address 'vorige' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20210516 | And the person was subsequently registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | <datum aanvang> | And the person was subsequently registered at address 'volgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20221014 | And the person was subsequently registered at address 'daaropvolgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20230730 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | <datum van> | | datumTot | 2022-07-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode mogelijke bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | Examples: | scenario | datum aanvang | datum van | periode mogelijke bewoner | | periode begint in onzekerheidsperiode en voor aanvang vorige | 00000000 | 2021-05-03 | 2021-05-17 tot 2022-07-01 | | periode begint in onzekerheidsperiode en na aanvang vorige | 00000000 | 2021-05-26 | 2021-05-26 tot 2022-07-01 | #212 (subsequent: not in v2.0.x) Scenario Outline: the start of the next address occupancy is wholly or partly unknown and <scenario> Given the person with citizen service number '000000012' is registered at address 'vorige' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20210516 | And the person was subsequently registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20210526 | And the person was subsequently registered at address 'volgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | <datum aanvang volgende> | And the person was subsequently registered at address 'daaropvolgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20220730 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2021-01-01 | | datumTot | <datum tot> | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000012 | And the response has an occupancy with the following data | naam | waarde | | periode | <periode mogelijke bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | Examples: | scenario | datum aanvang volgende | datum tot | periode bewoner | periode mogelijke bewoner | #| periode eindigt na onzekerheidsperiode | 20220700 | 2023-01-01 | 2021-05-26 tot 2022-07-01 | 2022-07-01 tot 2022-07-30 | | periode eindigt in onzekerheidsperiode en voor aanvang daaropvolgende | 20220700 | 2022-07-15 | 2021-05-26 tot 2022-07-01 | 2022-07-01 tot 2022-07-15 | #| periode eindigt in onzekerheidsperiode en na aanvang daaropvolgende | 20220700 | 2022-07-31 | 2021-05-26 tot 2022-07-01 | 2022-07-01 tot 2022-07-30 | #| periode eindigt na onzekerheidsperiode | 20220000 | 2023-07-01 | 2021-05-26 tot 2022-01-01 | 2022-01-01 tot 2022-07-30 | | periode eindigt in onzekerheidsperiode en voor aanvang daaropvolgende | 20220000 | 2022-07-15 | 2021-05-26 tot 2022-01-01 | 2022-01-01 tot 2022-07-15 | #| periode eindigt in onzekerheidsperiode en na aanvang daaropvolgende | 20220000 | 2022-07-31 | 2021-05-26 tot 2022-01-01 | 2022-01-01 tot 2022-07-30 | | periode eindigt in onzekerheidsperiode en voor aanvang daaropvolgende | 00000000 | 2022-07-15 | 2021-05-26 tot 2021-05-27 | 2021-05-27 tot 2022-07-15 | #| periode eindigt in onzekerheidsperiode en na aanvang daaropvolgende | 00000000 | 2022-07-31 | 2021-05-26 tot 2021-05-27 | 2021-05-27 tot 2022-07-30 | Rule: a person is no longer an occupant from the date of suspension Scenario Outline: the person dies within the period of uncertainty of the start of the address occupancy Given the person with citizen service number '000000012' is registered at address 'vorige' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20181014 | And the person was subsequently registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | <datum aanvang> | And the person has the following 'inschrijving' data | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) | | 20210314 | O | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2020-01-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode mogelijke bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | Examples: | datum aanvang | periode mogelijke bewoner | | 20210300 | 2021-03-01 tot 2021-03-14 | | 20210000 | 2021-01-01 tot 2021-03-14 | | 00000000 | 2020-01-01 tot 2021-03-14 | Scenario Outline: the person dies within the period of uncertainty of the start of the address occupancy and the previous stay falls within the period of uncertainty Given the person with citizen service number '000000012' is registered at address 'vorige' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20210306 | And the person was subsequently registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | <datum aanvang> | And the person has the following 'inschrijving' data | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) | | 20210314 | O | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2020-01-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode mogelijke bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | Examples: | datum aanvang | periode mogelijke bewoner | | 20210300 | 2021-03-07 tot 2021-03-14 | | 20210000 | 2021-03-07 tot 2021-03-14 | | 00000000 | 2021-03-07 tot 2021-03-14 | #212 (subsequent: not in v2.0.x) Scenario Outline: the person dies within the period of uncertainty of the next address occupancy and <scenario> Given the person with citizen service number '000000012' is registered at address 'vorige' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20181014 | And the person was subsequently registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20210516 | And the person was subsequently registered at address 'volgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | <datum aanvang volgende> | And the person was subsequently registered at address 'daaropvolgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20220730 | And the person has the following 'inschrijving' data | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) | | <datum opschorting> | O | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2020-01-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000012 | And the response has an occupancy with the following data | naam | waarde | | periode | <periode mogelijke bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | Examples: | scenario | datum aanvang volgende | datum opschorting | periode bewoner | periode mogelijke bewoner | | datum opschorting ligt in onzekerheidsperiode voor aanvang daaropvolgende | 20220700 | 20220714 | 2021-05-16 tot 2022-07-01 | 2022-07-01 tot 2022-07-14 | #| datum opschorting ligt in onzekerheidsperiode na aanvang daaropvolgende | 20220700 | 20220731 | 2021-05-16 tot 2022-07-01 | 2022-07-01 tot 2022-07-30 | | datum opschorting ligt na onzekerheidsperiode tijdens verblijf daaropvolgende | 20220700 | 20220819 | 2021-05-16 tot 2022-07-01 | 2022-07-01 tot 2022-08-01 | | datum opschorting ligt in onzekerheidsperiode voor aanvang daaropvolgende | 20220000 | 20220714 | 2021-05-16 tot 2022-01-01 | 2022-01-01 tot 2022-07-14 | #| datum opschorting ligt in onzekerheidsperiode na aanvang daaropvolgende | 20220000 | 20220819 | 2021-05-16 tot 2022-01-01 | 2022-01-01 tot 2022-07-30 | | datum opschorting ligt na onzekerheidsperiode tijdens verblijf daaropvolgende | 20220000 | 20230218 | 2021-05-16 tot 2022-01-01 | 2022-01-01 tot 2023-01-01 | Rule: onjuist is ignored Scenario Outline: the start date has been corrected <scenario> Given the person with citizen service number '000000012' is registered at address 'vorige' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20210516 | And the person was subsequently registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | <onjuiste datum> | And the 'verblijfplaats' has been corrected to the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | functie adres (10.10) | | 0800 | <nieuwe datum> | W | And the person was subsequently registered at address 'volgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20220730 | And the person was subsequently registered at address 'daaropvolgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20221014 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2020-01-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode mogelijke bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | And the response has an occupancy with the following data | naam | waarde | | periode | <periode bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000012 | Examples: | scenario | onjuiste datum | nieuwe datum | periode mogelijke bewoner | periode bewoner | | naar latere onzekerheidperiode | 20210500 | 20210700 | 2021-07-01 tot 2021-08-01 | 2021-08-01 tot 2022-07-30 | | naar eerdere onzekerheidperiode waarbij vorige voor onzekerheidsperiode ligt | 20210700 | 20210600 | 2021-06-01 tot 2021-07-01 | 2021-07-01 tot 2022-07-30 | | naar eerdere onzekerheidperiode waarbij vorige in onzekerheidsperiode ligt | 20210700 | 20210500 | 2021-05-17 tot 2021-06-01 | 2021-06-01 tot 2022-07-30 | | van maanddatum naar jaardatum waarbij vorige in onzekerheidsperiode ligt | 20210700 | 20210000 | 2021-05-17 tot 2022-01-01 | 2022-01-01 tot 2022-07-30 | | van echte datum naar onbekende datum waarbij vorige voor onzekerheidsperiode ligt | 20210529 | 20210700 | 2021-07-01 tot 2021-08-01 | 2021-08-01 tot 2022-07-30 | | van echte datum naar onbekende datum waarbij vorige in de onzekerheidsperiode ligt | 20210529 | 20210500 | 2021-05-17 tot 2021-06-01 | 2021-06-01 tot 2022-07-30 | | van echte datum naar onbekende datum waarbij vorige in de onzekerheidsperiode ligt | 20210529 | 20210000 | 2021-05-17 tot 2022-01-01 | 2022-01-01 tot 2022-07-30 | Scenario Outline: the start date of the next stay has been corrected <scenario> Given the person with citizen service number '000000012' is registered at address 'vorige' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20180516 | And the person was subsequently registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20200526 | And the person was subsequently registered at address 'volgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | <onjuiste datum volgende> | And the 'verblijfplaats' has been corrected to the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | functie adres (10.10) | | 0800 | <nieuwe datum volgende> | W | And the person was subsequently registered at address 'daaropvolgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20231014 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2020-01-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000012 | And the response has an occupancy with the following data | naam | waarde | | periode | <periode mogelijke bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | Examples: | scenario | onjuiste datum volgende | nieuwe datum volgende | periode bewoner | periode mogelijke bewoner | | naar latere onzekerheidsperiode | 20210500 | 20210700 | 2020-05-26 tot 2021-07-01 | 2021-07-01 tot 2021-08-01 | | naar eerdere onzekerheidsperiode | 20210700 | 20210500 | 2020-05-26 tot 2021-05-01 | 2021-05-01 tot 2021-06-01 | | van maanddatum naar jaardatum | 20210500 | 20210000 | 2020-05-26 tot 2021-01-01 | 2021-01-01 tot 2022-01-01 | | van jaardatum naar maanddatum van zelfde jaar | 20210000 | 20210500 | 2020-05-26 tot 2021-05-01 | 2021-05-01 tot 2021-06-01 | | van echte datum naar onbekende datum | 20210730 | 20210700 | 2020-05-26 tot 2021-07-01 | 2021-07-01 tot 2021-08-01 | #212 (subsequent: not in v2.0.x) Scenario: the start date of the subsequent stay has been corrected and <scenario> Given the person with citizen service number '000000012' is registered at address 'vorige' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20180730 | And the person was subsequently registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20201014 | And the person was subsequently registered at address 'volgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | <datum volgende> | And the person was subsequently registered at address 'daaropvolgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | <onjuiste datum daaropvolgende> | And the 'verblijfplaats' has been corrected to the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | functie adres (10.10) | | 0800 | <nieuwe datum daaropvolgende> | W | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2020-01-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000012 | And the response has an occupancy with the following data | naam | waarde | | periode | <periode mogelijke bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | Examples: | scenario | datum volgende | onjuiste datum daaropvolgende | nieuwe datum daaropvolgende | periode bewoner | periode mogelijke bewoner | | daaropvolgende lag binnen onzekerheidsperiode en nu niet meer | 20210500 | 20210526 | 20220314 | 2020-10-14 tot 2021-05-01 | 2021-05-01 tot 2021-06-01 | #| daaropvolgende lag na onzekerheidsperiode en nu erbinnen | 20210500 | 20220314 | 20210526 | 2020-10-14 tot 2021-05-01 | 2021-05-01 tot 2021-05-26 | | daaropvolgende lag binnen onzekerheidsperiode en nu niet meer | 20210000 | 20210526 | 20220314 | 2020-10-14 tot 2021-01-01 | 2021-01-01 tot 2022-01-01 | #| daaropvolgende lag na onzekerheidsperiode en nu erbinnen | 20210000 | 20220314 | 20210526 | 2020-10-14 tot 2021-01-01 | 2021-01-01 tot 2021-05-26 | #| daaropvolgende is vervroegd | 00000000 | 20220314 | 20210526 | 2020-10-14 tot 2020-10-15 | 2020-10-15 tot 2021-05-26 |