HAALCENTRAAL English translation
BRP API / Bewoning / Features / mogelijke-bewoner

consult occupancy on a reference date with a wholly or partly unknown start date of the address occupancy

#language: en

Feature: consult occupancy on a reference date with a wholly or partly unknown start date of the address occupancy

  As a consumer of the Bewoning API
  I want to be able to request which persons may stay or may have stayed at an addressable object on a date
  so that I can use this information in my process

  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 an unknown start of the address occupancy and no previous or next address occupancy is a possible occupant on the reference date where the reference date falls within the period of uncertainty of the address occupancy requested

  Scenario Outline: the start of the address occupancy is unknown and the reference date falls within the period of uncertainty of the address occupancy
    Given 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                              | <datum aanvang adreshouding>       |
    When occupancies are 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 possible occupant with the following data
    | burgerservicenummer |
    | 000000024           |

    Examples:
    | datum aanvang adreshouding | peildatum  | periode                   | opmerking                                     |
    | 20100800                   | 2010-08-01 | 2010-08-01 tot 2010-08-02 | eerste dag in onbekende dag datum             |
    | 20100800                   | 2010-08-31 | 2010-08-31 tot 2010-09-01 | laatste dag in onbekende dag datum            |
    | 20100000                   | 2010-01-01 | 2010-01-01 tot 2010-01-02 | eerste dag in onbekende dag en maand datum    |
    | 20100000                   | 2010-12-31 | 2010-12-31 tot 2011-01-01 | laatste dag in onbekende dag en maand datum   |
    | 00000000                   | 2000-01-01 | 2000-01-01 tot 2000-01-02 | een willekeurig dag in geheel onbekende datum |

  Scenario Outline: the start of the address occupancy is partly unknown and the reference date falls before the period of uncertainty of the address occupancy
    Given 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                              | <datum aanvang adreshouding>       |
    When occupancies are searched with the following parameters
    | naam                             | waarde               |
    | type                             | BewoningMetPeildatum |
    | peildatum                        | <peildatum>          |
    | adresseerbaarObjectIdentificatie | 0800010000000001     |
    Then the response has 0 occupancies

    Examples:
    | datum aanvang adreshouding | peildatum  |
    | 20100800                   | 2010-07-31 |
    | 20100000                   | 2009-12-31 |

  Scenario Outline: the start of the address occupancy is partly unknown and the reference date falls after the period of uncertainty of the address occupancy
    Given 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                              | <datum aanvang adreshouding>       |
    When occupancies are 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:
    | datum aanvang adreshouding | peildatum  | periode                   |
    | 20100800                   | 2010-09-01 | 2010-09-01 tot 2010-09-02 |
    | 20100000                   | 2011-01-01 | 2011-01-01 tot 2011-01-02 |

Rule: a person with an unknown start of the address occupancy and a known start date of the next address occupancy that falls after the period of uncertainty of the address occupancy requested is a possible occupant on the reference date where the reference date falls within the period of uncertainty of the address occupancy requested

  Scenario Outline: the start date of the next address occupancy falls after the period of uncertainty of the partly unknown start of the address occupancy 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) | datum aanvang adreshouding (10.30) |
    | 0800                              | <datum aanvang adreshouding>       |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30)    |
    | 0800                              | <datum aanvang volgende adreshouding> |
    When occupancies are 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 possible occupant with the following data
    | burgerservicenummer |
    | 000000024           |

    Examples:
    | datum aanvang adreshouding | datum aanvang volgende adreshouding | peildatum  | periode                   |
    | 20100800                   | 20101001                            | 2010-08-31 | 2010-08-31 tot 2010-09-01 |
    | 20100000                   | 20110201                            | 2010-12-31 | 2010-12-31 tot 2011-01-01 |

  Scenario Outline: the start date of the next address occupancy falls after the period of uncertainty of the partly unknown start of the address occupancy and the reference date falls on or after the start date 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) | datum aanvang adreshouding (10.30) |
    | 0800                              | <datum aanvang adreshouding>       |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30)    |
    | 0800                              | <datum aanvang volgende adreshouding> |
    When occupancies are searched with the following parameters
    | naam                             | waarde               |
    | type                             | BewoningMetPeildatum |
    | peildatum                        | <peildatum>          |
    | adresseerbaarObjectIdentificatie | 0800010000000001     |
    Then the response has 0 occupancies

    Examples:
    | datum aanvang adreshouding | datum aanvang volgende adreshouding | peildatum  |
    | 20100800                   | 20101001                            | 2010-10-01 |
    | 20100000                   | 20110201                            | 2011-02-01 |

  Scenario Outline: the start date of the next address occupancy falls after the period of uncertainty of the partly unknown start of the address occupancy and the reference date falls between the period of uncertainty and the start date 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) | datum aanvang adreshouding (10.30) |
    | 0800                              | <datum aanvang adreshouding>       |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30)    |
    | 0800                              | <datum aanvang volgende adreshouding> |
    When occupancies are 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:
    | datum aanvang adreshouding | datum aanvang volgende adreshouding | peildatum  | periode                   |
    | 20100800                   | 20101001                            | 2010-09-01 | 2010-09-01 tot 2010-09-02 |
    | 20100000                   | 20110201                            | 2011-01-01 | 2011-01-01 tot 2011-01-02 |

