HAALCENTRAAL English translation
BRP API / Personen / Features / fields

composing address lines in GezagPersoonBeperkt

#language: en

Feature: composing address lines in GezagPersoonBeperkt

  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 'verblijfplaats' data
      | functie adres (10.10) |
      | W                     |
      And the 'verblijfplaats' has the following 'adres' data
      | gemeentecode (92.10) | straatnaam (11.10)       | huisnummer (11.20) | identificatiecode verblijfplaats (11.80) |
      | 0518                 | Jonkheer van Riemsdijkln | 88                 | 0599010051001502                         |
      When persons are searched with the following parameters
      | naam                             | waarde                                  |
      | type                             | ZoekMetAdresseerbaarObjectIdentificatie |
      | adresseerbaarObjectIdentificatie | 0599010051001502                        |
      | 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 '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) | identificatiecode verblijfplaats (11.80) |
      | 0518                 | Borgesiusstraat    | 103                | c                  | 0599010051001502                         |
      When persons are searched with the following parameters
      | naam                             | waarde                                  |
      | type                             | ZoekMetAdresseerbaarObjectIdentificatie |
      | adresseerbaarObjectIdentificatie | 0599010051001502                        |
      | 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 '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) | identificatiecode verblijfplaats (11.80) |
      | 0518                 | Daniël Stalpertstraat | 35                 | III                          | 0599010051001502                         |
      When persons are searched with the following parameters
      | naam                             | waarde                                  |
      | type                             | ZoekMetAdresseerbaarObjectIdentificatie |
      | adresseerbaarObjectIdentificatie | 0599010051001502                        |
      | 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 '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) | identificatiecode verblijfplaats (11.80) |
      | 0518                 | Atatürkstraat      | 9                  | 2                            | 0599010051001502                         |
      When persons are searched with the following parameters
      | naam                             | waarde                                  |
      | type                             | ZoekMetAdresseerbaarObjectIdentificatie |
      | adresseerbaarObjectIdentificatie | 0599010051001502                        |
      | 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 '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) | identificatiecode verblijfplaats (11.80) |
      | 0518                 | St. Jacobsstraat   | 400                | L                  | Toe                          | 0599010051001502                         |
      When persons are searched with the following parameters
      | naam                             | waarde                                  |
      | type                             | ZoekMetAdresseerbaarObjectIdentificatie |
      | adresseerbaarObjectIdentificatie | 0599010051001502                        |
      | 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 '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) | identificatiecode verblijfplaats (11.80) |
      | 0518                 | Cronus             | 555                | B                  | 73c                          | 0599010051001502                         |
      When persons are searched with the following parameters
      | naam                             | waarde                                  |
      | type                             | ZoekMetAdresseerbaarObjectIdentificatie |
      | adresseerbaarObjectIdentificatie | 0599010051001502                        |
      | 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 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 '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) | identificatiecode verblijfplaats (11.80) |
      | 0518                 | een straat         | 1                  | 2583XL           | Scheveningen       | 0599010051001502                         |
      When persons are searched with the following parameters
      | naam                             | waarde                                  |
      | type                             | ZoekMetAdresseerbaarObjectIdentificatie |
      | adresseerbaarObjectIdentificatie | 0599010051001502                        |
      | 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 '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) | identificatiecode verblijfplaats (11.80) |
      | 0518                 | een straat         | 1                  | 2584BZ           | 0599010051001502                         |
      When persons are searched with the following parameters
      | naam                             | waarde                                  |
      | type                             | ZoekMetAdresseerbaarObjectIdentificatie |
      | adresseerbaarObjectIdentificatie | 0599010051001502                        |
      | fields                           | adressering.adresregel2                 |
      Then the response has a person with only the following 'adressering' data
      | naam        | waarde                 |
      | adresregel2 | 2584 BZ  'S-GRAVENHAGE |