authority relationships of a person of full age
#language: en @gba Feature: authority relationships of a person of full age Rule: for a minor child with two parents holding authority, a person of full age is supplied the authority relationship to both parents Scenario: both parents hold authority over the minor child of the person queried Given the person with citizen service number '000000024' has the following 'verblijfplaats' data | functie adres (10.10) | | W | And the 'verblijfplaats' has the following 'adres' data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0599 | 0599010051001502 | And the following authority relationships apply to the person with citizen service number '000000024' | bsnMinderjarige | soortGezag | bsnMeerderjarige | | 000000012 | OG2 | 000000024 | And the following authority relationships apply to the person with citizen service number '000000012' | bsnMinderjarige | soortGezag | bsnMeerderjarige | | 000000012 | OG2 | 000000024 | | 000000012 | OG2 | 000000048 | When gba 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 | TweehoofdigOuderlijkGezag | | minderjarige.burgerservicenummer | 000000012 | And 'gezag' has a 'ouder' with the following data | naam | waarde | | burgerservicenummer | 000000024 | And 'gezag' has a 'ouder' with the following data | naam | waarde | | burgerservicenummer | 000000048 | Rule: a person of full age who holds sole authority over a minor child is supplied the authority relationship to themselves Scenario: only the person queried holds authority over the minor Given the person with citizen service number '000000024' has the following 'verblijfplaats' data | functie adres (10.10) | | W | And the 'verblijfplaats' has the following 'adres' data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0599 | 0599010051001502 | And the following authority relationships apply to the person with citizen service number '000000024' | bsnMinderjarige | soortGezag | bsnMeerderjarige | | 000000012 | OG1 | 000000024 | When gba 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 | EenhoofdigOuderlijkGezag | | minderjarige.burgerservicenummer | 000000012 | | ouder.burgerservicenummer | 000000024 | Rule: a person of full age who holds authority over a minor child together with their partner is supplied the authority relationship to the parent and the partner Scenario: the parent and the partner of that parent hold authority over the child Given the person with citizen service number '000000024' has the following 'verblijfplaats' data | functie adres (10.10) | | W | And the 'verblijfplaats' has the following 'adres' data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0599 | 0599010051001502 | And the person has a 'kind' with the following data | burgerservicenummer (01.20) | | 000000012 | And the person has a 'partner' with the following data | burgerservicenummer (01.20) | | 000000048 | And the following authority relationships apply to the person with citizen service number '000000024' | bsnMinderjarige | soortGezag | bsnMeerderjarige | | 000000012 | GG | 000000024 | And the person with citizen service number '000000012' has a parent '1' with the following data | burgerservicenummer (01.20) | | 000000024 | And the following authority relationships apply to the person with citizen service number '000000012' | bsnMinderjarige | soortGezag | bsnMeerderjarige | | 000000012 | GG | 000000024 | | 000000012 | GG | 000000048 | When gba 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 | GezamenlijkGezag | | minderjarige.burgerservicenummer | 000000012 | | ouder.burgerservicenummer | 000000024 | | derde.burgerservicenummer | 000000048 | Rule: a person of full age who holds authority over a minor child of the partner is supplied the authority relationship to the parent and to themselves # when the non-parent is queried, the authority module supplies no gezag # the authority can be established by requesting the authority over the children of the partner # for every authority relationship of the minor children it is determined whether the non-parent holds joint authority over the child Scenario: the person holds joint authority by operation of law over the minor child of the partner of that person Given the person with citizen service number '000000024' has a 'kind' with the following data | burgerservicenummer (01.20) | | 000000012 | And the person has a 'partner' with the following data | burgerservicenummer (01.20) | | 000000048 | And the following authority relationships apply to the person with citizen service number '000000024' | bsnMinderjarige | soortGezag | bsnMeerderjarige | | 000000012 | GG | 000000024 | And the person with citizen service number '000000012' has a parent '1' with the following data | burgerservicenummer (01.20) | | 000000024 | And the following authority relationships apply to the person with citizen service number '000000012' | bsnMinderjarige | soortGezag | bsnMeerderjarige | | 000000012 | GG | 000000024 | | 000000012 | GG | 000000048 | And the person with citizen service number '000000048' has the following 'verblijfplaats' data | functie adres (10.10) | | W | And the 'verblijfplaats' has the following 'adres' data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0599 | 0599010051001502 | And the person has a 'partner' with the following data | burgerservicenummer (01.20) | | 000000024 | And the person with citizen service number '000000048' has no authority relationships When gba 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 | GezamenlijkGezag | | minderjarige.burgerservicenummer | 000000012 | | ouder.burgerservicenummer | 000000024 | | derde.burgerservicenummer | 000000048 | Rule: a person of full age is supplied no authority relationship for a child of full age Scenario: gezag is requested for a parent with a child of full age Given the person with citizen service number '000000012' has the following data | naam | waarde | | geboortedatum (03.10) | 20040730 | And the person with citizen service number '000000012' has a parent '1' with the following data | burgerservicenummer (01.20) | | 000000024 | And the person with citizen service number '000000012' has no authority relationships And the person with citizen service number '000000024' has the following 'verblijfplaats' data | functie adres (10.10) | | W | And the 'verblijfplaats' has the following 'adres' data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0599 | 0599010051001502 | And the person has a 'kind' with the following data | burgerservicenummer (01.20) | | 000000012 | And the person with citizen service number '000000024' has no authority relationships When gba persons are searched with the following parameters | naam | waarde | | type | ZoekMetAdresseerbaarObjectIdentificatie | | adresseerbaarObjectIdentificatie | 0599010051001502 | | fields | gezag | Then the response has a person without authority Rule: a person of full age is supplied no authority relationship for a minor child whose authority cannot be determined Scenario: the authority over the minor child cannot be determined Given the person with citizen service number '000000024' has the following 'verblijfplaats' data | functie adres (10.10) | | W | And the 'verblijfplaats' has the following 'adres' data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0599 | 0599010051001502 | And the person has a 'kind' with the following data | burgerservicenummer (01.20) | | 000000012 | And the person with citizen service number '000000024' has no authority relationships And the person with citizen service number '000000012' has a parent '1' with the following data | burgerservicenummer (01.20) | | 000000024 | And the following authority relationships apply to the person with citizen service number '000000012' | bsnMinderjarige | soortGezag | bsnMeerderjarige | | 000000012 | N | | When gba persons are searched with the following parameters | naam | waarde | | type | ZoekMetAdresseerbaarObjectIdentificatie | | adresseerbaarObjectIdentificatie | 0599010051001502 | | fields | gezag | Then the response has a person without authority Rule: a person of full age is supplied no authority relationship for a minor child over whom no one temporarily holds authority Scenario: no one temporarily holds authority over a minor child Given the person with citizen service number '000000024' has the following 'verblijfplaats' data | functie adres (10.10) | | W | And the 'verblijfplaats' has the following 'adres' data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0599 | 0599010051001502 | And the person has a 'kind' with the following data | burgerservicenummer (01.20) | | 000000012 | And the person has the following 'gezagsverhouding' data | naam | waarde | | indicatie curateleregister (33.10) | 1 | And the person with citizen service number '000000024' has no authority relationships And the person with citizen service number '000000012' has a parent '1' with the following data | burgerservicenummer (01.20) | | 000000024 | And the following authority relationships apply to the person with citizen service number '000000012' | bsnMinderjarige | soortGezag | bsnMeerderjarige | | 000000012 | G | | When gba persons are searched with the following parameters | naam | waarde | | type | ZoekMetAdresseerbaarObjectIdentificatie | | adresseerbaarObjectIdentificatie | 0599010051001502 | | fields | gezag | Then the response has a person without authority Rule: a person of full age who holds authority by operation of law over a minor who is not a child of that person is supplied the authority relationship to themselves # when the non-parent is queried, the authority module supplies no gezag # the authority can be established by requesting the authority over the children of the partner # for every authority relationship of the minor children it is determined whether the non-parent is the guardian of this child Scenario: the partner of a deceased parent holds authority over the minor children Given the person with citizen service number '000000012' has a parent '1' with the following data | burgerservicenummer (01.20) | | 000000036 | And the following authority relationships apply to the person with citizen service number '000000012' | bsnMinderjarige | soortGezag | bsnMeerderjarige | | 000000012 | V | 000000048 | And the person with citizen service number '000000024' has a parent '1' with the following data | burgerservicenummer (01.20) | | 000000036 | And the following authority relationships apply to the person with citizen service number '000000024' | bsnMinderjarige | soortGezag | bsnMeerderjarige | | 000000024 | V | 000000048 | And the person with citizen service number '000000036' has a 'partner' with the following data | burgerservicenummer (01.20) | | 000000048 | And the person has a 'kind' with the following data | burgerservicenummer (01.20) | | 000000012 | And the person has a 'kind' with the following data | burgerservicenummer (01.20) | | 000000024 | And the person has the following 'overlijden' data | naam | waarde | | datum overlijden (08.10) | 20231001 | And the person with citizen service number '000000036' has no authority relationships And the person with citizen service number '000000048' has the following 'verblijfplaats' data | functie adres (10.10) | | W | And the 'verblijfplaats' has the following 'adres' data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0599 | 0599010051001502 | And the person has a 'partner' with the following data | burgerservicenummer (01.20) | datum huwelijkssluiting/aangaan geregistreerd partnerschap (06.10) | | 000000036 | 20120428 | And the 'partner' has been changed to the following data | burgerservicenummer (01.20) | datum ontbinding huwelijk/geregistreerd partnerschap (07.10) | reden ontbinding huwelijk/geregistreerd partnerschap (07.40) | | 000000036 | 20231001 | O | And the person with citizen service number '000000048' has no authority relationships When gba 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 | Voogdij | | minderjarige.burgerservicenummer | 000000012 | And 'gezag' has a 'derde' with the following data | naam | waarde | | burgerservicenummer | 000000048 | And the person has a 'gezag' with the following data | naam | waarde | | type | Voogdij | | minderjarige.burgerservicenummer | 000000024 | And 'gezag' has a 'derde' with the following data | naam | waarde | | burgerservicenummer | 000000048 |