Rule: a person with a known start of the next address occupancy that falls within the period of uncertainty of the unknown start of the address occupancy is a possible occupant on the reference date where the reference date falls within the period of uncertainty, before the start date of the next address occupancy

  Scenario Outline: the start date of the next address occupancy falls within the period of uncertainty of the unknown address occupancy and the reference date falls before the start date 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) | datum aanvang adreshouding (10.30) |
    | 0800                              | <datum aanvang adreshouding>       |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30)    |
    | 0800                              | <datum aanvang volgende adreshouding> |
    When occupancies are 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 possible occupant with the following data
    | burgerservicenummer |
    | 000000024           |

    Examples:
    | datum aanvang adreshouding | datum aanvang volgende adreshouding | peildatum  | periode                   |
    | 20100800                   | 20100821                            | 2010-08-20 | 2010-08-20 tot 2010-08-21 |
    | 20100000                   | 20101001                            | 2010-09-30 | 2010-09-30 tot 2010-10-01 |
    | 00000000                   | 20100101                            | 2009-12-31 | 2009-12-31 tot 2010-01-01 |

  Scenario Outline: the start date of the next address occupancy falls within the period of uncertainty of the unknown address occupancy and the reference date falls on or after the start date 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) | datum aanvang adreshouding (10.30) |
    | 0800                              | <datum aanvang adreshouding>       |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30)    |
    | 0800                              | <datum aanvang volgende adreshouding> |
    When occupancies are searched with the following parameters
    | naam                             | waarde               |
    | type                             | BewoningMetPeildatum |
    | peildatum                        | <peildatum>          |
    | adresseerbaarObjectIdentificatie | 0800010000000001     |
    Then the response has 0 occupancies

    Examples:
    | datum aanvang adreshouding | datum aanvang volgende adreshouding | peildatum  |
    | 20100800                   | 20100821                            | 2010-08-21 |
    | 20100800                   | 20100821                            | 2010-08-22 |
    | 20100000                   | 20101001                            | 2010-10-01 |
    | 20100000                   | 20101001                            | 2010-10-02 |
    | 00000000                   | 20100101                            | 2010-01-01 |
    | 00000000                   | 20100101                            | 2010-01-02 |

