HAALCENTRAAL English translation
BRP API / Personen / Features / ouders-gba

ouder (Persoon)

# language: en

@gba
Feature: ouder (Persoon)
  Parents can be supplied for a person.
  This contains data about the family-law relationship plus a few identifying properties of the parent.

Rule: The parent in category 2 has ouderAanduiding "1" and the parent in category 3 has ouderAanduiding "2"

  Scenario: The person has two parents
    Given the person with citizen service number '000000152' has a parent '1' with the following data
    | voornamen (02.10) |
    | Lisette           |
    And the person has a parent '2' with the following data
    | voornamen (02.10) |
    | Guîllaumé         |
    When gba persons are searched with the following parameters
    | naam                | waarde                                       |
    | type                | RaadpleegMetBurgerservicenummer              |
    | burgerservicenummer | 000000152                                    |
    | fields              | ouders.ouderAanduiding,ouders.naam.voornamen |
    Then the response has a person with a 'ouder' with the following data
    | naam            | waarde  |
    | ouderAanduiding | 1       |
    | naam.voornamen  | Lisette |
    And the person has a 'ouder' with the following data
    | naam            | waarde    |
    | ouderAanduiding | 2         |
    | naam.voornamen  | Guîllaumé |

Rule: the current data of parents is supplied

  Scenario: parent data corrected
    Given the person with citizen service number '000000164' has a parent '1' with the following data
    | voornamen (02.10) |
    | Chantal           |
    And the person has a parent '2' with the following data
    | voornamen (02.10) |
    | Christiaan        |
    And the parent '2' has been corrected to the following data
    | voornamen (02.10) |
    | Mark              |
    When gba persons are searched with the following parameters
    | naam                | waarde                                       |
    | type                | RaadpleegMetBurgerservicenummer              |
    | burgerservicenummer | 000000164                                    |
    | fields              | ouders.ouderAanduiding,ouders.naam.voornamen |
    Then the response has a person with a 'ouder' with the following data
    | naam            | waarde  |
    | ouderAanduiding | 1       |
    | naam.voornamen  | Chantal |
    And the person has a 'ouder' with the following data
    | naam            | waarde |
    | ouderAanduiding | 2      |
    | naam.voornamen  | Mark   |

  Scenario: change of gender of the parent
    Given the person with citizen service number '000000176' has a parent '1' with the following data
    | voornamen (02.10) | geslachtsaanduiding (04.10) |
    | Noa               | V                           |
    And the person has a parent '2' with the following data
    | voornamen (02.10) | geslachtsaanduiding (04.10) |
    | John              | M                           |
    And the parent '2' has been changed to the following data
    | voornamen (02.10) | geslachtsaanduiding (04.10) |
    | Johanna           | V                           |
    When gba persons are searched with the following parameters
    | naam                | waarde                                                       |
    | type                | RaadpleegMetBurgerservicenummer                              |
    | burgerservicenummer | 000000176                                                    |
    | fields              | ouders.ouderAanduiding,ouders.naam.voornamen,ouders.geslacht |
    Then the response has a person with a 'ouder' with the following data
    | naam                  | waarde |
    | ouderAanduiding       | 1      |
    | geslacht.code         | V      |
    | geslacht.omschrijving | vrouw  |
    | naam.voornamen        | Noa    |
    And the person has a 'ouder' with the following data
    | naam                  | waarde  |
    | ouderAanduiding       | 2       |
    | geslacht.code         | V       |
    | geslacht.omschrijving | vrouw   |
    | naam.voornamen        | Johanna |

  Scenario: adoption
    Given the person with citizen service number '000000188' has a parent '1' with the following data
    | voornamen (02.10) | datum ingang familierechtelijke betrekking (62.10) |
    | Me'Lisa           | 20170106                                           |
    And the parent '1' has been corrected to the following data
    | voornamen (02.10) | datum ingang familierechtelijke betrekking (62.10) |
    | Olivia Ghislaine  | 20190317                                           |
    And the person has a parent '2' with the following data
    | datum ingang familierechtelijke betrekking (62.10) |
    | 00000000                                           |
    And the parent '2' has been corrected to the following data
    | voornamen (02.10) | datum ingang familierechtelijke betrekking (62.10) |
    | Kevin             | 20190317                                           |
    When gba persons are searched with the following parameters
    | naam                | waarde                                                                                      |
    | type                | RaadpleegMetBurgerservicenummer                                                             |
    | burgerservicenummer | 000000188                                                                                   |
    | fields              | ouders.ouderAanduiding,ouders.naam.voornamen,ouders.datumIngangFamilierechtelijkeBetrekking |
    Then the response has a person with a 'ouder' with the following data
    | naam                                    | waarde           |
    | naam.voornamen                          | Olivia Ghislaine |
    | ouderAanduiding                         | 1                |
    | datumIngangFamilierechtelijkeBetrekking | 20190317         |
    And the person has a 'ouder' with the following data
    | naam                                    | waarde   |
    | naam.voornamen                          | Kevin    |
    | ouderAanduiding                         | 2        |
    | datumIngangFamilierechtelijkeBetrekking | 20190317 |

  Scenario: denial followed by acknowledgement
    Given the person with citizen service number '000000206' has a parent '1' with the following data
    | voornamen (02.10) |
    | Chantal           |
    And the person has a parent '2' with the following data
    | voornamen (02.10) |
    | Mark              |
    And the parent '2' has been corrected to the following data
    | voornamen (02.10) |
    |                   |
    And the parent '2' has been corrected to the following data
    | voornamen (02.10) |
    | Wieger            |
    When gba persons are searched with the following parameters
    | naam                | waarde                                       |
    | type                | RaadpleegMetBurgerservicenummer              |
    | burgerservicenummer | 000000206                                    |
    | fields              | ouders.ouderAanduiding,ouders.naam.voornamen |
    Then the response has a person with a 'ouder' with the following data
    | naam            | waarde  |
    | naam.voornamen  | Chantal |
    | ouderAanduiding | 1       |
    And the person has a 'ouder' with the following data
    | naam            | waarde |
    | naam.voornamen  | Wieger |
    | ouderAanduiding | 2      |

