HAAL✻CENTRAAL English translation
BRP API / Personen / Features / gegevens-bij-bevragen-kind-in-onderzoek

where data of the child is under investigation, an authority ruling is supplied with an explanation of which data is under investigation

#language: en

Feature: where data of the child is under investigation, an authority ruling is supplied with an explanation of which data is under investigation

  Background:
    Given the person 'Jorine' with citizen service number '000000012'
    * is of full age
    And the person 'Bastiaan' with citizen service number '000000024'
    * is of full age
    And the person 'Nandy' with citizen service number '000000036'
    * is a minor
    * was born in the Netherlands
    * is registered in the BRP

  Scenario Outline: the authority is determined using data of the person: <omschrijving> under investigation, there is GezamenlijkOuderlijkGezag
    Given person 'Nandy'
    * the following data has been changed
      | aanduiding in onderzoek (83.10) |
      | <aanduiding onderzoek>          |
    * has 'Jorine' as parent 1
    * has 'Bastiaan' as parent 2
    And 'Jorine' and 'Bastiaan' are married to each other
    When 'gezag' is requested for 'Nandy'

    Then the authority over 'Nandy' is joint parental authority with parent 'Jorine' and parent 'Bastiaan'
    And the authority is under investigation

    Examples:
      | aanduiding onderzoek | omschrijving   |
      | 010310               | geboortedatum  |
      | 010330               | geboorteland   |
      | 010000               | hele categorie |

  Scenario: the authority is determined with the certificate number of the person under investigation, there is GezamenlijkOuderlijkGezag
    Given person 'Nandy'
    * the following data has been changed
      | aanduiding in onderzoek (83.10) |
      | 018120                          |
    * has 'Jorine' as parent 1
    * was adopted by 'Bastiaan' as parent 2
    When 'gezag' is requested for 'Nandy'
    Then the authority over 'Nandy' is joint parental authority with parent 'Jorine' and parent 'Bastiaan'
    And the authority is under investigation

  Scenario: the authority is determined with the historical certificate number of the person under investigation, there is GezamenlijkOuderlijkGezag
    Given person 'Nandy'
    * the following data has been changed
      | aanduiding in onderzoek (83.10) |
      | 518120                          |
    * the following data has been changed
      | aanduiding in onderzoek (83.10) |
      |                                 |
    * has 'Jorine' as parent 1
    * was adopted by 'Bastiaan' as parent 2
    When 'gezag' is requested for 'Nandy'
    Then the authority over 'Nandy' is joint parental authority with parent 'Jorine' and parent 'Bastiaan'
    And the authority is under investigation

  Scenario Outline: the authority is determined using data of the marriage: <omschrijving> under investigation, there is GezamenlijkOuderlijkGezag
    Given 'Jorine' and 'Bastiaan' are married to each other with the following data
      | datum huwelijkssluiting/aangaan geregistreerd partnerschap (06.10) | aanduiding in onderzoek (83.10) |
      | gisteren - 2 jaar                                                  | <aanduiding onderzoek>          |
    Given person 'Nandy'
    * has 'Jorine' as parent 1
    * has 'Bastiaan' as parent 2
    When 'gezag' is requested for 'Nandy'
    Then the authority over 'Nandy' is joint parental authority with parent 'Jorine' and parent 'Bastiaan'
    And the authority is under investigation

    Examples:
      | aanduiding onderzoek | omschrijving                                |
      | 050120               | burgerservicenummer partner                 |
      | 050000               | hele categorie partnerschap                 |
      | 050600               | hele groep aangaan huwelijk of partnerschap |
      | 050610               | datum aangaan huwelijk of partnerschap      |
      | 050710               | datum ontbinding huwelijk of partnerschap   |

  Scenario Outline: the authority is determined using data of the marriage at the divorce: <omschrijving> under investigation, there is GezamenlijkOuderlijkGezag
    Given 'Jorine' and 'Bastiaan' are married to each other
    And 'Jorine' and 'Bastiaan' have divorced with the following data
      | datum ontbinding huwelijk/geregistreerd partnerschap (07.10) | aanduiding in onderzoek (83.10) |
      | gisteren - 1 jaar                                            | <aanduiding onderzoek>          |
    Given person 'Nandy'
    * has 'Jorine' as parent 1
    * has 'Bastiaan' as parent 2
    When 'gezag' is requested for 'Nandy'
    Then the authority over 'Nandy' is joint parental authority with parent 'Jorine' and parent 'Bastiaan'
    And the authority is under investigation

    Examples:
      | aanduiding onderzoek | omschrijving                              |
      | 050740               | reden ontbinding huwelijk of partnerschap |

  Scenario Outline: the authority is determined using data of the judicial ruling: <omschrijving> under investigation, there is GezamenlijkOuderlijkGezag
    Given a judicial ruling on authority has been made for 'Nandy' with the following data
      | naam                                 | waarde                 |
      | indicatie gezag minderjarige (32.10) | 12                     |
      | ingangsdatum geldigheid (85.10)      | gisteren - 2 jaar      |
      | aanduiding in onderzoek (83.10)      | <aanduiding onderzoek> |
    And person 'Nandy'
    * has 'Jorine' as parent 1
    * has 'Bastiaan' as parent 2
    When 'gezag' is requested for 'Nandy'
    Then the authority over 'Nandy' is joint parental authority with parent 'Jorine' and parent 'Bastiaan'
    And the authority is under investigation

    Examples:
      | aanduiding onderzoek | omschrijving                  |
      | 113210               | indicatie gezag minderjarig   |
      | 118510               | ingangsdatum geldigheid gezag |
      | 110000               | hele groep                    |

  Scenario Outline: the authority is determined using data of the judicial ruling for parent 1: <omschrijving> under investigation, there is EenhoofdigOuderlijkGezag
    And person 'Nandy'
    * has 'Jorine' as parent 1
    * has 'Bastiaan' as parent 2
    Given a judicial ruling on authority has been made for 'Jorine' with the following data
      | naam                               | waarde                 |
      | indicatie curateleregister (33.10) | 1                      |
      | ingangsdatum geldigheid (85.10)    | gisteren - 2 jaar      |
      | aanduiding in onderzoek (83.10)    | <aanduiding onderzoek> |
    When 'gezag' is requested for 'Nandy'
    Then the authority over 'Nandy' is sole parental authority with parent 'Bastiaan'
    And the authority is under investigation

    Examples:
      | aanduiding onderzoek | omschrijving                |
      | 110000               | hele groep                  |
      | 113310               | indicatie curatele register |

  Scenario Outline: the authority is determined using data of the judicial ruling for parent 2: <omschrijving> under investigation, there is EenhoofdigOuderlijkGezag
    And person 'Nandy'
    * has 'Jorine' as parent 1
    * has 'Bastiaan' as parent 2
    Given a judicial ruling on authority has been made for 'Bastiaan' with the following data
      | naam                               | waarde                 |
      | indicatie curateleregister (33.10) | 1                      |
      | ingangsdatum geldigheid (85.10)    | gisteren - 2 jaar      |
      | aanduiding in onderzoek (83.10)    | <aanduiding onderzoek> |
    When 'gezag' is requested for 'Nandy'
    Then the authority over 'Nandy' is sole parental authority with parent 'Jorine'
    And the authority is under investigation

    Examples:
      | aanduiding onderzoek | omschrijving                |
      | 110000               | hele groep                  |
      | 113310               | indicatie curatele register |

  Scenario Outline: the authority is determined using data of parent 1: <omschrijving> under investigation, there is GezamenlijkOuderlijkGezag
    And person 'Nandy'
    * has 'Jorine' as parent 1 with the following data
      | aanduiding in onderzoek (83.10) | datum ingang familierechtelijke betrekking (62.10) |
      | <aanduiding onderzoek>          | gisteren - 2 jaar                                  |
    * has 'Bastiaan' as parent 2
    When 'gezag' is requested for 'Nandy'
    Then the authority over 'Nandy' is joint parental authority with parent 'Jorine' and parent 'Bastiaan'
    And the authority is under investigation

    Examples:
      | aanduiding onderzoek | omschrijving                               |
      | 020120               | burgerservicenummer                        |
      | 020240               | geslachtsnaam                              |
      | 026210               | datum ingang familierechtelijke betrekking |
      | 020000               | hele groep                                 |

  Scenario Outline: the authority is determined using data of parent 2: <omschrijving> under investigation, there is GezamenlijkOuderlijkGezag
    And person 'Nandy'
    * has 'Jorine' as parent 1
    * has 'Bastiaan' as parent 2 with the following data
      | aanduiding in onderzoek (83.10) | datum ingang familierechtelijke betrekking (62.10) |
      | <aanduiding onderzoek>          | gisteren - 2 jaar                                  |
    When 'gezag' is requested for 'Nandy'
    Then the authority over 'Nandy' is joint parental authority with parent 'Jorine' and parent 'Bastiaan'
    And the authority is under investigation

    Examples:
      | aanduiding onderzoek | omschrijving                               |
      | 030120               | burgerservicenummer                        |
      | 030240               | geslachtsnaam                              |
      | 036210               | datum ingang familierechtelijke betrekking |
      | 030000               | hele groep                                 |

  Scenario: the authority is determined with the geslachtsnaam of parent 1 under investigation, there is EenhoofdigOuderlijkGezag
    Given person 'Jorine'
    * is a woman
    Given person 'Bastiaan'
    * is a man
    Given person 'Nandy'
    * has 'Jorine' as parent 1 with the following data
      | geslachtsaanduiding (04.10) | datum ingang familierechtelijke betrekking (62.10) | aanduiding in onderzoek (83.10) |
      | V                           | gisteren - 17 jaar                                 | 020410                          |
    * has 'Bastiaan' as parent 2 with the following data
      | geslachtsaanduiding (04.10) | datum ingang familierechtelijke betrekking (62.10) |
      | M                           | gisteren - 17 jaar                                 |
    When 'gezag' is requested for 'Nandy'
    Then the authority over 'Nandy' is sole parental authority with parent 'Jorine'
    And the authority is under investigation

  Scenario: the authority is determined with the geslachtsnaam of parent 2 under investigation, there is EenhoofdigOuderlijkGezag
    Given person 'Jorine'
    * is a woman
    Given person 'Bastiaan'
    * is a man
    Given person 'Nandy'
    * has 'Jorine' as parent 1 with the following data
      | geslachtsaanduiding (04.10) | datum ingang familierechtelijke betrekking (62.10) |
      | V                           | gisteren - 17 jaar                                 |
    * has 'Bastiaan' as parent 2 with the following data
      | geslachtsaanduiding (04.10) | datum ingang familierechtelijke betrekking (62.10) | aanduiding in onderzoek (83.10) |
      | M                           | gisteren - 17 jaar                                 | 030410                          |
    When 'gezag' is requested for 'Nandy'
    Then the authority over 'Nandy' is sole parental authority with parent 'Jorine'
    And the authority is under investigation

  Scenario: the authority is determined with the historical certificate number of parent 1 under investigation, there is EenhoofdigOuderlijkGezag
    Given person 'Nandy'
    * was acknowledged by 'Jorine' as parent 1, at the birth declaration
    * the following data of parent 1 has been changed
      | aanduiding in onderzoek (83.10) | datum ingang familierechtelijke betrekking (62.10) |
      | 528120                          | gisteren - 17 jaar                                 |
    * the following data of parent 1 has been changed
      | aanduiding in onderzoek (83.10) | datum ingang familierechtelijke betrekking (62.10) |
      |                                 | gisteren - 17 jaar                                 |
    * has 'Bastiaan' as parent 2
    When 'gezag' is requested for 'Nandy'
    Then the authority over 'Nandy' is sole parental authority with parent 'Bastiaan'
    And the authority is under investigation

  Scenario: the authority is determined with the historical certificate number of parent 2 under investigation, there is EenhoofdigOuderlijkGezag
    Given person 'Nandy'
    * has 'Jorine' as parent 1
    * was acknowledged by 'Bastiaan' as parent 2, at the birth declaration
    * the following data of parent 2 has been changed
      | aanduiding in onderzoek (83.10) | datum ingang familierechtelijke betrekking (62.10) |
      | 538120                          | gisteren - 17 jaar                                 |
    * the following data of parent 2 has been changed
      | aanduiding in onderzoek (83.10) | datum ingang familierechtelijke betrekking (62.10) |
      |                                 | gisteren - 17 jaar                                 |
    When 'gezag' is requested for 'Nandy'
    Then the authority over 'Nandy' is sole parental authority with parent 'Jorine'
    And the authority is under investigation