ZoekMetAdresseerbaarObjectIdentificatie of a personal record with suspension of maintenance
#language: en @gba Feature: ZoekMetAdresseerbaarObjectIdentificatie of a personal record with suspension of maintenance Rule: A personal record with reason for suspension of maintenance "W" (erasure) is not supplied Scenario: the personal record has suspension of maintenance with reason "W" Given the person with citizen service number '000000024' has the following 'verblijfplaats' data | gemeente van inschrijving (09.10) | | 0800 | And the 'verblijfplaats' has the following 'adres' data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010051001502 | And the person has the following 'inschrijving' data | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) | | 20220829 | W | When gba persons are searched with the following parameters | naam | waarde | | type | ZoekMetAdresseerbaarObjectIdentificatie | | adresseerbaarObjectIdentificatie | 0800010051001502 | | fields | burgerservicenummer | Then the response has 0 persons Rule: A personal record with reason for suspension of maintenance "F" (error) is not supplied Scenario: the personal record has suspension of maintenance with reason "F" Given the person with citizen service number '000000024' has the following 'verblijfplaats' data | gemeente van inschrijving (09.10) | | 0800 | And the 'verblijfplaats' has the following 'adres' data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010051001502 | And the person has the following 'inschrijving' data | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) | | 20220829 | F | When gba persons are searched with the following parameters | naam | waarde | | type | ZoekMetAdresseerbaarObjectIdentificatie | | adresseerbaarObjectIdentificatie | 0800010051001502 | | fields | burgerservicenummer | Then the response has 0 persons Scenario: the personal record has suspension of maintenance with reason "F" and the same citizen service number has been used on another personal record Given an address has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010051001502 | And the person with citizen service number '000000024' has the following data | geslachtsnaam (02.40) | | Maassen | And the person is registered at the address with the following data | gemeente van inschrijving (09.10) | | 0800 | And the person has the following 'inschrijving' data | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) | | 20220829 | F | And the person with citizen service number '000000024' has the following data | geslachtsnaam (02.40) | | Rafi | And the person is registered at the address with the following data | gemeente van inschrijving (09.10) | | 0800 | When gba persons are searched with the following parameters | naam | waarde | | type | ZoekMetAdresseerbaarObjectIdentificatie | | adresseerbaarObjectIdentificatie | 0800010051001502 | | fields | burgerservicenummer,naam.geslachtsnaam | Then the response has 1 person And the response has a person with the following data | naam | waarde | | burgerservicenummer | 000000024 | | naam.geslachtsnaam | Rafi | Scenario: the personal record has suspension of maintenance with reason "F" and the same citizen service number has been used on another personal record with a different verblijfplaats Given the person with citizen service number '000000024' has the following data | geslachtsnaam (02.40) | | Maassen | And the person has the following 'verblijfplaats' data | gemeente van inschrijving (09.10) | | 0800 | And the 'verblijfplaats' has the following 'adres' data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010051001502 | And the person has the following 'inschrijving' data | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) | | 20220829 | F | And the person with citizen service number '000000024' has the following data | geslachtsnaam (02.40) | | Rafi | And the person has the following 'verblijfplaats' data | gemeente van inschrijving (09.10) | | 0800 | And the 'verblijfplaats' has the following 'adres' data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010051001234 | When gba persons are searched with the following parameters | naam | waarde | | type | ZoekMetAdresseerbaarObjectIdentificatie | | adresseerbaarObjectIdentificatie | 0800010051001502 | | fields | burgerservicenummer | Then the response has 0 persons Rule: A personal record with reason for suspension of maintenance equal to "O" (deceased) is found only when the parameter inclusiefOverledenPersonen is used with value true Scenario: the personal record has suspension of maintenance with reason "O" and the parameter inclusiefOverledenPersonen is not used Given an address has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010051001502 | And the person with citizen service number '000000024' is registered at the address with the following data | gemeente van inschrijving (09.10) | | 0800 | And the person with citizen service number '000000048' is registered at the address with the following data | gemeente van inschrijving (09.10) | | 0800 | And the person has the following 'inschrijving' data | naam | waarde | | reden opschorting bijhouding (67.20) | O | When gba persons are searched with the following parameters | naam | waarde | | type | ZoekMetAdresseerbaarObjectIdentificatie | | adresseerbaarObjectIdentificatie | 0800010051001502 | | fields | burgerservicenummer | Then the response has 1 person And the response has a person with only the following data | naam | waarde | | burgerservicenummer | 000000024 | Scenario: the personal record has suspension of maintenance with reason "O" and the parameter inclusiefOverledenPersonen is used with value false Given an address has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010051001502 | And the person with citizen service number '000000024' is registered at the address with the following data | gemeente van inschrijving (09.10) | | 0800 | And the person with citizen service number '000000048' is registered at the address with the following data | gemeente van inschrijving (09.10) | | 0800 | And the person has the following 'inschrijving' data | naam | waarde | | reden opschorting bijhouding (67.20) | O | When gba persons are searched with the following parameters | naam | waarde | | type | ZoekMetAdresseerbaarObjectIdentificatie | | adresseerbaarObjectIdentificatie | 0800010051001502 | | inclusiefOverledenPersonen | false | | fields | burgerservicenummer | Then the response has 1 person And the response has a person with only the following data | naam | waarde | | burgerservicenummer | 000000024 | Scenario: the personal record has suspension of maintenance with reason "O" and the parameter inclusiefOverledenPersonen is used with value true Given an address has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010051001502 | And the person with citizen service number '000000024' is registered at the address with the following data | gemeente van inschrijving (09.10) | | 0800 | And the person with citizen service number '000000048' is registered at the address with the following data | gemeente van inschrijving (09.10) | | 0800 | And the person has the following 'inschrijving' data | naam | waarde | | reden opschorting bijhouding (67.20) | O | When gba persons are searched with the following parameters | naam | waarde | | type | ZoekMetAdresseerbaarObjectIdentificatie | | adresseerbaarObjectIdentificatie | 0800010051001502 | | inclusiefOverledenPersonen | true | | fields | burgerservicenummer | Then the response has 2 persons Rule: A personal record with any other reason for suspension of maintenance can be found and supplied Scenario Outline: the personal record has suspension of maintenance with reason "<opschorting>" Given the person with citizen service number '000000024' has the following 'verblijfplaats' data | gemeente van inschrijving (09.10) | | 0800 | And the 'verblijfplaats' has the following 'adres' data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010051001502 | And the person has the following 'inschrijving' data | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) | | 20220829 | <opschorting> | When gba persons are searched with the following parameters | naam | waarde | | type | ZoekMetAdresseerbaarObjectIdentificatie | | adresseerbaarObjectIdentificatie | 0800010051001502 | | fields | burgerservicenummer | Then the response has 1 person Examples: | opschorting | omschrijving | | E | emigratie | | M | ministerieel besluit | | R | pl is aangelegd in de rni | | . | onbekend |