Rule: a person with a known start of the address occupancy that does not fall within the period of uncertainty of the partly unknown start of the next address occupancy is a possible occupant on the reference date where the reference date falls within the period of uncertainty of the next address occupancy

  Scenario Outline: the start date of the address occupancy does not fall within the period of uncertainty of the partly unknown start of the next address occupancy and the reference date falls within the period of uncertainty 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) | datum aanvang adreshouding (10.30) |
    | 0800                              | 20100818                           |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30)    |
    | 0800                              | <datum aanvang volgende adreshouding> |
    When occupancies are 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 possible occupant with the following data
    | burgerservicenummer |
    | 000000024           |

    Examples:
    | datum aanvang volgende adreshouding | peildatum  | periode                   | scenario                                                               |
    | 20160500                            | 2016-05-01 | 2016-05-01 tot 2016-05-02 | peildatum is de eerste dag van de volgende aanvang adreshouding maand  |
    | 20160500                            | 2016-05-18 | 2016-05-18 tot 2016-05-19 | peildatum is een dag binnen de volgende aanvang adreshouding maand     |
    | 20160500                            | 2016-05-31 | 2016-05-31 tot 2016-06-01 | peildatum is de laatste dag van de volgende aanvang adreshouding maand |
    | 20160000                            | 2016-01-01 | 2016-01-01 tot 2016-01-02 | peildatum is de eerste dag van het volgende aanvang adreshouding jaar  |
    | 20160000                            | 2016-05-18 | 2016-05-18 tot 2016-05-19 | peildatum is een dag binnen het volgende aanvang adreshouding jaar     |
    | 20160000                            | 2016-12-31 | 2016-12-31 tot 2017-01-01 | peildatum is de laatste dag van het volgende aanvang adreshouding jaar |

  Scenario Outline: the start date of the address occupancy does not fall within the period of uncertainty of the partly unknown start of the next address occupancy and the reference date falls after the period of uncertainty 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) | datum aanvang adreshouding (10.30) |
    | 0800                              | 20100818                           |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30)    |
    | 0800                              | <datum aanvang volgende adreshouding> |
    When occupancies are searched with the following parameters
    | naam                             | waarde               |
    | type                             | BewoningMetPeildatum |
    | peildatum                        | <peildatum>          |
    | adresseerbaarObjectIdentificatie | 0800010000000001     |
    Then the response has 0 occupancies

    Examples:
    | datum aanvang volgende adreshouding | peildatum  |
    | 20160500                            | 2016-06-01 |
    | 20160000                            | 2017-01-01 |

  Scenario Outline: the start date of the address occupancy does not fall within the period of uncertainty of the partly unknown start of the next address occupancy and the reference date falls before the period of uncertainty 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) | datum aanvang adreshouding (10.30) |
    | 0800                              | 20100818                           |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30)    |
    | 0800                              | <datum aanvang volgende adreshouding> |
    When occupancies are 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:
    | datum aanvang volgende adreshouding | peildatum  | periode                   |
    | 20160500                            | 2016-04-30 | 2016-04-30 tot 2016-05-01 |
    | 20160000                            | 2015-12-31 | 2015-12-31 tot 2016-01-01 |

Rule: a person with a partly unknown start of the address occupancy, a partly unknown start of the next address occupancy and non-overlapping periods of uncertainty is a possible occupant on the reference date where the reference date falls within one of the periods of uncertainty

  Scenario Outline: the period of uncertainty of the partly unknown start of the address occupancy does not overlap the period of uncertainty of the partly unknown start of the next address occupancy and the reference date falls within one of the periods of uncertainty
    Given 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                              | <datum aanvang adreshouding>       |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30)    |
    | 0800                              | <datum aanvang volgende adreshouding> |
    When occupancies are 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 possible occupant with the following data
    | burgerservicenummer |
    | 000000024           |

    Examples:
    | datum aanvang adreshouding | datum aanvang volgende adreshouding | peildatum  | periode                   | opmerking                                                    |
    | 20100800                   | 20101000                            | 2010-08-20 | 2010-08-20 tot 2010-08-21 | peildatum ligt in onzekerheidsperiode gevraagde adreshouding |
    | 20100800                   | 20101000                            | 2010-10-10 | 2010-10-10 tot 2010-10-11 | peildatum ligt in onzekerheidsperiode volgende adreshouding  |
    | 20100000                   | 20111000                            | 2010-09-30 | 2010-09-30 tot 2010-10-01 | peildatum ligt in onzekerheidsperiode gevraagde adreshouding |
    | 20100000                   | 20111000                            | 2011-10-15 | 2011-10-15 tot 2011-10-16 | peildatum ligt in onzekerheidsperiode volgende adreshouding  |

  Scenario Outline: the period of uncertainty of the partly unknown start of the address occupancy does not overlap the period of uncertainty of the partly unknown start of the next address occupancy and the reference date falls after the period of uncertainty 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) | datum aanvang adreshouding (10.30) |
    | 0800                              | <datum aanvang adreshouding>       |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30)    |
    | 0800                              | <datum aanvang volgende adreshouding> |
    When occupancies are searched with the following parameters
    | naam                             | waarde               |
    | type                             | BewoningMetPeildatum |
    | peildatum                        | <peildatum>          |
    | adresseerbaarObjectIdentificatie | 0800010000000001     |
    Then the response has 0 occupancies

    Examples:
    | datum aanvang adreshouding | datum aanvang volgende adreshouding | peildatum  |
    | 20100800                   | 20101000                            | 2010-11-01 |
    | 20100800                   | 20110000                            | 2012-01-01 |
    | 20100000                   | 20110200                            | 2011-03-01 |
    | 20100000                   | 20110000                            | 2012-01-01 |

  Scenario Outline: the period of uncertainty of the partly unknown start of the address occupancy does not overlap the period of uncertainty of the partly unknown start of the next address occupancy and the reference date falls between the periods of uncertainty
    Given 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                              | <datum aanvang adreshouding>       |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30)    |
    | 0800                              | <datum aanvang volgende adreshouding> |
    When occupancies are 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:
    | datum aanvang adreshouding | datum aanvang volgende adreshouding | peildatum  | periode                   |
    | 20100800                   | 20101000                            | 2010-09-01 | 2010-09-01 tot 2010-09-02 |
    | 20100800                   | 20110000                            | 2010-12-31 | 2010-12-31 tot 2011-01-01 |
    | 20100000                   | 20111000                            | 2011-01-30 | 2011-01-30 tot 2011-01-31 |
    | 20100000                   | 20120000                            | 2011-10-15 | 2011-10-15 tot 2011-10-16 |

