HAALCENTRAAL English translation
BRP API / Personen / Features / overzicht

composing address lines

#language: en

Feature: composing address lines

  As a consumer of the BRP bevragen API
  I want the residence data of a person to be requestable in accordance with NEN 5825:2002
  So that I can use the address data of the person correctly

Rule: for an address with only a street name and house number, adresregel1 is composed as follows: '[straatnaam][spatie][huisnummer]'

  Scenario: the person has an address with only a street name and house number as verblijfplaats
    Given the person with citizen service number '000000188' has the following data
    | geslachtsnaam (02.40) | geboortedatum (03.10) |
    | Maassen               | 19830526              |
    And the person has the following 'verblijfplaats' data
    | functie adres (10.10) |
    | W                     |
    And the 'verblijfplaats' has the following 'adres' data
    | gemeentecode (92.10) | straatnaam (11.10)       | huisnummer (11.20) |
    | 0518                 | Jonkheer van Riemsdijkln | 88                 |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | adressering.adresregel1             |
    Then the response has a person with only the following 'adressering' data
    | naam        | waarde                      |
    | adresregel1 | Jonkheer van Riemsdijkln 88 |

Rule: for an address with a street name, house number and house letter, adresregel1 is composed as follows: '[straatnaam][spatie][huisnummer][spatie][huisletter]'

  Scenario: the person has an address with a street name, house number and house letter as verblijfplaats
    Given the person with citizen service number '000000188' has the following data
    | geslachtsnaam (02.40) | geboortedatum (03.10) |
    | Maassen               | 19830526              |
    And the person has the following 'verblijfplaats' data
    | functie adres (10.10) |
    | W                     |
    And the 'verblijfplaats' has the following 'adres' data
    | gemeentecode (92.10) | straatnaam (11.10) | huisnummer (11.20) | huisletter (11.30) |
    | 0518                 | Borgesiusstraat    | 103                | c                  |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | adressering.adresregel1             |
    Then the response has a person with only the following 'adressering' data
    | naam        | waarde                |
    | adresregel1 | Borgesiusstraat 103 c |

Rule: for an address with a street name, house number and house number addition beginning with a letter, adresregel1 is composed as follows: [straatnaam][spatie][huisnummer][spatie][huisnummertoevoeging]'

  Scenario: the person has an address with a street name, house number and house number addition beginning with a letter as verblijfplaats
    Given the person with citizen service number '000000188' has the following data
    | geslachtsnaam (02.40) | geboortedatum (03.10) |
    | Maassen               | 19830526              |
    And the person has the following 'verblijfplaats' data
    | functie adres (10.10) |
    | W                     |
    And the 'verblijfplaats' has the following 'adres' data
    | gemeentecode (92.10) | straatnaam (11.10)    | huisnummer (11.20) | huisnummertoevoeging (11.40) |
    | 0518                 | Daniël Stalpertstraat | 35                 | III                          |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | adressering.adresregel1             |
    Then the response has a person with only the following 'adressering' data
    | naam        | waarde                       |
    | adresregel1 | Daniël Stalpertstraat 35 III |

Rule: for an address with a street name, house number and house number addition beginning with a digit, adresregel1 is composed as follows: [straatnaam][spatie][huisnummer]-[huisnummertoevoeging]'

  Scenario: the person has an address with a street name, house number and house number addition beginning with a digit as verblijfplaats
    Given the person with citizen service number '000000188' has the following data
    | geslachtsnaam (02.40) | geboortedatum (03.10) |
    | Maassen               | 19830526              |
    And the person has the following 'verblijfplaats' data
    | functie adres (10.10) |
    | W                     |
    And the 'verblijfplaats' has the following 'adres' data
    | gemeentecode (92.10) | straatnaam (11.10) | huisnummer (11.20) | huisnummertoevoeging (11.40) |
    | 0518                 | Atatürkstraat      | 9                  | 2                            |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | adressering.adresregel1             |
    Then the response has a person with only the following 'adressering' data
    | naam        | waarde            |
    | adresregel1 | Atatürkstraat 9-2 |

