HAALCENTRAAL English translation
BRP API / Personen / Features / overzicht

European right to vote

# language: en

Feature: European right to vote

Rule: europeesKiesrecht data is supplied where 'einddatum uitsluiting Europees kiesrecht (31.30)' has no value

  Scenario: the person is excluded from the European right to vote with no end date of exclusion
		Given the person with citizen service number '000000127' has the following 'kiesrecht' data
    | Europees kiesrecht (31.10) |
    | 1                          |
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000127                       |
    | fields              | europeesKiesrecht               |
		Then the response has a person with the following 'europeesKiesrecht' data
    | naam                    | waarde                 |
    | aanduiding.code         | 1                      |
    | aanduiding.omschrijving | persoon is uitgesloten |

  Scenario: the person is not excluded and receives a polling card
		Given the person with citizen service number '000000127' has the following 'kiesrecht' data
    | Europees kiesrecht (31.10) |
    | 2                          |
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000127                       |
    | fields              | europeesKiesrecht               |
		Then the response has a person with the following 'europeesKiesrecht' data
    | naam                    | waarde                  |
    | aanduiding.code         | 2                       |
    | aanduiding.omschrijving | persoon ontvangt oproep |

Rule: europeesKiesrecht data is supplied where 'einddatum uitsluiting Europees kiesrecht (31.30)' lies in the future

	Scenario: 'einddatum uitsluiting Europees kiesrecht (31.30)' lies in the future
		Given the person with citizen service number '000000164' has the following 'kiesrecht' data
    | Europees kiesrecht (31.10) | einddatum uitsluiting Europees kiesrecht (31.30) |
    | 1                          | morgen                                           |
		When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000164                       |
    | fields              | europeesKiesrecht.aanduiding    |
		Then the response has a person with the following 'europeesKiesrecht' data
    | naam                    | waarde                 |
    | aanduiding.code         | 1                      |
    | aanduiding.omschrijving | persoon is uitgesloten |

	Scenario Outline: 'einddatum uitsluiting Europees kiesrecht (31.30)' is today or a date in the past
		Given the person with citizen service number '000000164' has the following 'kiesrecht' data
    | Europees kiesrecht (31.10) | einddatum uitsluiting Europees kiesrecht (31.30) |
    | 1                          | <einddatum uitsluiting>                          |
		When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000164                       |
    | fields              | europeesKiesrecht               |
    Then the response has a person without data

    Examples:
    | einddatum uitsluiting |
    | vandaag               |
    | gisteren              |
    | vandaag - 1 jaar      |
    | vorige maand          |
    | vorig jaar            |

Rule: For a 'einddatum uitsluiting Europees kiesrecht (31.30)' of which only the year is known, europeesKiesrecht data is supplied where the year equals the current year or where the year lies in the future

	Scenario Outline: 'einddatum uitsluiting Europees kiesrecht (31.30)' is <einddatum uitsluiting>
		Given the person with citizen service number '000000164' has the following 'kiesrecht' data
    | Europees kiesrecht (31.10) | einddatum uitsluiting Europees kiesrecht (31.30) |
    | 1                          | <einddatum uitsluiting>                          |
		When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000164                       |
    | fields              | europeesKiesrecht.aanduiding    |
		Then the response has a person with the following 'europeesKiesrecht' data
    | naam                    | waarde                 |
    | aanduiding.code         | 1                      |
    | aanduiding.omschrijving | persoon is uitgesloten |

    Examples:
    | einddatum uitsluiting |
    | dit jaar              |
    | volgend jaar          |

Rule: For a 'einddatum uitsluiting Europees kiesrecht (31.30)' whose day is not known, uitsluitingKiesrecht data is supplied where the year and month equal the current month or a month in the future

	Scenario Outline: 'einddatum uitsluiting Europees kiesrecht (31.30)' is <einddatum uitsluiting>
		Given the person with citizen service number '000000164' has the following 'kiesrecht' data
    | Europees kiesrecht (31.10) | einddatum uitsluiting Europees kiesrecht (31.30) |
    | 1                          | <einddatum uitsluiting>                          |
		When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000164                       |
    | fields              | europeesKiesrecht.aanduiding    |
		Then the response has a person with the following 'europeesKiesrecht' data
    | naam                    | waarde                 |
    | aanduiding.code         | 1                      |
    | aanduiding.omschrijving | persoon is uitgesloten |

    Examples:
    | einddatum uitsluiting |
    | deze maand            |
    | volgende maand        |

Rule: europeesKiesrecht data is supplied for an unknown 'einddatum uitsluiting Europees kiesrecht (31.30)'

	Scenario: 'einddatum uitsluiting Europees kiesrecht (31.30)' is unknown
		Given the person with citizen service number '000000164' has the following 'kiesrecht' data
    | Europees kiesrecht (31.10) | einddatum uitsluiting Europees kiesrecht (31.30) |
    | 1                          | 00000000                                         |
		When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000164                       |
    | fields              | europeesKiesrecht.aanduiding    |
		Then the response has a person with the following 'europeesKiesrecht' data
    | naam                    | waarde                 |
    | aanduiding.code         | 1                      |
    | aanduiding.omschrijving | persoon is uitgesloten |

Rule: europeesKiesrecht data is not supplied where 'Europees kiesrecht (31.10)' has no value

	Scenario: 'Europees kiesrecht (31.10)' has no value
		Given the person with citizen service number '000000164' has the following 'kiesrecht' data
    | einddatum uitsluiting Europees kiesrecht (31.30) |
    | morgen                                           |
		When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000164                       |
    | fields              | europeesKiesrecht               |
    Then the response has a person without data

	Scenario: the person has no europeesKiesrecht data
		Given the person with citizen service number '000000164' has the following data
    | geslachtsnaam (02.40) |
    | Janssen               |
		When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000164                       |
    | fields              | europeesKiesrecht               |
    Then the response has a person without data