HAALCENTRAAL English translation
BRP API / Personen / Features / gezag-minderjarige-gba

authority relationships of a minor

#language: en

@gba
Feature: authority relationships of a minor

  Rule: for a minor with two parents holding authority, the authority relationship to both parents is supplied

    Scenario: both parents hold authority over the minor
      Given the person with citizen service number '000000012' 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) |
      | 0518                 | 0599010051001502                         |
      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: for a minor with one parent holding authority, the authority relationship to that parent is supplied

    Scenario: one parent holds authority over the minor
      Given the person with citizen service number '000000012' 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) |
      | 0518                 | 0599010051001502                         |
      And the following authority relationships apply to the person with citizen service number '000000012'
      | 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: for a minor under joint authority, the authority relationship to the parent and the other holder of authority is supplied

    Scenario: the parent and the partner of that parent hold authority over the child
      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 person 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) |
      | 0518                 | 0599010051001502                         |
      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: for a person of full age, no authority relationship to the parents is supplied

    Scenario: gezag is requested for a person of full age
      Given the person with citizen service number '000000012' 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) |
      | 0518                 | 0599010051001502                         |
      And the person with citizen service number '000000012' has the following data
      | naam                  | waarde   |
      | geboortedatum (03.10) | 20040730 |
      And the person has a parent '1' with the following data
      | burgerservicenummer (01.20) |
      | 000000024                   |
      And the person has a parent '2' with the following data
      | burgerservicenummer (01.20) |
      | 000000048                   |
      And the person with citizen service number '000000012' 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: where the authority over a minor cannot be determined, this is indicated in gezag

    Scenario: the authority over the minor cannot be determined
      Given the person with citizen service number '000000012' 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) |
      | 0518                 | 0599010051001502                         |
      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 with a 'gezag' with the following data
      | naam | waarde             |
      | type | GezagNietTeBepalen |


  Rule: where no one temporarily holds authority over a minor, this is indicated in gezag

    Scenario: no one temporarily holds authority over the minor
      Given the person with citizen service number '000000012' 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) |
      | 0518                 | 0599010051001502                         |
      And the person with citizen service number '000000012' has the following data
      | naam                  | waarde   |
      | geboortedatum (03.10) | 20190516 |
      And the person has a parent '1' with the following data
      | burgerservicenummer (01.20) |
      | 000000024                   |
      And the person has a parent '2' with the following data
      | burgerservicenummer (01.20) |
      | 000000048                   |
      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 with a 'gezag' with the following data
      | naam | waarde             |
      | type | TijdelijkGeenGezag |


  Rule: where a non-parent holds authority over the minor by operation of law, this guardianship is indicated in gezag

    Scenario: the partner of a deceased parent holds authority over the minor
      Given the person with citizen service number '000000012' 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) |
      | 0518                 | 0599010051001502                         |
      And the following authority relationships apply to the person with citizen service number '000000012'
      | bsnMinderjarige | soortGezag | bsnMeerderjarige |
      | 000000012       | V          | 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                             | Voogdij   |
      | minderjarige.burgerservicenummer | 000000012 |
      And 'gezag' has a 'derde' with the following data
      | naam                | waarde    |
      | burgerservicenummer | 000000024 |


  Rule: where a judicial ruling has awarded authority to a guardian, the guardian is not known and gezag is supplied without the guardian or guardians

    Scenario: there is a judicial ruling awarding authority to parent 1 and a third party
      Given the person with citizen service number '000000012' 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) |
      | 0518                 | 0599010051001502                         |
      And the person with citizen service number '000000012' has the following 'gezagsverhouding' data
      | naam                                 | waarde |
      | indicatie gezag minderjarige (32.10) | 1D     |
      And the following authority relationships apply to the person with citizen service number '000000012'
      | bsnMinderjarige | soortGezag | bsnMeerderjarige |
      | 000000012       | V          |                  |
      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 no third parties