HAALCENTRAAL English translation
BRP API / Personen / Features / fields-gba

requesting immigratie fields with fields

#language: en

@gba
Feature: requesting immigratie fields with fields

Rule: the country from which the person was registered is supplied for field path 'immigratie.landVanwaarIngeschreven' or 'immigratie.vanuitVerblijfplaatsOnbekend'

  Scenario Outline: 'land vanwaar ingeschreven (14.10)' is requested with field path '<fields>'
    Given the person with citizen service number '000000152' has the following 'verblijfplaats' data
    | naam                                 | waarde   |
    | land vanwaar ingeschreven (14.10)    | 6014     |
    | datum vestiging in Nederland (14.20) | 20020701 |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000152                       |
    | fields              | <fields>                        |
    Then the response has a person with the following 'immigratie' data
    | naam                                 | waarde                       |
    | landVanwaarIngeschreven.code         | 6014                         |
    | landVanwaarIngeschreven.omschrijving | Verenigde Staten van Amerika |

    Examples:
    | fields                                          |
    | immigratie.landVanwaarIngeschreven              |
    | immigratie.landVanwaarIngeschreven.code         |
    | immigratie.landVanwaarIngeschreven.omschrijving |
    | immigratie.vanuitVerblijfplaatsOnbekend         |

  Scenario: unknown value for immigratie: the country from which the person was registered (14.10)
    Given the person with citizen service number '000000243' has the following 'verblijfplaats' data
    | naam                              | waarde |
    | land vanwaar ingeschreven (14.10) | 0000   |
    When gba persons are searched with the following parameters
    | naam                | waarde                                                 |
    | type                | RaadpleegMetBurgerservicenummer                        |
    | burgerservicenummer | 000000243                                              |
    | fields              | burgerservicenummer,immigratie.landVanwaarIngeschreven |
    Then the response has a person with only the following data
    | naam                                            | waarde    |
    | burgerservicenummer                             | 000000243 |
    | immigratie.landVanwaarIngeschreven.code         | 0000      |
    | immigratie.landVanwaarIngeschreven.omschrijving | Onbekend  |

Rule: where no corresponding value for the code occurs in the table, only the code is supplied

  Scenario: the code for the country from which the person was registered (14.10) does not occur in the table Landen
    Given the person with citizen service number '000000255' has the following 'verblijfplaats' data
    | land vanwaar ingeschreven (14.10) |
    | 1234                              |
    When gba persons are searched with the following parameters
    | naam                | waarde                             |
    | type                | RaadpleegMetBurgerservicenummer    |
    | burgerservicenummer | 000000255                          |
    | fields              | immigratie.landVanwaarIngeschreven |
    Then the response has a person with only the following 'immigratie' data
    | naam                         | waarde |
    | landVanwaarIngeschreven.code | 1234   |

Rule: the date of settlement in the Netherlands is supplied for field path 'immigratie.datumVestigingInNederland' or 'immigratie.indicatieVestigingVanuitBuitenland'

  Scenario Outline: 'datum vestiging in nederland (14.20)' is requested with field path '<fields>'
    Given the person with citizen service number '000000152' has the following 'verblijfplaats' data
    | naam                                 | waarde   |
    | land vanwaar ingeschreven (14.10)    | 6014     |
    | datum vestiging in Nederland (14.20) | 20020701 |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000152                       |
    | fields              | <fields>                        |
    Then the response has a person with the following 'immigratie' data
    | naam                      | waarde   |
    | datumVestigingInNederland | 20020701 |

    Examples:
    | fields                                           |
    | immigratie.datumVestigingInNederland             |
    | immigratie.datumVestigingInNederland.type        |
    | immigratie.datumVestigingInNederland.datum       |
    | immigratie.datumVestigingInNederland.langFormaat |
    | immigratie.datumVestigingInNederland.jaar        |
    | immigratie.datumVestigingInNederland.maand       |
    | immigratie.datumVestigingInNederland.onbekend    |
    | immigratie.indicatieVestigingVanuitBuitenland    |

Rule: where one or more immigratie fields of a verblijfplaats are requested and the category verblijfplaats (08) has data under investigation, that data is supplied as well

  Scenario Outline: '<type>' is under investigation and one or more 'immigratie' fields are requested with field path '<fields>'
    Given the person with citizen service number '000000152' has the following 'verblijfplaats' data
    | naam                            | waarde                    |
    | aanduiding in onderzoek (83.10) | <aanduiding in onderzoek> |
    | datum ingang onderzoek (83.20)  | 20020701                  |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000152                       |
    | fields              | <fields>                        |
    Then the response has a person with the following 'verblijfplaats' data
    | naam                                      | waarde                    |
    | inOnderzoek.aanduidingGegevensInOnderzoek | <aanduiding in onderzoek> |
    | inOnderzoek.datumIngangOnderzoek          | 20020701                  |
    Examples:
    | aanduiding in onderzoek | fields                                        | type                          |
    | 080000                  | immigratie                                    | hele categorie verblijfplaats |
    | 081400                  | immigratie.landVanwaarIngeschreven            | hele groep immigratie         |
    | 081410                  | immigratie.datumVestigingInNederland          | land vanwaar ingeschreven     |
    | 081420                  | immigratie.indicatieVestigingVanuitBuitenland | datum vestiging in Nederland  |