Rule: a person with a known start of the address occupancy that falls within the period of uncertainty of the partly or wholly unknown start of the next address occupancy is a possible occupant on the reference date where the reference date falls within the period of uncertainty, after the start date of the address occupancy

  Scenario Outline: the start date of the address occupancy falls within the period of uncertainty of the partly or wholly unknown start of the next address occupancy and the reference date falls within the period of uncertainty, on or after the start date of the address occupancy
    Given 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                              | 20100818                           |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30)    |
    | 0800                              | <datum aanvang volgende adreshouding> |
    When occupancies are searched with the following parameters
    | naam                             | waarde               |
    | type                             | BewoningMetPeildatum |
    | peildatum                        | 2010-08-19           |
    | adresseerbaarObjectIdentificatie | 0800010000000001     |
    Then the response has an occupancy with the following data
    | naam                             | waarde                    |
    | periode                          | 2010-08-19 tot 2010-08-20 |
    | adresseerbaarObjectIdentificatie | 0800010000000001          |
    And the occupancy has a possible occupant with the following data
    | burgerservicenummer |
    | 000000024           |

    Examples:
    | datum aanvang volgende adreshouding |
    | 20100800                            |
    | 20100000                            |
    | 00000000                            |

  Scenario Outline: the start date of the address occupancy falls within the period of uncertainty of the partly or wholly unknown start of the next address occupancy and the reference date falls within the period of uncertainty, on the start date of the address occupancy
    Given 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                              | 20100818                           |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30)    |
    | 0800                              | <datum aanvang volgende adreshouding> |
    When occupancies are searched with the following parameters
    | naam                             | waarde               |
    | type                             | BewoningMetPeildatum |
    | peildatum                        | 2010-08-18           |
    | adresseerbaarObjectIdentificatie | 0800010000000001     |
    Then the response has an occupancy with the following data
    | naam                             | waarde                    |
    | periode                          | 2010-08-18 tot 2010-08-19 |
    | adresseerbaarObjectIdentificatie | 0800010000000001          |
    And the occupancy has an occupant with the following data
    | burgerservicenummer |
    | 000000024           |

    Examples:
    | datum aanvang volgende adreshouding |
    | 20100800                            |
    | 20100000                            |
    | 00000000                            |

  Scenario Outline: the start date of the address occupancy falls within the period of uncertainty of the partly unknown start of the next address occupancy and the reference date falls after the period of uncertainty 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) | datum aanvang adreshouding (10.30) |
    | 0800                              | 20100818                           |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30)    |
    | 0800                              | <datum aanvang volgende adreshouding> |
    When occupancies are searched with the following parameters
    | naam                             | waarde               |
    | type                             | BewoningMetPeildatum |
    | peildatum                        | <peildatum>          |
    | adresseerbaarObjectIdentificatie | 0800010000000001     |
    Then the response has 0 occupancies

    Examples:
    | datum aanvang volgende adreshouding | peildatum  |
    | 20100800                            | 2010-09-01 |
    | 20100000                            | 2011-01-01 |

  Scenario Outline: the start date of the address occupancy falls within the period of uncertainty of the partly or wholly unknown start of the next address occupancy and the reference date falls within the period of uncertainty, before the start date of the address occupancy
    Given 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                              | 20100818                           |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30)    |
    | 0800                              | <datum aanvang volgende adreshouding> |
    When occupancies are searched with the following parameters
    | naam                             | waarde               |
    | type                             | BewoningMetPeildatum |
    | peildatum                        | 2010-08-17           |
    | adresseerbaarObjectIdentificatie | 0800010000000001     |
    Then the response has 0 occupancies

    Examples:
    | datum aanvang volgende adreshouding |
    | 20100800                            |
    | 20100000                            |
    | 00000000                            |

