BRP API /
Bewoning /
Features / bewoning-samenstellingen-mogelijke-bewoners-gba
Occupancy compositions with possible occupants
#language: en
@gba
Feature: Occupancy compositions with possible occupants
Every change in the composition of the occupants and possible occupants of an addressable object results in an occupancy
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 |
And address 'A3' has the following data
| gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) |
| 0800 | 0800010000000003 |
Rule: At the start and after the end of the period of uncertainty of the start date, a new occupancy (composition) arises
- On the first day of the period of uncertainty of the start date the person becomes a possible occupant and a new occupancy (composition) arises
- From the first day after the period of uncertainty of the start date the person becomes an occupant and a new occupancy (composition) arises
Scenario: The start date is unknown and the period begins within the period of uncertainty and continues after the period of uncertainty
Given the person with citizen service number '000000012' is registered at address 'A2' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20080526 |
And the person with citizen service number '000000024' is registered at address 'A1' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20010410 |
And the person was subsequently registered at address 'A2' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20100000 |
When gba occupancy is searched with the following parameters
| naam | waarde |
| type | BewoningMetPeriode |
| datumVan | 2010-07-01 |
| datumTot | 2012-03-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
Then the response has an occupancy with the following data
| naam | waarde |
| periode | 2010-07-01 tot 2011-01-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
And the occupancy has an occupant with the following data
| burgerservicenummer |
| 000000012 |
And the occupancy has a possible occupant with the following data
| burgerservicenummer |
| 000000024 |
And the response has an occupancy with the following data
| naam | waarde |
| periode | 2011-01-01 tot 2012-03-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
And the occupancy has occupants with the following data
| burgerservicenummer |
| 000000012 |
| 000000024 |
Scenario: The start date is unknown and the period begins before the period of uncertainty and continues after the period of uncertainty
Given the person with citizen service number '000000012' is registered at address 'A2' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20080526 |
And the person with citizen service number '000000024' is registered at address 'A1' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20010410 |
And the person was subsequently registered at address 'A2' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20100000 |
When gba occupancy is searched with the following parameters
| naam | waarde |
| type | BewoningMetPeriode |
| datumVan | 2009-12-01 |
| datumTot | 2012-03-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
Then the response has an occupancy with the following data
| naam | waarde |
| periode | 2009-12-01 tot 2010-01-01 |
| 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 | 2010-01-01 tot 2011-01-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
And the occupancy has an occupant with the following data
| burgerservicenummer |
| 000000012 |
And the occupancy has a possible occupant with the following data
| burgerservicenummer |
| 000000024 |
And the response has an occupancy with the following data
| naam | waarde |
| periode | 2011-01-01 tot 2012-03-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
And the occupancy has occupants with the following data
| burgerservicenummer |
| 000000012 |
| 000000024 |
Scenario: The start date is unknown and the start of the previous stay falls within the period of uncertainty
Given the person with citizen service number '000000012' is registered at address 'A2' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20080526 |
And the person with citizen service number '000000024' is registered at address 'A1' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20100410 |
And the person was subsequently registered at address 'A2' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20100000 |
When gba occupancy is searched with the following parameters
| naam | waarde |
| type | BewoningMetPeriode |
| datumVan | 2010-03-01 |
| datumTot | 2012-03-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
Then the response has an occupancy with the following data
| naam | waarde |
| periode | 2010-03-01 tot 2010-04-11 |
| 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 | 2010-04-11 tot 2011-01-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
And the occupancy has an occupant with the following data
| burgerservicenummer |
| 000000012 |
And the occupancy has a possible occupant with the following data
| burgerservicenummer |
| 000000024 |
And the response has an occupancy with the following data
| naam | waarde |
| periode | 2011-01-01 tot 2012-03-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
And the occupancy has occupants with the following data
| burgerservicenummer |
| 000000012 |
| 000000024 |
Rule: At the start and after the end of the period of uncertainty of the start date of the next verblijfplaats, a new occupancy (composition) arises
- On the first day of the period of uncertainty of the start date the person becomes a possible occupant and a new occupancy (composition) arises
- From the first day after the period of uncertainty of the start date the person is no longer an occupant, and a new occupancy (composition) arises where there is at least one other occupant at that moment
Scenario: The start date of the next verblijfplaats is unknown and the period continues into the period of uncertainty
Given the person with citizen service number '000000012' is registered at address 'A2' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20080526 |
And the person with citizen service number '000000024' is registered at address 'A2' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20010410 |
And the person was subsequently registered at address 'A3' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20100000 |
When gba occupancy is searched with the following parameters
| naam | waarde |
| type | BewoningMetPeriode |
| datumVan | 2009-12-01 |
| datumTot | 2010-03-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
Then the response has an occupancy with the following data
| naam | waarde |
| periode | 2009-12-01 tot 2010-01-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
And the occupancy has occupants with the following data
| burgerservicenummer |
| 000000012 |
| 000000024 |
And the response has an occupancy with the following data
| naam | waarde |
| periode | 2010-01-01 tot 2010-03-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
And the occupancy has an occupant with the following data
| burgerservicenummer |
| 000000012 |
And the occupancy has a possible occupant with the following data
| burgerservicenummer |
| 000000024 |
Scenario: The start date of the next verblijfplaats is unknown and the period continues until after the period of uncertainty
Given the person with citizen service number '000000012' is registered at address 'A2' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20080526 |
And the person with citizen service number '000000024' is registered at address 'A2' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20010410 |
And the person was subsequently registered at address 'A3' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20100000 |
When gba occupancy is searched with the following parameters
| naam | waarde |
| type | BewoningMetPeriode |
| datumVan | 2009-12-01 |
| datumTot | 2011-03-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
Then the response has an occupancy with the following data
| naam | waarde |
| periode | 2009-12-01 tot 2010-01-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
And the occupancy has occupants with the following data
| burgerservicenummer |
| 000000012 |
| 000000024 |
And the response has an occupancy with the following data
| naam | waarde |
| periode | 2010-01-01 tot 2011-01-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
And the occupancy has an occupant with the following data
| burgerservicenummer |
| 000000012 |
And the occupancy has a possible occupant with the following data
| burgerservicenummer |
| 000000024 |
And the response has an occupancy with the following data
| naam | waarde |
| periode | 2011-01-01 tot 2011-03-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
And the occupancy has an occupant with the following data
| burgerservicenummer |
| 000000012 |
Rule: Where another occupant moves in or out during the period of uncertainty of an occupant, a new occupancy (composition) arises on the start date of the other occupant
Scenario: The start date is unknown and during the period of uncertainty another occupant comes to live at the address
Given the person with citizen service number '000000012' is registered at address 'A1' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20080526 |
And the person was subsequently registered at address 'A2' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20100000 |
And the person with citizen service number '000000024' is registered at address 'A1' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20010410 |
And the person was subsequently registered at address 'A2' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20100201 |
When gba occupancy is searched with the following parameters
| naam | waarde |
| type | BewoningMetPeriode |
| datumVan | 2009-12-01 |
| datumTot | 2010-03-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
Then the response has an occupancy with the following data
| naam | waarde |
| periode | 2010-01-01 tot 2010-02-01 |
| 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 | 2010-02-01 tot 2010-03-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
And the occupancy has an occupant with the following data
| burgerservicenummer |
| 000000024 |
And the occupancy has a possible occupant with the following data
| burgerservicenummer |
| 000000012 |
Scenario: The start date is unknown and during the period of uncertainty another occupant moves to another address
Given the person with citizen service number '000000012' is registered at address 'A1' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20080526 |
And the person was subsequently registered at address 'A2' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20100000 |
And the person with citizen service number '000000024' is registered at address 'A2' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20010410 |
And the person was subsequently registered at address 'A3' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20100201 |
When gba occupancy is searched with the following parameters
| naam | waarde |
| type | BewoningMetPeriode |
| datumVan | 2009-12-01 |
| datumTot | 2010-03-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
Then the response has an occupancy with the following data
| naam | waarde |
| periode | 2009-12-01 tot 2010-01-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
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 | 2010-01-01 tot 2010-02-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
And the occupancy has an occupant with the following data
| burgerservicenummer |
| 000000024 |
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 | 2010-02-01 tot 2010-03-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
And the occupancy has a possible occupant with the following data
| burgerservicenummer |
| 000000012 |
Scenario: The start date of the next verblijfplaats is unknown and during the period of uncertainty another occupant comes to live at the address
Given the person with citizen service number '000000012' is registered at address 'A2' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20080526 |
And the person was subsequently registered at address 'A3' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20100000 |
And the person with citizen service number '000000024' is registered at address 'A2' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20100210 |
When gba occupancy is searched with the following parameters
| naam | waarde |
| type | BewoningMetPeriode |
| datumVan | 2010-01-01 |
| datumTot | 2010-03-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
Then the response has an occupancy with the following data
| naam | waarde |
| periode | 2010-01-01 tot 2010-02-10 |
| 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 | 2010-02-10 tot 2010-03-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
And the occupancy has an occupant with the following data
| burgerservicenummer |
| 000000024 |
And the occupancy has a possible occupant with the following data
| burgerservicenummer |
| 000000012 |
Scenario: The start date of the next verblijfplaats is unknown and during the period of uncertainty another occupant moves to another address
Given the person with citizen service number '000000012' is registered at address 'A2' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20080526 |
And the person was subsequently registered at address 'A3' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20100000 |
And the person with citizen service number '000000024' is registered at address 'A2' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20010410 |
And the person was subsequently registered at address 'A3' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20100201 |
When gba occupancy is searched with the following parameters
| naam | waarde |
| type | BewoningMetPeriode |
| datumVan | 2009-12-01 |
| datumTot | 2010-03-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
Then the response has an occupancy with the following data
| naam | waarde |
| periode | 2009-12-01 tot 2010-01-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
And the occupancy has occupants with the following data
| burgerservicenummer |
| 000000012 |
| 000000024 |
And the response has an occupancy with the following data
| naam | waarde |
| periode | 2010-01-01 tot 2010-02-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
And the occupancy has an occupant with the following data
| burgerservicenummer |
| 000000024 |
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 | 2010-02-01 tot 2010-03-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
And the occupancy has a possible occupant with the following data
| burgerservicenummer |
| 000000012 |
Scenario: The start date is unknown and overlaps the equally unknown start date of another occupant
Given the person with citizen service number '000000012' is registered at address 'A1' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20080526 |
And the person was subsequently registered at address 'A2' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20100000 |
And the person with citizen service number '000000024' is registered at address 'A1' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20010410 |
And the person was subsequently registered at address 'A2' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20100200 |
When gba occupancy is searched with the following parameters
| naam | waarde |
| type | BewoningMetPeriode |
| datumVan | 2009-12-01 |
| datumTot | 2010-12-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
Then the response has an occupancy with the following data
| naam | waarde |
| periode | 2010-01-01 tot 2010-02-01 |
| 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 | 2010-02-01 tot 2010-03-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
And the occupancy has possible occupants with the following data
| burgerservicenummer |
| 000000012 |
| 000000024 |
And the response has an occupancy with the following data
| naam | waarde |
| periode | 2010-03-01 tot 2010-12-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
And the occupancy has an occupant with the following data
| burgerservicenummer |
| 000000024 |
And the occupancy has a possible occupant with the following data
| burgerservicenummer |
| 000000012 |
Scenario: The start date is unknown and overlaps the equally unknown start date of the next stay of another occupant
Given the person with citizen service number '000000012' is registered at address 'A1' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20080526 |
And the person was subsequently registered at address 'A2' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20100000 |
And the person with citizen service number '000000024' is registered at address 'A2' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20010410 |
And the person was subsequently registered at address 'A3' with the following data
| gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
| 0800 | 20100200 |
When gba occupancy is searched with the following parameters
| naam | waarde |
| type | BewoningMetPeriode |
| datumVan | 2009-12-01 |
| datumTot | 2010-12-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
Then the response has an occupancy with the following data
| naam | waarde |
| periode | 2009-12-01 tot 2010-01-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
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 | 2010-01-01 tot 2010-02-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
And the occupancy has an occupant with the following data
| burgerservicenummer |
| 000000024 |
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 | 2010-02-01 tot 2010-03-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
And the occupancy has possible occupants with the following data
| burgerservicenummer |
| 000000012 |
| 000000024 |
And the response has an occupancy with the following data
| naam | waarde |
| periode | 2010-03-01 tot 2010-12-01 |
| adresseerbaarObjectIdentificatie | 0800010000000002 |
And the occupancy has a possible occupant with the following data
| burgerservicenummer |
| 000000012 |