Rule: the parent data supplied is the data as recorded on the personal record of the person requested
  # When consulting a person, only data from the personal record of the person requested is used, never data from the personal record of the parent

  Scenario: The parent has undergone a change of gender, but the person requested does not recognize this
    Given the person with citizen service number '000000218' has a parent '1' with the following data
    | burgerservicenummer (01.20) | voornamen (02.10) | geslachtsaanduiding (04.10) |
    | 000007896                   | Ellen             | V                           |
    And the person has a parent '2' with the following data
    | burgerservicenummer (01.20) | voornamen (02.10) | geslachtsaanduiding (04.10) |
    | 000007897                   | Karel             | M                           |
    And the parent '2' has been corrected to the following data
    | burgerservicenummer (01.20) | voornamen (02.10) | geslachtsaanduiding (04.10) |
    | 000007897                   | Charlotte         | V                           |
    And the parent '2' has been corrected to the following data
    | burgerservicenummer (01.20) | voornamen (02.10) | geslachtsaanduiding (04.10) |
    | 000007897                   | Karel             | M                           |
    When gba persons are searched with the following parameters
    | naam                | waarde                                                                                  |
    | type                | RaadpleegMetBurgerservicenummer                                                         |
    | burgerservicenummer | 000000218                                                                               |
    | fields              | ouders.ouderAanduiding,ouders.burgerservicenummer,ouders.geslacht,ouders.naam.voornamen |
    Then the response has a person with a 'ouder' with the following data
    | naam                  | waarde    |
    | burgerservicenummer   | 000007896 |
    | geslacht.code         | V         |
    | geslacht.omschrijving | vrouw     |
    | naam.voornamen        | Ellen     |
    | ouderAanduiding       | 1         |
    And the person has a 'ouder' with the following data
    | naam                  | waarde    |
    | burgerservicenummer   | 000007897 |
    | geslacht.code         | M         |
    | geslacht.omschrijving | man       |
    | naam.voornamen        | Karel     |
    | ouderAanduiding       | 2         |