Rule: for an address with a street name, house number, house letter and house number addition, adresregel1 is composed as follows: [straatnaam][spatie][huisnummer][spatie][huisletter][huisnummertoevoeging]'

  Scenario: the person has an address with a street name, house number, house letter and house number addition beginning with a letter as verblijfplaats
    Given the person with citizen service number '000000188' has the following data
    | geslachtsnaam (02.40) | geboortedatum (03.10) |
    | Maassen               | 19830526              |
    And the person has the following 'verblijfplaats' data
    | functie adres (10.10) |
    | W                     |
    And the 'verblijfplaats' has the following 'adres' data
    | gemeentecode (92.10) | straatnaam (11.10) | huisnummer (11.20) | huisletter (11.30) | huisnummertoevoeging (11.40) |
    | 0518                 | St. Jacobsstraat   | 400                | L                  | Toe                          |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | adressering.adresregel1             |
    Then the response has a person with only the following 'adressering' data
    | naam        | waarde                    |
    | adresregel1 | St. Jacobsstraat 400 LToe |

  Scenario: the person has an address with a street name, house number, house letter and house number addition beginning with a digit as verblijfplaats
    Given the person with citizen service number '000000188' has the following data
    | geslachtsnaam (02.40) | geboortedatum (03.10) |
    | Maassen               | 19830526              |
    And the person has the following 'verblijfplaats' data
    | functie adres (10.10) |
    | W                     |
    And the 'verblijfplaats' has the following 'adres' data
    | gemeentecode (92.10) | straatnaam (11.10) | huisnummer (11.20) | huisletter (11.30) | huisnummertoevoeging (11.40) |
    | 0518                 | Cronus             | 555                | B                  | 73c                          |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | adressering.adresregel1             |
    Then the response has a person with only the following 'adressering' data
    | naam        | waarde          |
    | adresregel1 | Cronus 555 B73c |

Rule: for an address with a street name, house number and designation with the house number 'by', adresregel1 is composed as follows: [straatnaam][spatie]bij[spatie][huisnummer]'

  Scenario: the person has an address with a street name, house number and designation with the house number 'by' as verblijfplaats
    Given the person with citizen service number '000000188' has the following data
    | geslachtsnaam (02.40) | geboortedatum (03.10) |
    | Maassen               | 19830526              |
    And the person has the following 'verblijfplaats' data
    | functie adres (10.10) |
    | W                     |
    And the 'verblijfplaats' has the following 'adres' data
    | gemeentecode (92.10) | straatnaam (11.10) | huisnummer (11.20) | aanduiding bij huisnummer (11.50) |
    | 0518                 | Graan voor Visch   | 15201              | by                                |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | adressering.adresregel1             |
    Then the response has a person with only the following 'adressering' data
    | naam        | waarde                     |
    | adresregel1 | Graan voor Visch bij 15201 |

Rule: for an address with a street name, house number and designation with the house number 'to', adresregel1 is composed as follows: [straatnaam][spatie]t/o[spatie][huisnummer]'

  Scenario: the person has an address with a street name, house number and designation with the house number 'to' as verblijfplaats
    Given the person with citizen service number '000000188' has the following data
    | geslachtsnaam (02.40) | geboortedatum (03.10) |
    | Maassen               | 19830526              |
    And the person has the following 'verblijfplaats' data
    | functie adres (10.10) |
    | W                     |
    And the 'verblijfplaats' has the following 'adres' data
    | gemeentecode (92.10) | straatnaam (11.10) | huisnummer (11.20) | aanduiding bij huisnummer (11.50) |
    | 0518                 | 1e Exloërmond      | 3                  | to                                |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | adressering.adresregel1             |
    Then the response has a person with only the following 'adressering' data
    | naam        | waarde              |
    | adresregel1 | 1e Exloërmond t/o 3 |

Rule: for an address with a street name, house number, house letter and designation with the house number 'by', adresregel1 is composed as follows: [straatnaam][spatie]bij[spatie][huisnummer][spatie][huisletter]'

  Scenario: the person has an address with a street name, house number, house letter and designation with the house number 'by' as verblijfplaats
    Given the person with citizen service number '000000188' has the following data
    | geslachtsnaam (02.40) | geboortedatum (03.10) |
    | Maassen               | 19830526              |
    And the person has the following 'verblijfplaats' data
    | functie adres (10.10) |
    | W                     |
    And the 'verblijfplaats' has the following 'adres' data
    | gemeentecode (92.10) | straatnaam (11.10) | huisnummer (11.20) | huisletter (11.30) | aanduiding bij huisnummer (11.50) |
    | 0518                 | Graan voor Visch   | 15201              | B                  | by                                |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | adressering.adresregel1             |
    Then the response has a person with only the following 'adressering' data
    | naam        | waarde                       |
    | adresregel1 | Graan voor Visch bij 15201 B |