Rule: a person with an unknown start of the address occupancy, an unknown start of the next address occupancy and partly or wholly overlapping periods of uncertainty is a possible occupant on the reference date where the reference date falls between the first day of the period of uncertainty of the address occupancy requested and the last day of the period of uncertainty of the next address occupancy.

  Scenario Outline: the person has an unknown start of the address occupancy and a partly or wholly overlapping unknown start of the next address occupancy and the reference date falls between the first day of the period of uncertainty of the address occupancy and the last day of the period of uncertainty 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) | datum aanvang adreshouding (10.30) |
    | 0800                              | <datum aanvang adreshouding>       |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30)    |
    | 0800                              | <datum aanvang volgende adreshouding> |
    When occupancies are 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 possible occupant with the following data
    | burgerservicenummer |
    | 000000024           |

    Examples:
    | datum aanvang adreshouding | datum aanvang volgende adreshouding | peildatum  | periode                   | opmerking                                                                    |
    | 20100800                   | 20100000                            | 2010-08-01 | 2010-08-01 tot 2010-08-02 | peildatum is de eerste dag van de onzekerheidsperiode gevraagde adreshouding |
    | 20100800                   | 20100000                            | 2010-12-31 | 2010-12-31 tot 2011-01-01 | peildatum is de laatste dag van de onzekerheidsperiode volgende adreshouding |
    | 20100000                   | 20100800                            | 2010-01-01 | 2010-01-01 tot 2010-01-02 | peildatum is de eerste dag van de onzekerheidsperiode gevraagde adreshouding |
    | 20100000                   | 20100800                            | 2010-08-31 | 2010-08-31 tot 2010-09-01 | peildatum is de laatste dag van de onzekerheidsperiode volgende adreshouding |
    | 00000000                   | 20100000                            | 2010-12-31 | 2010-12-31 tot 2011-01-01 | peildatum is de laatste dag van de onzekerheidsperiode volgende adreshouding |
    | 20100000                   | 00000000                            | 2010-01-01 | 2010-01-01 tot 2010-01-02 | peildatum is de eerste dag van de onzekerheidsperiode gevraagde adreshouding |
    | 20100000                   | 00000000                            | 2011-01-01 | 2011-01-01 tot 2011-01-02 | peildatum is de eerste dag van de onzekerheidsperiode gevraagde adreshouding |

  Scenario Outline: the person has an unknown start of the address occupancy and a partly or wholly overlapping unknown start of the next address occupancy and the reference date falls either before the period of uncertainty of the address occupancy requested or after the period of uncertainty 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) | datum aanvang adreshouding (10.30) |
    | 0800                              | <datum aanvang adreshouding>       |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30)    |
    | 0800                              | <datum aanvang volgende adreshouding> |
    When occupancies are searched with the following parameters
    | naam                             | waarde               |
    | type                             | BewoningMetPeildatum |
    | peildatum                        | <peildatum>          |
    | adresseerbaarObjectIdentificatie | 0800010000000001     |
    Then the response has 0 occupancies

    Examples:
    | datum aanvang adreshouding | datum aanvang volgende adreshouding | peildatum  |
    | 20100800                   | 20100000                            | 2010-07-31 |
    | 20100800                   | 20100000                            | 2011-01-01 |
    | 20100000                   | 20100800                            | 2009-12-31 |
    | 20100000                   | 20100800                            | 2010-09-01 |
    | 00000000                   | 20100000                            | 2011-01-01 |
    | 20100000                   | 00000000                            | 2009-12-31 |

Rule: a person with a known start of the previous address occupancy that falls before the period of uncertainty of the partly unknown start of the address occupancy is a possible occupant on the reference date where the reference date falls within the period of uncertainty of the address occupancy requested

  Scenario Outline: the start date of the previous address occupancy falls before the period of uncertainty of the partly unknown start of the address occupancy and the reference date falls within the period of uncertainty of the address occupancy requested
    Given 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                              | <datum aanvang vorige adreshouding> |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
    | 0800                              | <datum aanvang adreshouding>       |
    When occupancies are 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 possible occupant with the following data
    | burgerservicenummer |
    | 000000024           |

    Examples:
    | datum aanvang vorige adreshouding | datum aanvang adreshouding | peildatum  | periode                   |
    | 20100101                          | 20100800                   | 2010-08-01 | 2010-08-01 tot 2010-08-02 |
    | 20091001                          | 20100000                   | 2010-01-01 | 2010-01-01 tot 2010-01-02 |

  Scenario Outline: the start date of the previous address occupancy falls before the period of uncertainty of the partly unknown start of the address occupancy and the reference date falls before the period of uncertainty of the address occupancy requested
    Given 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                              | <datum aanvang vorige adreshouding> |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
    | 0800                              | <datum aanvang adreshouding>       |
    When occupancies are searched with the following parameters
    | naam                             | waarde               |
    | type                             | BewoningMetPeildatum |
    | peildatum                        | <peildatum>          |
    | adresseerbaarObjectIdentificatie | 0800010000000002     |
    Then the response has 0 occupancies

    Examples:
    | datum aanvang vorige adreshouding | datum aanvang adreshouding | peildatum  | periode                   |
    | 20100101                          | 20100800                   | 2010-07-31 | 2010-07-31 tot 2010-08-01 |
    | 20091001                          | 20100000                   | 2009-12-31 | 2009-12-31 tot 2010-01-01 |