Rule: Where data has been recorded only in group 81, 82, 83, 84, 85 and/or 86 and no data in group 1, 2, 3, 4 or 62, the parent is not included
  Use of the fields parameter has no effect on the supply of a parent

  Scenario: foundling (an unknown parent with ouderaanduiding "1" and no parent with ouderaanduiding "2")
    Given the person with citizen service number '000000231' has a parent '1' with the following data
    | datum ingang familierechtelijke betrekking (62.10) | geslachtsnaam (02.40) | geslachtsaanduiding (04.10) |
    | 20190614                                           | .                     | V                           |
    And the person has a parent '2' with the following data
    | aktenummer (81.20) | datum ingang geldigheid (85.10) |
    | DOC1234            | 20160518                        |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000231                       |
    | fields              | ouders                          |
    Then the response has a person with a 'ouder' with the following data
    | naam                                    | waarde   |
    | ouderAanduiding                         | 1        |
    | naam.geslachtsnaam                      | .        |
    | geslacht.code                           | V        |
    | geslacht.omschrijving                   | vrouw    |
    | datumIngangFamilierechtelijkeBetrekking | 20190614 |

  Scenario: No parent with ouderaanduiding "2", but this is under investigation
    Given the person with citizen service number '000000231' has a parent '1' with the following data
    | datum ingang familierechtelijke betrekking (62.10) | geslachtsnaam (02.40) | geslachtsaanduiding (04.10) |
    | 20190614                                           | .                     | V                           |
    And the person has a parent '2' with the following data
    | aktenummer (81.20) | aanduiding in onderzoek (83.10) | datum ingang onderzoek (83.20) | datum ingang geldigheid (85.10) |
    | DOC1234            | 030000                          | 20230114                       | 20160518                        |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000231                       |
    | fields              | ouders                          |
    Then the response has a person with a 'ouder' with the following data
    | naam                                    | waarde   |
    | ouderAanduiding                         | 1        |
    | naam.geslachtsnaam                      | .        |
    | geslacht.code                           | V        |
    | geslacht.omschrijving                   | vrouw    |
    | datumIngangFamilierechtelijkeBetrekking | 20190614 |

  Scenario: an entirely unknown parent
    Given the person with citizen service number '000000243' has a parent '1' with the following data
    | geslachtsnaam (02.40) | datum ingang familierechtelijke betrekking (62.10) |
    | .                     | 00000000                                           |
    And the person has a parent '2' with the following data
    | aktenummer (81.20) | datum ingang geldigheid (85.10) |
    | DOC1234            | 20160518                        |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000243                       |
    | fields              | ouders                          |
    Then the response has a person with a 'ouder' with the following data
    | naam                                    | waarde   |
    | ouderAanduiding                         | 1        |
    | naam.geslachtsnaam                      | .        |
    | datumIngangFamilierechtelijkeBetrekking | 00000000 |

  Scenario: a parent with data only in groups 81 and 85
    Given the person with citizen service number '000000255' has a parent '1' with the following data
    | geslachtsnaam (02.40) | geslachtsaanduiding (04.10) | datum ingang familierechtelijke betrekking (62.10) |
    | Jansen                | V                           | 20190614                                           |
    And the person has a parent '2' with the following data
    | aktenummer (81.20) | datum ingang geldigheid (85.10) |
    | DOC1234            | 20160518                        |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000255                       |
    | fields              | ouders                          |
    Then the response has a person with a 'ouder' with the following data
    | naam                                    | waarde   |
    | naam.geslachtsnaam                      | Jansen   |
    | ouderAanduiding                         | 1        |
    | geslacht.code                           | V        |
    | geslacht.omschrijving                   | vrouw    |
    | datumIngangFamilierechtelijkeBetrekking | 20190614 |

  Scenario: the person has no parents
    Given the person with citizen service number '000000061' has the following data
    | naam                            | waarde          |
    | voornamen (02.10)               | Daan            |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000061                       |
    | fields              | ouders                        |
    Then the response has a person without 'ouder' data

  Scenario: parent 1 with data only in groups 81 and 85 and no parent 2
    Given the person with citizen service number '000000255' has a parent '1' with the following data
    | aktenummer (81.20) | datum ingang geldigheid (85.10) |
    | DOC1234            | 20160518                        |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000255                       |
    | fields              | ouders                          |
    Then the response has a person without 'ouder' data
        