Rule: for an address with a street name, house number, house letter and designation with the house number 'to', adresregel1 is composed as follows: [straatnaam][spatie]t/o[spatie][huisnummer][spatie][huisletter]'

  Scenario: the person has an address with a street name, house number, house letter and designation with the house number 'to' as verblijfplaats
    Given the person with citizen service number '000000188' has the following data
    | geslachtsnaam (02.40) | geboortedatum (03.10) |
    | Maassen               | 19830526              |
    And the person has the following 'verblijfplaats' data
    | functie adres (10.10) |
    | W                     |
    And the 'verblijfplaats' has the following 'adres' data
    | gemeentecode (92.10) | straatnaam (11.10) | huisnummer (11.20) | huisletter (11.30) | aanduiding bij huisnummer (11.50) |
    | 0518                 | 1e Exloërmond      | 3                  | B                  | to                                |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | adressering.adresregel1             |
    Then the response has a person with only the following 'adressering' data
    | naam        | waarde                |
    | adresregel1 | 1e Exloërmond t/o 3 B |

Rule: for an address with a street name, house number, house number addition beginning with a letter and designation with the house number 'by', adresregel1 is composed as follows: [straatnaam][spatie]bij[spatie][huisnummer][spatie][huisnummertoevoeging]

  Scenario: the person has an address with a street name, house number, house number addition beginning with a letter and designation with the house number 'by' as verblijfplaats
    Given the person with citizen service number '000000188' has the following data
    | geslachtsnaam (02.40) | geboortedatum (03.10) |
    | Maassen               | 19830526              |
    And the person has the following 'verblijfplaats' data
    | functie adres (10.10) |
    | W                     |
    And the 'verblijfplaats' has the following 'adres' data
    | gemeentecode (92.10) | straatnaam (11.10) | huisnummer (11.20) | huisnummertoevoeging (11.40) | aanduiding bij huisnummer (11.50) |
    | 0518                 | Graan voor Visch   | 15201              | III                          | by                                |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | adressering.adresregel1             |
    Then the response has a person with only the following 'adressering' data
    | naam        | waarde                         |
    | adresregel1 | Graan voor Visch bij 15201 III |

Rule: for an address with a street name, house number, house number addition beginning with a digit and designation with the house number 'by', adresregel1 is composed as follows: [straatnaam][spatie]bij[spatie][huisnummer]-[huisnummertoevoeging]

  Scenario: the person has an address with a street name, house number, house number addition beginning with a digit and designation with the house number 'by' as verblijfplaats
    Given the person with citizen service number '000000188' has the following data
    | geslachtsnaam (02.40) | geboortedatum (03.10) |
    | Maassen               | 19830526              |
    And the person has the following 'verblijfplaats' data
    | functie adres (10.10) |
    | W                     |
    And the 'verblijfplaats' has the following 'adres' data
    | gemeentecode (92.10) | straatnaam (11.10) | huisnummer (11.20) | huisnummertoevoeging (11.40) | aanduiding bij huisnummer (11.50) |
    | 0518                 | Graan voor Visch   | 15201              | 2                            | by                                |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | adressering.adresregel1             |
    Then the response has a person with only the following 'adressering' data
    | naam        | waarde                       |
    | adresregel1 | Graan voor Visch bij 15201-2 |