Rule: a person with a known start of the previous address occupancy that falls within the period of uncertainty of the unknown start of the address occupancy is a possible occupant on the reference date where the reference date falls within the period of uncertainty, after the start date of the previous address occupancy

  Scenario Outline: the start date of the previous address occupancy falls within the period of uncertainty of the unknown start of the address occupancy and the reference date falls within the period of uncertainty of the address occupancy requested, after the start date of the previous address occupancy
    Given 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                              | <datum aanvang vorige adreshouding> |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
    | 0800                              | <datum aanvang adreshouding>       |
    When occupancies are searched with the following parameters
    | naam                             | waarde               |
    | type                             | BewoningMetPeildatum |
    | peildatum                        | <peildatum>          |
    | adresseerbaarObjectIdentificatie | 0800010000000002     |
    Then the response has an occupancy with the following data
    | naam                             | waarde           |
    | periode                          | <periode>        |
    | adresseerbaarObjectIdentificatie | 0800010000000002 |
    And the occupancy has a possible occupant with the following data
    | burgerservicenummer |
    | 000000024           |

    Examples:
    | datum aanvang vorige adreshouding | datum aanvang adreshouding | peildatum  | periode                   |
    | 20100810                          | 20100800                   | 2010-08-11 | 2010-08-11 tot 2010-08-12 |
    | 20100501                          | 20100000                   | 2010-05-02 | 2010-05-02 tot 2010-05-03 |
    | 20101014                          | 00000000                   | 2010-10-15 | 2010-10-15 tot 2010-10-16 |

  Scenario Outline: the start date of the previous address occupancy falls within the period of uncertainty of the unknown start of the address occupancy and the reference date falls within the period of uncertainty of the address occupancy requested, on or before the start date of the previous address occupancy
    Given 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                              | <datum aanvang vorige adreshouding> |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
    | 0800                              | <datum aanvang adreshouding>       |
    When occupancies are searched with the following parameters
    | naam                             | waarde               |
    | type                             | BewoningMetPeildatum |
    | peildatum                        | <peildatum>          |
    | adresseerbaarObjectIdentificatie | 0800010000000002     |
    Then the response has 0 occupancies

    Examples:
    | datum aanvang vorige adreshouding | datum aanvang adreshouding | peildatum  |
    | 20100810                          | 20100800                   | 2010-08-10 |
    | 20100810                          | 20100800                   | 2010-08-09 |
    | 20100501                          | 20100000                   | 2010-05-01 |
    | 20100501                          | 20100000                   | 2010-04-30 |
    | 20101014                          | 00000000                   | 2010-10-14 |
    | 20101014                          | 00000000                   | 2010-10-13 |