Rule: Where data has been registered for the parent but none of the data requested with fields has a value, a 'ouders' without data is supplied

  Scenario: using fields to request data without a value
    Given the person with citizen service number '000000292' has a parent '1' with the following data
    | geslachtsnaam (02.40) | geslachtsaanduiding (04.10) | datum ingang familierechtelijke betrekking (62.10) |
    | Ibin binti Yalniz     | V                           | 20190614                                           |
    When gba persons are searched with the following parameters
    | naam                | waarde                                      |
    | type                | RaadpleegMetBurgerservicenummer             |
    | burgerservicenummer | 000000292                                   |
    | fields              | ouders.naam.voornamen,ouders.geboorte.datum |
    Then the response has a person with a 'ouder' without 'naam' data

  Scenario Outline: the parent has the date field: 'datum ingang familierechtelijke betrekking (62.10)'
    Given the person with citizen service number '000000012' has a parent '1' with the following data
    | naam                                               | waarde   |
    | datum ingang familierechtelijke betrekking (62.10) | 20020701 |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000012                       |
    | fields              | <field>                         |
    Then the response has a person with a 'ouder' with only the following data
    | naam                                    | waarde   |
    | ouderAanduiding                         | 1        |
    | datumIngangFamilierechtelijkeBetrekking | 20020701 |

    Examples:
    | field                                                                 |
    | ouders                                                                |
    | ouders.ouderAanduiding,ouders.datumIngangFamilierechtelijkeBetrekking |

  Scenario Outline: the parent has the field: 'burgerservicenummer (01.20)'
    Given the person with citizen service number '000000012' has a parent '1' with the following data
    | naam                        | waarde    |
    | burgerservicenummer (01.20) | 000000013 |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000012                       |
    | fields              | <field>                         |
    Then the response has a person with a 'ouder' with only the following data
    | naam                | waarde    |
    | ouderAanduiding     | 1         |
    | burgerservicenummer | 000000013 |

    Examples:
    | field                                             |
    | ouders                                            |
    | ouders.ouderAanduiding,ouders.burgerservicenummer |

  Scenario Outline: unknown value for a <groep>.<veld> with ouders
    Given the person with citizen service number '000000267' has a parent '1' with the following data
    | naam                        | waarde    |
    | burgerservicenummer (01.20) | 000000279 |
    | <element>                   | 0000      |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000267                       |
    | fields              | ouders.geboorte.<veld>          |
    Then the response has a person with a 'ouder' with the following 'geboorte' data
    | naam                | waarde   |
    | <veld>.code         | 0000     |
    | <veld>.omschrijving | Onbekend |

    Examples:
    | veld   | element                |
    | plaats | geboorteplaats (03.20) |
    | land   | geboorteland (03.30)   |

  Scenario: an entirely unknown date of birth for the parent
   Given the person with citizen service number '000000395' has a parent '1' with the following data
    | naam                        | waarde    |
    | burgerservicenummer (01.20) | 000000401 |
    | geboortedatum (03.10)       | 00000000  |
    When gba persons are searched with the following parameters
    | naam                | waarde                                                               |
    | type                | RaadpleegMetBurgerservicenummer                                      |
    | burgerservicenummer | 000000395                                                            |
    | fields              | burgerservicenummer,ouders.burgerservicenummer,ouders.geboorte.datum |
    Then the response has a person with only the following data
    | naam                | waarde    |
    | burgerservicenummer | 000000395 |
    And the person has a 'ouder' with only the following data
    | naam                | waarde    |
    | burgerservicenummer | 000000401 |
    | geboorte.datum      | 00000000  |

  Scenario Outline: '<type>' is under investigation and one or more ouder fields are requested
    Given the person with citizen service number '000000012' has a parent '<ouder aanduiding>' with the following data
    | naam                            | waarde                    |
    | burgerservicenummer (01.20)     | 000000401                 |
    | aanduiding in onderzoek (83.10) | <aanduiding in onderzoek> |
    | datum ingang onderzoek (83.20)  | 20020701                  |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000012                       |
    | fields              | <fields>                        |
    Then the response has a person with a 'ouder' with the following data
    | naam                                      | waarde                    |
    | inOnderzoek.aanduidingGegevensInOnderzoek | <aanduiding in onderzoek> |
    | inOnderzoek.datumIngangOnderzoek          | 20020701                  |
    | <naam veld 1>                             | <waarde veld 1>           |
    | <naam veld 2>                             | <waarde veld 2>           |

    Examples:
    | ouder aanduiding | aanduiding in onderzoek | fields                                         | naam veld 1         | waarde veld 1 | naam veld 2     | waarde veld 2 | type                   |
    | 1                | 020000                  | ouders                                         | burgerservicenummer | 000000401     | ouderAanduiding | 1             | hele categorie ouder 1 |
    | 1                | 020300                  | ouders.ouderAanduiding                         | ouderAanduiding     | 1             |                 |               | hele groep geboorte    |
    | 1                | 020310                  | ouders.geboorte                                |                     |               |                 |               | geboortedatum          |
    | 1                | 020320                  | ouders.naam                                    |                     |               |                 |               | geboorteplaats         |
    | 1                | 020330                  | ouders.geboorte.datum                          |                     |               |                 |               | geboorteland           |
    | 2                | 030000                  | ouders.naam.geslachtsnaam                      |                     |               |                 |               | hele categorie ouder 2 |
    | 2                | 030300                  | ouders.datumIngangFamilierechtelijkeBetrekking |                     |               |                 |               | hele groep geboorte    |
    | 2                | 030310                  | ouders.naam.voornamen                          |                     |               |                 |               | geboortedatum          |
    | 2                | 030320                  | ouders.geboorte.plaats                         |                     |               |                 |               | geboorteplaats         |
    | 2                | 030330                  | ouders.naam.voorvoegsel                        |                     |               |                 |               | geboorteland           |

