Access logging of the use of BewoningMetPeriode
#language: en @gba @protocollering Feature: Access logging of the use of BewoningMetPeriode Searching and consulting the data of citizens is "geprotocolleerd" (formally logged). Access logging must take place at two levels: - at RvIG, at the level of consuming organizations - at the consuming organization, at the level of users This feature describes only how access logging works at the level of consuming organizations at the source (RvIG) The following data is recorded there: - request_id: unique identification of the message exchange - request_datum: the moment at which the access logging was recorded - afnemer_code: identification code of the consuming organization, as included in the OAuth 2 token sent - anummer: the A-nummer of the person whose data was requested or supplied - request_zoek_rubrieken: list of all parameters used in the request, translated into LO BRP element numbers - request_gevraagde_rubrieken: list of all data requested with fields, translated into LO BRP element numbers - verwerkt: fixed value false (boolean) Both request_zoek_rubrieken and request_gevraagde_rubrieken contain the LO BRP element numbers as 6-digit item numbers (including the leading zero), separated by a comma and a space, and sorted in ascending order. Rule: The datumVan and datumTot parameters filter on datum aanvang adreshouding (08.10.30) and datum aanvang adres buitenland (08.13.20); the adresseerbaarObjectIdentificatie parameter searches on identificatiecode verblijfplaats (08.11.80) Scenario: Consult occupancy within a period Given address 'A1' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010000000001 | And the person with citizen service number '000000024' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20200818 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2022-01-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the person with citizen service number '000000024' has the following 'protocollering' data | request_zoek_rubrieken | | 081030, 081180, 081320 | Rule: For occupancy, only the citizen service number (01.01.20) of the person is requested. Scenario: The citizen service number (010120) is recorded in 'request_gevraagde_rubrieken' Given address 'A1' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010000000001 | And the person with citizen service number '000000024' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20200818 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2022-01-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the person with citizen service number '000000024' has the following 'protocollering' data | request_gevraagde_rubrieken | | 010120 | Rule: Where several persons are supplied in the answer, an access logging record is included for each person supplied Scenario: Several occupants found within the period Given address 'A1' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010000000001 | And the person with citizen service number '000000024' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20200818 | And the person with citizen service number '000000048' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20200818 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2022-01-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the person with citizen service number '000000024' has the following 'protocollering' data | request_gevraagde_rubrieken | request_zoek_rubrieken | | 010120 | 081030, 081180, 081320 | And the person with citizen service number '000000048' has the following 'protocollering' data | request_gevraagde_rubrieken | request_zoek_rubrieken | | 010120 | 081030, 081180, 081320 | Rule: Where several occupancies are supplied in the answer, one access logging record is included for each person supplied Scenario: Several occupancies found within the period Given address 'A1' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010000000001 | And the person with citizen service number '000000024' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20200818 | And the person with citizen service number '000000048' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20220818 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2022-01-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the person with citizen service number '000000024' has the following 'protocollering' data | request_gevraagde_rubrieken | request_zoek_rubrieken | | 010120 | 081030, 081180, 081320 | And the person with citizen service number '000000048' has the following 'protocollering' data | request_gevraagde_rubrieken | request_zoek_rubrieken | | 010120 | 081030, 081180, 081320 | And access logging rules have been recorded for the authenticated consumer '2' Scenario: The person leaves and comes back to live there within the period requested 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 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 | 20200818 | And the person was subsequently registered at address 'A2' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20220526 | And the person was subsequently registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20221014 | And the person with citizen service number '000000048' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20220818 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2022-01-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the person with citizen service number '000000024' has the following 'protocollering' data | request_gevraagde_rubrieken | request_zoek_rubrieken | | 010120 | 081030, 081180, 081320 | And the person with citizen service number '000000048' has the following 'protocollering' data | request_gevraagde_rubrieken | request_zoek_rubrieken | | 010120 | 081030, 081180, 081320 | And access logging rules have been recorded for the authenticated consumer '2'