Rule: a person with a partly unknown start of the address occupancy, a partly unknown start of the previous address occupancy and non-overlapping periods of uncertainty is a possible occupant on the reference date where the reference date falls within the period of uncertainty of the address occupancy requested

  Scenario Outline: the period of uncertainty of the partly unknown start of the address occupancy does not overlap the period of uncertainty of the partly unknown start of the previous address occupancy and the reference date falls within the period of uncertainty of the address occupancy requested
    Given 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                              | <datum aanvang vorige adreshouding> |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
    | 0800                              | <datum aanvang adreshouding>       |
    When occupancies are searched with the following parameters
    | naam                             | waarde               |
    | type                             | BewoningMetPeildatum |
    | peildatum                        | <peildatum>          |
    | adresseerbaarObjectIdentificatie | 0800010000000002     |
    Then the response has an occupancy with the following data
    | naam                             | waarde           |
    | periode                          | <periode>        |
    | adresseerbaarObjectIdentificatie | 0800010000000002 |
    And the occupancy has a possible occupant with the following data
    | burgerservicenummer |
    | 000000024           |

    Examples:
    | datum aanvang vorige adreshouding | datum aanvang adreshouding | peildatum  | periode                   |
    | 20100800                          | 20101000                   | 2010-10-31 | 2010-10-31 tot 2010-11-01 |
    | 20100800                          | 20110000                   | 2011-12-31 | 2011-12-31 tot 2012-01-01 |
    | 20100000                          | 20110200                   | 2011-02-01 | 2011-02-01 tot 2011-02-02 |
    | 20100000                          | 20110000                   | 2011-12-31 | 2011-12-31 tot 2012-01-01 |

  Scenario Outline: the period of uncertainty of the partly unknown start of the address occupancy does not overlap the period of uncertainty of the partly unknown start of the previous address occupancy and the reference date falls before the period of uncertainty of the address occupancy requested
    Given 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                              | <datum aanvang vorige adreshouding> |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
    | 0800                              | <datum aanvang adreshouding>       |
    When occupancies are searched with the following parameters
    | naam                             | waarde               |
    | type                             | BewoningMetPeildatum |
    | peildatum                        | <peildatum>          |
    | adresseerbaarObjectIdentificatie | 0800010000000002     |
    Then the response has 0 occupancies

    Examples:
    | datum aanvang vorige adreshouding | datum aanvang adreshouding | peildatum  |
    | 20100800                          | 20101000                   | 2010-09-30 |
    | 20100800                          | 20110000                   | 2010-12-31 |
    | 20100800                          | 20101000                   | 2010-08-31 |
    | 20100800                          | 20110000                   | 2010-08-31 |
    | 20100000                          | 20110200                   | 2011-01-31 |
    | 20100000                          | 20110000                   | 2010-12-31 |
    | 20100000                          | 20110200                   | 2011-01-31 |
    | 20100000                          | 20110000                   | 2010-12-31 |

Rule: a person with an unknown start of the address occupancy, an unknown start of the previous address occupancy and an identical period of uncertainty is a possible occupant on the reference date where the reference date falls within the period of uncertainty

  Scenario Outline: the period of uncertainty of the address occupancy matches the period of uncertainty of the previous address occupancy 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) | datum aanvang adreshouding (10.30)  |
    | 0800                              | <datum aanvang vorige adreshouding> |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
    | 0800                              | <datum aanvang adreshouding>       |
    When occupancies are searched with the following parameters
    | naam                             | waarde               |
    | type                             | BewoningMetPeildatum |
    | peildatum                        | <peildatum>          |
    | adresseerbaarObjectIdentificatie | 0800010000000002     |
    Then the response has an occupancy with the following data
    | naam                             | waarde           |
    | periode                          | <periode>        |
    | adresseerbaarObjectIdentificatie | 0800010000000002 |
    And the occupancy has a possible occupant with the following data
    | burgerservicenummer |
    | 000000024           |

    Examples:
    | datum aanvang vorige adreshouding | datum aanvang adreshouding | peildatum  | periode                   |
    | 00000000                          | 00000000                   | 2010-08-31 | 2010-08-31 tot 2010-09-01 |
    | 20100000                          | 20100000                   | 2010-01-01 | 2010-01-01 tot 2010-01-02 |
    | 20100500                          | 20100500                   | 2010-05-01 | 2010-05-01 tot 2010-05-02 |

  Scenario Outline: the period of uncertainty of the address occupancy matches the period of uncertainty of the previous address occupancy and the reference date falls before 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) | datum aanvang adreshouding (10.30)  |
    | 0800                              | <datum aanvang vorige adreshouding> |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
    | 0800                              | <datum aanvang adreshouding>       |
    When occupancies are searched with the following parameters
    | naam                             | waarde               |
    | type                             | BewoningMetPeildatum |
    | peildatum                        | <peildatum>          |
    | adresseerbaarObjectIdentificatie | 0800010000000002     |
    Then the response has 0 occupancies

    Examples:
    | datum aanvang vorige adreshouding | datum aanvang adreshouding | peildatum  |
    | 20100000                          | 20100000                   | 2009-12-31 |
    | 20100500                          | 20100500                   | 2010-04-30 |

