Supplying an explanation and the citizen service number of the child where the authority over a child cannot be determined
# language: en Feature: Supplying an explanation and the citizen service number of the child where the authority over a child cannot be determined As a consumer of the BRP API I want an explanation and the citizen service number of the child where the authority for a child cannot be determined so that I know the reason why the authority for the child cannot be determined and which child it concerns Rule: An explanation and the citizen service number of the child are supplied where the authority over the child requested cannot be determined Scenario: The authority over the child requested cannot be determined Given the person 'Zoe' with citizen service number '000000036' * the authority cannot be determined, with the explanation 'gezag is niet te bepalen omdat minderjarige niet in Nederland woont.' When gezag is requested for 'Zoe' Then the response has a person with a 'gezag' with the following data | naam | waarde | | type | GezagNietTeBepalen | | minderjarige.burgerservicenummer | 000000036 | | toelichting | gezag is niet te bepalen omdat minderjarige niet in Nederland woont. | Scenario: The authority over several children requested cannot be determined Given the person 'Alex' with citizen service number '000000012' * the authority cannot be determined, with the explanation 'gezag is niet te bepalen omdat minderjarige niet in Nederland woont.' Given the person 'Jan' with citizen service number '000000024' * the authority cannot be determined, with the explanation 'gezag is niet te bepalen omdat de volgende relevante gegevens ontbreken: verblijfplaats van bevraagde persoon' Given the person 'Zoe' with citizen service number '000000036' * the authority cannot be determined, with the explanation 'gezag is niet te bepalen omdat minderjarige niet in Nederland woont.' When gezag is requested for 'Alex,Jan,Zoe' Then the response has a person with a 'gezag' with the following data | naam | waarde | | type | GezagNietTeBepalen | | minderjarige.burgerservicenummer | 000000012 | | toelichting | gezag is niet te bepalen omdat minderjarige niet in Nederland woont. | And the response has a person with a 'gezag' with the following data | naam | waarde | | type | GezagNietTeBepalen | | minderjarige.burgerservicenummer | 000000024 | | toelichting | gezag is niet te bepalen omdat de volgende relevante gegevens ontbreken: verblijfplaats van bevraagde persoon | And the response has a person with a 'gezag' with the following data | naam | waarde | | type | GezagNietTeBepalen | | minderjarige.burgerservicenummer | 000000036 | | toelichting | gezag is niet te bepalen omdat minderjarige niet in Nederland woont. | Rule: An explanation and the citizen service number of the child are supplied where the authority over the child requested cannot be determined when consulting the BRP API with type ZoekMetAdresseerbaarObjectIdentificatie Scenario: 'burgerservicenummer (01.20)' is requested with 'burgerservicenummer' Given address 'A1' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0599 | 0599010051001502 | And the person with citizen service number '000000048' has the following data | naam | waarde | | geslachtsnaam (02.40) | Maassen | | geboortedatum (03.10) | vandaag - 10 jaar | | geslachtsaanduiding (04.10) | V | And the authority over the person with citizen service number '000000048' cannot be determined, with the explanation 'gezag is niet te bepalen omdat minderjarige niet in Nederland woont.' And the person is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | | 0599 | When persons are searched with the following parameters | naam | waarde | | type | ZoekMetAdresseerbaarObjectIdentificatie | | adresseerbaarObjectIdentificatie | 0599010051001502 | | fields | gezag | Then the response has a person with a 'gezag' with the following data | naam | waarde | | type | GezagNietTeBepalen | | minderjarige.burgerservicenummer | 000000048 | | toelichting | gezag is niet te bepalen omdat minderjarige niet in Nederland woont. | Scenario: The authority over several children residing at the address requested cannot be determined Given address 'A1' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0599 | 0599010051001502 | And the person with citizen service number '000000012' has the following data | naam | waarde | | geslachtsnaam (02.40) | Maassen | | geboortedatum (03.10) | vandaag - 10 jaar | | geslachtsaanduiding (04.10) | V | And the authority over the person with citizen service number '000000012' cannot be determined, with the explanation 'gezag is niet te bepalen omdat minderjarige buiten Nederland heeft verbleven.' And the person is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | | 0599 | And the person with citizen service number '000000024' has the following data | naam | waarde | | geslachtsnaam (02.40) | Maassen | | geboortedatum (03.10) | vandaag - 10 jaar | | geslachtsaanduiding (04.10) | V | And the authority over the person with citizen service number '000000024' cannot be determined, with the explanation 'gezag is niet te bepalen omdat minderjarige in het buitenland is geboren en geen Nederlandse adoptie-akte bekend is.' And the person is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | | 0599 | When persons are searched with the following parameters | naam | waarde | | type | ZoekMetAdresseerbaarObjectIdentificatie | | adresseerbaarObjectIdentificatie | 0599010051001502 | | fields | gezag | Then the response has a person with a 'gezag' with the following data | naam | waarde | | type | GezagNietTeBepalen | | minderjarige.burgerservicenummer | 000000012 | | toelichting | gezag is niet te bepalen omdat minderjarige buiten Nederland heeft verbleven. | And the response has a person with a 'gezag' with the following data | naam | waarde | | type | GezagNietTeBepalen | | minderjarige.burgerservicenummer | 000000024 | | toelichting | gezag is niet te bepalen omdat minderjarige in het buitenland is geboren en geen Nederlandse adoptie-akte bekend is. |