supplying the indication that verblijfplaats is under investigation for an occupant when consulting occupancy on a reference date
#language: en @gba Feature: supplying the indication that verblijfplaats is under investigation for an occupant when consulting occupancy on a reference date As a consumer of the Bewoning API I want to receive an indication where the verblijfplaats data of an occupant is under investigation 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: the fact that verblijfplaats data is under investigation is supplied without being requested Scenario Outline: '<type>' is under investigation 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) | aanduiding in onderzoek (83.10) | datum ingang onderzoek (83.20) | | 0800 | 20100818 | <aanduiding in onderzoek> | 20200401 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeildatum | | peildatum | 2020-04-15 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has an occupancy with the following data | naam | waarde | | periode | 2020-04-15 tot 2020-04-16 | | adresseerbaarObjectIdentificatie | 0800010000000001 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000024 | And the occupant has the following 'verblijfplaatsInOnderzoek' data | aanduidingGegevensInOnderzoek | datumIngangOnderzoek | | <aanduiding in onderzoek> | 20200401 | Examples: | aanduiding in onderzoek | type | | 080000 | hele categorie verblijfplaats | | 080900 | hele groep gemeente | | 080910 | gemeente van inschrijving | | 080920 | datum inschrijving in de gemeente | | 081000 | hele groep adreshouding | | 081030 | datum aanvang adreshouding | | 081100 | hele groep adres | | 081180 | identificatiecode verblijfplaats | | 081010 | functie adres | | 081110 | straatnaam | | 081115 | naam openbare ruimte | | 081190 | identificatiecode nummeraanduiding | | 081200 | hele groep locatie | | 081400 | hele groep immigratie | | 081410 | land vanwaar ingeschreven | | 081420 | datum vestiging in Nederland | | 088500 | hele groep geldigheid | | 088510 | datum ingang geldigheid | Scenario Outline: '<type>' of the previous verblijfplaats is under investigation 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) | aanduiding in onderzoek (83.10) | datum ingang onderzoek (83.20) | | 0800 | 20100818 | <aanduiding in onderzoek> | 20200401 | And the person was subsequently registered at address 'A2' 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 | BewoningMetPeildatum | | peildatum | 2020-04-15 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has an occupancy with the following data | naam | waarde | | periode | 2020-04-15 tot 2020-04-16 | | adresseerbaarObjectIdentificatie | 0800010000000001 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000024 | And the occupant has the following 'verblijfplaatsInOnderzoek' data | aanduidingGegevensInOnderzoek | datumIngangOnderzoek | | <aanduiding in onderzoek> | 20200401 | Examples: | aanduiding in onderzoek | type | | 580000 | hele categorie verblijfplaats | | 581000 | hele groep adreshouding | | 581030 | datum aanvang adreshouding | | 581100 | hele groep adres | | 581180 | identificatiecode verblijfplaats | Rule: the start date of the investigation is not relevant to whether or not 'in onderzoek' data is supplied Scenario Outline: 'hele categorie verblijfplaats' is under investigation and <scenario> 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) | aanduiding in onderzoek (83.10) | datum ingang onderzoek (83.20) | | 0800 | 20100818 | 080000 | 20200401 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeildatum | | peildatum | <peildatum> | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode> | | adresseerbaarObjectIdentificatie | 0800010000000001 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000024 | And the occupant has the following 'verblijfplaatsInOnderzoek' data | aanduidingGegevensInOnderzoek | datumIngangOnderzoek | | 080000 | 20200401 | Examples: | peildatum | periode | scenario | | 2020-03-31 | 2020-03-31 tot 2020-04-01 | peildatum ligt vóór datum ingang onderzoek | | 2020-04-01 | 2020-04-01 tot 2020-04-02 | peildatum ligt op datum ingang onderzoek | | 2020-05-01 | 2020-05-01 tot 2020-05-02 | peildatum ligt na datum ingang onderzoek | Rule: an investigation that has ended is not supplied, not even where the period requested falls within the investigation period or overlaps it wholly or in part Scenario Outline: the investigation of 'hele categorie verblijfplaats' has ended and <scenario> Given the person with citizen service number '000000024' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | aanduiding in onderzoek (83.10) | datum ingang onderzoek (83.20) | datum einde onderzoek (83.30) | | 0800 | 20100818 | 080000 | 20200401 | 20200801 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeildatum | | peildatum | <peildatum> | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode> | | adresseerbaarObjectIdentificatie | 0800010000000001 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000024 | Examples: | peildatum | periode | scenario | | 2020-03-31 | 2020-03-31 tot 2020-04-01 | peildatum ligt vóór datum ingang onderzoek | | 2020-04-01 | 2020-04-01 tot 2020-04-02 | peildatum ligt op datum ingang onderzoek | | 2020-05-01 | 2020-05-01 tot 2020-05-02 | peildatum ligt na datum ingang onderzoek en vóór datum einde onderzoek | | 2020-08-01 | 2020-08-01 tot 2020-08-02 | peildatum ligt na datum einde onderzoek |