Rule: for an address with a street name, house number, house number addition beginning with a letter and designation with the house number 'to', adresregel1 is composed as follows: [straatnaam][spatie]t/o[spatie][huisnummer][spatie][huisnummertoevoeging]

  Scenario: the person has an address with a street name, house number, house number addition beginning with a letter and designation with the house number 'to' as verblijfplaats
    Given the person with citizen service number '000000188' has the following data
    | geslachtsnaam (02.40) | geboortedatum (03.10) |
    | Maassen               | 19830526              |
    And the person has the following 'verblijfplaats' data
    | functie adres (10.10) |
    | W                     |
    And the 'verblijfplaats' has the following 'adres' data
    | gemeentecode (92.10) | straatnaam (11.10) | huisnummer (11.20) | huisnummertoevoeging (11.40) | aanduiding bij huisnummer (11.50) |
    | 0518                 | 1e Exloërmond      | 3                  | III                          | to                                |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | adressering.adresregel1             |
    Then the response has a person with only the following 'adressering' data
    | naam        | waarde                  |
    | adresregel1 | 1e Exloërmond t/o 3 III |

Rule: for an address with a street name, house number, house number addition beginning with a digit and designation with the house number 'to', adresregel1 is composed as follows: [straatnaam][spatie]t/o[spatie][huisnummer]-[huisnummertoevoeging]

  Scenario: the person has an address with a street name, house number, house number addition beginning with a digit and designation with the house number 'to' as verblijfplaats
    Given the person with citizen service number '000000188' has the following data
    | geslachtsnaam (02.40) | geboortedatum (03.10) |
    | Maassen               | 19830526              |
    And the person has the following 'verblijfplaats' data
    | functie adres (10.10) |
    | W                     |
    And the 'verblijfplaats' has the following 'adres' data
    | gemeentecode (92.10) | straatnaam (11.10) | huisnummer (11.20) | huisnummertoevoeging (11.40) | aanduiding bij huisnummer (11.50) |
    | 0518                 | 1e Exloërmond      | 3                  | 2                            | to                                |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | adressering.adresregel1             |
    Then the response has a person with only the following 'adressering' data
    | naam        | waarde                |
    | adresregel1 | 1e Exloërmond t/o 3-2 |

Rule: for an address with a street name, house number, house letter, house number addition and designation with the house number 'by', adresregel1 is composed as follows: [straatnaam][spatie]bij[spatie][huisnummer][spatie][huisletter][huisnummertoevoeging]'

  Scenario: the person has an address with a street name, house number, house letter, house number addition beginning with a letter and designation with the house number 'by' as verblijfplaats
    Given the person with citizen service number '000000188' has the following data
    | geslachtsnaam (02.40) | geboortedatum (03.10) |
    | Maassen               | 19830526              |
    And the person has the following 'verblijfplaats' data
    | functie adres (10.10) |
    | W                     |
    And the 'verblijfplaats' has the following 'adres' data
    | gemeentecode (92.10) | straatnaam (11.10) | huisnummer (11.20) | huisletter (11.30) | huisnummertoevoeging (11.40) | aanduiding bij huisnummer (11.50) |
    | 0518                 | Graan voor Visch   | 15201              | L                  | III                          | by                                |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | adressering.adresregel1             |
    Then the response has a person with only the following 'adressering' data
    | naam        | waarde                          |
    | adresregel1 | Graan voor Visch bij 15201 LIII |

  Scenario: the person has an address with a street name, house number, house letter, house number addition beginning with a digit and designation with the house number 'by' as verblijfplaats
    Given the person with citizen service number '000000188' has the following data
    | geslachtsnaam (02.40) | geboortedatum (03.10) |
    | Maassen               | 19830526              |
    And the person has the following 'verblijfplaats' data
    | functie adres (10.10) |
    | W                     |
    And the 'verblijfplaats' has the following 'adres' data
    | gemeentecode (92.10) | straatnaam (11.10) | huisnummer (11.20) | huisletter (11.30) | huisnummertoevoeging (11.40) | aanduiding bij huisnummer (11.50) |
    | 0518                 | Graan voor Visch   | 15201              | L                  | 2                            | by                                |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | adressering.adresregel1             |
    Then the response has a person with only the following 'adressering' data
    | naam        | waarde                        |
    | adresregel1 | Graan voor Visch bij 15201 L2 |

