HAALCENTRAAL English translation
BRP API / Personen / Features / geslachtsnaam_partner_leeg_onbekend

Composing the aanhef where the surname of the partner of the person is empty or unknown.

# language: en

Feature: Composing the aanhef where the surname of the partner of the person is empty or unknown.

Rule: Aanduiding naamgebruik "E" (own name) is applied for a person where the surname of the partner is empty or unknown and the name of the partner is used
  The aanhef is composed for aanduiding naamgebruik "E" where all of the following conditions are met:
    - the surname of the partner is empty or unknown (.)
    - aanduidingNaamgebruik is not equal to "E" (own)
    - the aanhef is not a form of address for the title of nobility of the person ("Hoogwelgeboren heer", "Hoogwelgeboren vrouwe", "Hooggeboren heer", "Hooggeboren vrouwe" or "Hoogheid")
    - the aanhef is not a form of address of a courtesy title based on the title of nobility of the partner ("Hoogwelgeboren vrouwe", "Hooggeboren vrouwe" or "Hoogheid")

  Scenario Outline: the name of the partner is unknown with aanduiding naamgebruik "<naamgebruik>"
    Given the person with citizen service number '000000139' has the following data
    | naam                           | waarde        |
    | geslachtsaanduiding (04.10)    | V             |
    | voorvoegsel (02.30)            | de            |
    | geslachtsnaam (02.40)          | Boer          |
    | aanduiding naamgebruik (61.10) | <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 | 000000139                       |
    | fields              | adressering.aanhef              |
    Then the response has a person with the following 'adressering' data
    | naam   | waarde                  |
    | aanhef | Geachte mevrouw De Boer |

    Examples:
    | naamgebruik |
    | E           |
    | P           |
    | V           |
    | N           |

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

    Examples:
    | geslacht | adellijkeTitelPredicaat partner | naamgebruik | aanhef                  |
    | V        | G                               | E           | Geachte mevrouw De Boer |
    | V        | G                               | V           | Hooggeboren vrouwe      |
    | V        | G                               | N           | Hooggeboren vrouwe      |
    | V        | G                               | P           | Hooggeboren vrouwe      |
    | M        | G                               | V           | Geachte heer De Boer    |
    | O        | G                               | V           | Geachte J.A. de Boer    |
    | V        | GI                              | V           | Geachte mevrouw De Boer |
    | V        | JH                              | V           | Geachte mevrouw De Boer |