HAALCENTRAAL English translation
BRP API / Personen / Features / geen-partner-geslachtsnaam

As a municipality I want to use only correct partner data in the aanschrijfwijze for my residents

# language: en

Feature: As a municipality I want to use only correct partner data in the aanschrijfwijze for my residents

  Rule: Where the surname of the partner is empty or unknown and the name of the partner is used, aanduiding naamgebruik "E" (own name) is applied

    Scenario Outline: an unknown geslachtsnaam of the partner with aanduiding naamgebruik "<naamgebruik>" supplies an aanschrijfwijze with the own name
      Given the person with citizen service number '000000504' has the following data
      | naam                           | waarde                   |
      | voornamen (02.10)              | Fred                     |
      | geslachtsnaam (02.40)          | Groenen                  |
      | aanduiding naamgebruik (61.10) | <aanduiding naamgebruik> |
      And the person has a 'partner' with the following data
      | naam                  | waarde |
      | geslachtsnaam (02.40) | .      |
      When persons are searched with the following parameters
      | naam                | waarde                          |
      | type                | RaadpleegMetBurgerservicenummer |
      | burgerservicenummer | 000000504                       |
      | fields              | adressering.aanschrijfwijze     |
      Then the response has a person with the following 'adressering' data
      | naam                 | waarde     |
      | aanschrijfwijze.naam | F. Groenen |

      Examples:
      | aanduiding naamgebruik |
      | P                      |
      | V                      |
      | N                      |

    Scenario Outline: no geslachtsnaam of the partner with aanduiding naamgebruik "<naamgebruik>" supplies an aanschrijfwijze with the own name
      Given the person with citizen service number '000000516' has the following data
      | naam                           | waarde                   |
      | voornamen (02.10)              | Fred                     |
      | geslachtsnaam (02.40)          | Groenen                  |
      | aanduiding naamgebruik (61.10) | <aanduiding naamgebruik> |
      And the person has a 'partner' with the following data
      | naam              | waarde           |
      | voornamen (02.10) | Ali bin Mohammed |
      When persons are searched with the following parameters
      | naam                | waarde                          |
      | type                | RaadpleegMetBurgerservicenummer |
      | burgerservicenummer | 000000516                       |
      | fields              | adressering.aanschrijfwijze     |
      Then the response has a person with the following 'adressering' data
      | naam                 | waarde     |
      | aanschrijfwijze.naam | F. Groenen |

      Examples:
      | aanduiding naamgebruik |
      | P                      |
      | V                      |
      | N                      |

    Scenario Outline: the person has a partner with an unknown name and adellijkeTitelPredicaat "B"
      Given the person with citizen service number '000000528' has the following data
      | naam                           | waarde    |
      | geslachtsaanduiding (04.10)    | V         |
      | voornamen (02.10)              | Jo Anne   |
      | voorvoegsel (02.30)            | de        |
      | geslachtsnaam (02.40)          | Boer      |
      | aanduiding naamgebruik (61.10) | P         |
      And the person has a 'partner' with the following data
      | naam                                 | waarde |
      | adellijke titel of predicaat (02.20) | B      |
      | geslachtsnaam (02.40)                | .      |
      When persons are searched with the following parameters
      | naam                | waarde                          |
      | type                | RaadpleegMetBurgerservicenummer |
      | burgerservicenummer | 000000528                       |
      | fields              | adressering.aanschrijfwijze     |
      Then the response has a person with the following 'adressering' data
      | naam                 | waarde       |
      | aanschrijfwijze.naam | J.A. de Boer |

    Scenario Outline: a person without a partner with aanduiding naamgebruik "<naamgebruik>" supplies an aanschrijfwijze with the own name
      Given the person with citizen service number '000000541' has the following data
      | naam                           | waarde                   |
      | voornamen (02.10)              | Fred                     |
      | geslachtsnaam (02.40)          | Groenen                  |
      | aanduiding naamgebruik (61.10) | <aanduiding naamgebruik> |
      And the person has never had a current or dissolved marriage or partnership
      When persons are searched with the following parameters
      | naam                | waarde                          |
      | type                | RaadpleegMetBurgerservicenummer |
      | burgerservicenummer | 000000541                       |
      | fields              | adressering.aanschrijfwijze     |
      Then the response has a person with the following 'adressering' data
      | naam                 | waarde     |
      | aanschrijfwijze.naam | F. Groenen |

      Examples:
      | aanduiding naamgebruik |
      | P                      |
      | V                      |
      | N                      |