Rule: for an address with a street name, house number, house letter, house number addition and designation with the house number 'to', adresregel1 is composed as follows: [straatnaam][spatie]t/o[spatie][huisnummer][spatie][huisletter][huisnummertoevoeging]'

  Scenario: the person has an address with a street name, house number, house letter, house number addition beginning with a letter and designation with the house number 'to' as verblijfplaats
    Given the person with citizen service number '000000188' has the following data
    | geslachtsnaam (02.40) | geboortedatum (03.10) |
    | Maassen               | 19830526              |
    And the person has the following 'verblijfplaats' data
    | functie adres (10.10) |
    | W                     |
    And the 'verblijfplaats' has the following 'adres' data
    | gemeentecode (92.10) | straatnaam (11.10) | huisnummer (11.20) | huisletter (11.30) | huisnummertoevoeging (11.40) | aanduiding bij huisnummer (11.50) |
    | 0518                 | 1e Exloërmond      | 3                  | L                  | III                          | to                                |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | adressering.adresregel1             |
    Then the response has a person with only the following 'adressering' data
    | naam        | waarde                   |
    | adresregel1 | 1e Exloërmond t/o 3 LIII |

  Scenario: the person has an address with a street name, house number, house letter, house number addition beginning with a digit and designation with the house number 'to' as verblijfplaats
    Given the person with citizen service number '000000188' has the following data
    | geslachtsnaam (02.40) | geboortedatum (03.10) |
    | Maassen               | 19830526              |
    And the person has the following 'verblijfplaats' data
    | functie adres (10.10) |
    | W                     |
    And the 'verblijfplaats' has the following 'adres' data
    | gemeentecode (92.10) | straatnaam (11.10) | huisnummer (11.20) | huisletter (11.30) | huisnummertoevoeging (11.40) | aanduiding bij huisnummer (11.50) |
    | 0518                 | 1e Exloërmond      | 3                  | L                  | 2                            | to                                |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | adressering.adresregel1             |
    Then the response has a person with only the following 'adressering' data
    | naam        | waarde                 |
    | adresregel1 | 1e Exloërmond t/o 3 L2 |

Rule: for a location, adresregel1 is filled with the location description

  Scenario: the person has a location as verblijfplaats
    Given the person with citizen service number '000000188' has the following data
    | geslachtsnaam (02.40) | geboortedatum (03.10) |
    | Maassen               | 19830526              |
    And the person has the following 'verblijfplaats' data
    | gemeente van inschrijving (09.10) | functie adres (10.10) |
    | 0518                              | W                     |
    And the 'verblijfplaats' has the following 'adres' data
    | gemeentecode (92.10) | locatiebeschrijving (12.10)       |
    | 0518                 | Woonboot tegenover de Grote Sloot |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | adressering.adresregel1             |
    Then the response has a person with only the following 'adressering' data
    | naam        | waarde                            |
    | adresregel1 | Woonboot tegenover de Grote Sloot |

Rule: for an address with a postal code and place of residence, adresregel2 is composed as follows: [postcode numeriek deel][spatie][postcode alfabetisch deel][2 spaties][woonplaats in hoofdletters]

  Scenario: the person has an address with a postal code and place of residence as verblijfplaats
    Given the person with citizen service number '000000188' has the following data
    | geslachtsnaam (02.40) | geboortedatum (03.10) |
    | Maassen               | 19830526              |
    And the person has the following 'verblijfplaats' data
    | gemeente van inschrijving (09.10) | functie adres (10.10) |
    | 0518                              | W                     |
    And the 'verblijfplaats' has the following 'adres' data
    | gemeentecode (92.10) | straatnaam (11.10) | huisnummer (11.20) | postcode (11.60) | woonplaats (11.70) |
    | 0518                 | een straat         | 1                  | 2583XL           | Scheveningen       |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | adressering.adresregel2             |
    Then the response has a person with only the following 'adressering' data
    | naam        | waarde                |
    | adresregel2 | 2583 XL  SCHEVENINGEN |

Rule: for an address with a postal code and without a place of residence, adresregel2 is composed as follows: [postcode numeriek deel][spatie][postcode alfabetisch deel][2 spaties][omschrijving gemeente van inschrijving in hoofdletters]

  Scenario: the person has an address with a postal code and without a place of residence as verblijfplaats
    Given the person with citizen service number '000000188' has the following data
    | geslachtsnaam (02.40) | geboortedatum (03.10) |
    | Maassen               | 19830526              |
    And the person has the following 'verblijfplaats' data
    | gemeente van inschrijving (09.10) | functie adres (10.10) |
    | 0518                              | W                     |
    And the 'verblijfplaats' has the following 'adres' data
    | gemeentecode (92.10) | straatnaam (11.10) | huisnummer (11.20) | postcode (11.60) |
    | 0518                 | een straat         | 1                  | 2584BZ           |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | adressering.adresregel2             |
    Then the response has a person with only the following 'adressering' data
    | naam        | waarde                 |
    | adresregel2 | 2584 BZ  'S-GRAVENHAGE |