Rule: a person with an unknown start of the address occupancy, an unknown start of the previous address occupancy and partly or wholly overlapping periods of uncertainty is a possible occupant on the reference date where the reference date falls within the period of uncertainty of the previous address occupancy, after the period of uncertainty of the previous address occupancy

  Scenario Outline: the period of uncertainty of the address occupancy wholly overlaps the period of uncertainty of the previous address occupancy and the reference date falls on or after the first day of the period of uncertainty of the previous address occupancy
    Given 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                              | <datum aanvang vorige adreshouding> |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
    | 0800                              | <datum aanvang adreshouding>       |
    When occupancies are searched with the following parameters
    | naam                             | waarde               |
    | type                             | BewoningMetPeildatum |
    | peildatum                        | <peildatum>          |
    | adresseerbaarObjectIdentificatie | 0800010000000002     |
    Then the response has an occupancy with the following data
    | naam                             | waarde           |
    | periode                          | <periode>        |
    | adresseerbaarObjectIdentificatie | 0800010000000002 |
    And the occupancy has a possible occupant with the following data
    | burgerservicenummer |
    | 000000024           |

    Examples:
    | datum aanvang vorige adreshouding | datum aanvang adreshouding | peildatum  | periode                   | opmerking                                                                            |
    | 20100000                          | 00000000                   | 2010-01-01 | 2010-01-01 tot 2010-01-02 | peildatum is de eerste dag in de onzekerheidsperiode van aanvang vorige adreshouding |
    | 20100000                          | 00000000                   | 2011-01-01 | 2011-01-01 tot 2011-01-02 | peildatum is de eerste dag na de onzekerheidsperiode van aanvang vorige adreshouding |
    | 20100500                          | 00000000                   | 2010-05-01 | 2010-05-01 tot 2010-05-02 | peildatum is de eerste dag in de onzekerheidsperiode van aanvang vorige adreshouding |
    | 20100500                          | 20100000                   | 2010-06-01 | 2010-06-01 tot 2010-06-02 | peildatum is de eerste dag na de onzekerheidsperiode van aanvang vorige adreshouding |

  Scenario Outline: the period of uncertainty of the address occupancy wholly overlaps the period of uncertainty of the previous address occupancy and the reference date falls before the period of uncertainty of the previous address occupancy
    Given 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                              | <datum aanvang vorige adreshouding> |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
    | 0800                              | <datum aanvang adreshouding>       |
    When occupancies are searched with the following parameters
    | naam                             | waarde               |
    | type                             | BewoningMetPeildatum |
    | peildatum                        | <peildatum>          |
    | adresseerbaarObjectIdentificatie | 0800010000000002     |
    Then the response has 0 occupancies

    Examples:
    | datum aanvang vorige adreshouding | datum aanvang adreshouding | peildatum  |
    | 20100000                          | 00000000                   | 2009-12-31 |
    | 20100500                          | 00000000                   | 2010-04-30 |
    | 20100500                          | 20100000                   | 2010-04-30 |

  Scenario Outline: the period of uncertainty of the address occupancy partly overlaps the period of uncertainty of the previous address occupancy and the reference date falls within the period of uncertainty of the address occupancy requested
    Given 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                              | <datum aanvang vorige adreshouding> |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
    | 0800                              | <datum aanvang adreshouding>       |
    When occupancies are searched with the following parameters
    | naam                             | waarde               |
    | type                             | BewoningMetPeildatum |
    | peildatum                        | <peildatum>          |
    | adresseerbaarObjectIdentificatie | 0800010000000002     |
    Then the response has an occupancy with the following data
    | naam                             | waarde           |
    | periode                          | <periode>        |
    | adresseerbaarObjectIdentificatie | 0800010000000002 |
    And the occupancy has a possible occupant with the following data
    | burgerservicenummer |
    | 000000024           |

    Examples:
    | datum aanvang vorige adreshouding | datum aanvang adreshouding | peildatum  | periode                   |
    | 00000000                          | 20100000                   | 2010-01-01 | 2010-01-01 tot 2010-01-02 |
    | 00000000                          | 20100500                   | 2010-05-01 | 2010-05-01 tot 2010-05-02 |
    | 20100000                          | 20100800                   | 2010-08-01 | 2010-08-01 tot 2010-08-02 |

  Scenario Outline: the period of uncertainty of the address occupancy partly overlaps the period of uncertainty of the previous address occupancy and the reference date falls before the period of uncertainty of the address occupancy requested
    Given 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                              | <datum aanvang vorige adreshouding> |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
    | 0800                              | <datum aanvang adreshouding>       |
    When occupancies are searched with the following parameters
    | naam                             | waarde               |
    | type                             | BewoningMetPeildatum |
    | peildatum                        | <peildatum>          |
    | adresseerbaarObjectIdentificatie | 0800010000000002     |
    Then the response has 0 occupancies

    Examples:
    | datum aanvang vorige adreshouding | datum aanvang adreshouding | peildatum  |
    | 00000000                          | 20100000                   | 2009-12-31 |
    | 00000000                          | 20100500                   | 2010-04-30 |
    | 20100000                          | 20100800                   | 2010-07-31 |