HAALCENTRAAL English translation
BRP API / Personen / Features / toelichting-bij-tijdelijk-geen-gezag

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 a child requested cannot be determined

    Scenario: There is temporarily no authority over the child requested
      Given the person 'Zoe' with citizen service number '000000036'
      And there is temporarily no authority, with the explanation 'tijdelijk geen gezag omdat een ouder is opgeschort.'
      When gezag is requested for 'Zoe'
      Then the response has a person with a 'gezag' with the following data
        | naam                             | waarde             |
        | type                             | TijdelijkGeenGezag |
        | minderjarige.burgerservicenummer |          000000036 |

    Scenario: There is temporarily no authority over several children requested
      Given the person 'Alex' with citizen service number '000000012'
      And there is temporarily no authority, with the explanation 'tijdelijk geen gezag omdat een ouder is opgeschort.'
      Given the person 'Jan' with citizen service number '000000024'
      And there is temporarily no authority, with the explanation 'tijdelijk geen gezag omdat een ouder is overleden.'
      Given the person 'Zoe' with citizen service number '000000036'
      And there is temporarily no authority, with the explanation 'tijdelijk geen gezag omdat een ouder onder curatele staat.'
      When gezag is requested for 'Alex,Jan,Zoe'
      Then the response has a person with a 'gezag' with the following data
        | naam                             | waarde             |
        | type                             | TijdelijkGeenGezag |
        | minderjarige.burgerservicenummer |          000000012 |
      And the response has a person with a 'gezag' with the following data
        | naam                             | waarde             |
        | type                             | TijdelijkGeenGezag |
        | minderjarige.burgerservicenummer |          000000024 |
      And the response has a person with a 'gezag' with the following data
        | naam                             | waarde             |
        | type                             | TijdelijkGeenGezag |
        | minderjarige.burgerservicenummer |          000000036 |

  Rule: An explanation and the citizen service number of the child are supplied where there is temporarily no authority over a child residing at the address requested

    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 there is temporarily no authority over the person with citizen service number '000000048', with the explanation 'tijdelijk geen gezag omdat een ouder is opgeschort.'
      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                             | TijdelijkGeenGezag |
        | minderjarige.burgerservicenummer |          000000048 |

    Scenario: There is temporarily no authority over several children residing at the address requested
      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 there is temporarily no authority over the person with citizen service number '000000012', with the explanation 'tijdelijk geen gezag omdat een ouder is opgeschort.'
      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 there is temporarily no authority over the person with citizen service number '000000024', with the explanation 'tijdelijk geen gezag omdat een ouder is overleden.'
      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                             | TijdelijkGeenGezag |
        | minderjarige.burgerservicenummer |          000000012 |
      And the response has a person with a 'gezag' with the following data
        | naam                             | waarde             |
        | type                             | TijdelijkGeenGezag |
        | minderjarige.burgerservicenummer |          000000024 |