Rule: where the place of birth (03.20) does not contain a valid municipality code, the place is supplied in the omschrijving field and the code field is not supplied
      - a valid municipality code consists of four digits and occurs in the national table Gemeenten
      - if the value in the place of birth (03.20) does not occur in the national table Gemeenten, the value is included only in the description. (Foreign place name or coordinates)

  Scenario: Plaats is a foreign place or location for the code of <relatie> <element>
    Given the person with citizen service number '000000309' has a parent '1' with the following data
    | geboorteplaats (03.20) |
    | 52°2'43N4°22'39"O      |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000309                       |
    | fields              | ouders.geboorte.plaats          |
    Then the response has a person with a 'ouder' with the following 'geboorte' data
    | naam                | waarde            |
    | plaats.omschrijving | 52°2'43N4°22'39"O |


Rule: Where the voorletters of the parents are requested, the voornamen are supplied

  Scenario: The voorletters of the parents are requested
    Given the person with citizen service number '000000152' has a parent '1' with the following data
    | voornamen (02.10) | geslachtsnaam (02.40) |
    | Lisette           | Postma                |
    And the person has a parent '2' with the following data
    | voornamen (02.10) | geslachtsnaam (02.40) |
    | Guîllaumé         | Postma                |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000152                       |
    | fields              | ouders.naam.voorletters         |
    Then the response has a person with a 'ouder' with the following data
    | naam            | waarde  |
    | naam.voornamen  | Lisette |
    And the person has a 'ouder' with the following data
    | naam            | waarde    |
    | naam.voornamen  | Guîllaumé |