Rule: for a location, adresregel2 is composed as follows: [omschrijving gemeente van inschrijving in hoofdletters]

  Scenario: the person has a location as verblijfplaats
    Given the person with citizen service number '000000188' has the following data
    | geslachtsnaam (02.40) | geboortedatum (03.10) |
    | Maassen               | 19830526              |
    And the person has the following 'verblijfplaats' data
    | gemeente van inschrijving (09.10) | functie adres (10.10) |
    | 0518                              | W                     |
    And the 'verblijfplaats' has the following 'adres' data
    | gemeentecode (92.10) | locatiebeschrijving (12.10)       |
    | 0518                 | Woonboot tegenover de Grote Sloot |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | adressering.adresregel2             |
    Then the response has a person with only the following 'adressering' data
    | naam        | waarde        |
    | adresregel2 | 'S-GRAVENHAGE |

Rule: for a residence abroad, adresregel1 is filled with regel1 of the verblijfplaats

  Scenario: the person resides abroad
    Given the person with citizen service number '000000188' has the following data
    | geslachtsnaam (02.40) | geboortedatum (03.10) |
    | Maassen               | 19830526              |
    And the person has the following 'verblijfplaats' data
    | land (13.10) | regel 1 adres buitenland (13.30) | regel 2 adres buitenland (13.40) | regel 3 adres buitenland (13.50) |
    | 5010         | Rue du pomme 26                  | Bruxelles                        | postcode 1000                    |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | adressering.adresregel1             |
    Then the response has a person with only the following 'adressering' data
    | naam        | waarde          |
    | adresregel1 | Rue du pomme 26 |

Rule: for a residence abroad, adresregel2 is filled with regel2 of the verblijfplaats

  Scenario: the person resides abroad
    Given the person with citizen service number '000000188' has the following data
    | geslachtsnaam (02.40) | geboortedatum (03.10) |
    | Maassen               | 19830526              |
    And the person has the following 'verblijfplaats' data
    | land (13.10) | regel 1 adres buitenland (13.30) | regel 2 adres buitenland (13.40) | regel 3 adres buitenland (13.50) |
    | 5010         | Rue du pomme 26                  | Bruxelles                        | postcode 1000                    |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | adressering.adresregel2             |
    Then the response has a person with only the following 'adressering' data
    | naam        | waarde    |
    | adresregel2 | Bruxelles |

Rule: for a residence abroad, adresregel3 is filled with regel3 of the verblijfplaats

  Scenario: the person resides abroad
    Given the person with citizen service number '000000188' has the following data
    | geslachtsnaam (02.40) | geboortedatum (03.10) |
    | Maassen               | 19830526              |
    And the person has the following 'verblijfplaats' data
    | land (13.10) | regel 1 adres buitenland (13.30) | regel 2 adres buitenland (13.40) | regel 3 adres buitenland (13.50) |
    | 5010         | Rue du pomme 26                  | Bruxelles                        | postcode 1000                    |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | adressering.adresregel3             |
    Then the response has a person with only the following 'adressering' data
    | naam        | waarde        |
    | adresregel3 | postcode 1000 |

Rule: for a residence abroad, land is filled with land of the verblijfplaats

  Scenario: the person resides abroad
    Given the person with citizen service number '000000188' has the following data
    | geslachtsnaam (02.40) | geboortedatum (03.10) |
    | Maassen               | 19830526              |
    And the person has the following 'verblijfplaats' data
    | land (13.10) | regel 1 adres buitenland (13.30) | regel 2 adres buitenland (13.40) | regel 3 adres buitenland (13.50) |
    | 5010         | Rue du pomme 26                  | Bruxelles                        | postcode 1000                    |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | adressering.land                    |
    Then the response has a person with only the following 'adressering' data
    | naam              | waarde |
    | land.code         | 5010   |
    | land.omschrijving | België |