HAALCENTRAAL English translation
BRP API / Personen / Features / in-onderzoek

Persoon: leeftijd field under investigation

#language: en

Feature: Persoon: leeftijd field under investigation

  Scenario Outline: '<type>' is under investigation and leeftijd is requested
    Given the person with citizen service number '000000152' has the following data
    | naam                            | waarde                    |
    | geboortedatum (03.10)           | vandaag - 10 jaar         |
    | aanduiding in onderzoek (83.10) | <aanduiding in onderzoek> |
    | datum ingang onderzoek (83.20)  | 20020701                  |
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000152                       |
    | fields              | leeftijd                        |
    Then the response has a person with the following data
    | naam                                                | waarde      |
    | leeftijd                                            | 10          |
    | inOnderzoek.leeftijd                                | true        |
    | inOnderzoek.datumIngangOnderzoekPersoon.type        | Datum       |
    | inOnderzoek.datumIngangOnderzoekPersoon.datum       | 2002-07-01  |
    | inOnderzoek.datumIngangOnderzoekPersoon.langFormaat | 1 juli 2002 |

    Examples:
    | aanduiding in onderzoek | type                   |
    | 010000                  | hele categorie persoon |
    | 010300                  | hele groep geboorte    |
    | 010310                  | geboortedatum          |

  Scenario Outline: '<type>' is under investigation and leeftijd is requested
    Given the person with citizen service number '000000152' has the following data
    | naam                            | waarde                    |
    | geboortedatum (03.10)           | vandaag - 10 jaar         |
    | aanduiding in onderzoek (83.10) | <aanduiding in onderzoek> |
    | datum ingang onderzoek (83.20)  | 20020701                  |
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000152                       |
    | fields              | leeftijd                        |
    Then the response has a person with the following data
    | naam     | waarde |
    | leeftijd | 10     |

    Examples:
    | aanduiding in onderzoek | type           |
    | 010320                  | geboorteplaats |
    | 010330                  | geboorteland   |

  Scenario Outline: '<type>' is under investigation and leeftijd is not requested
    Given the person with citizen service number '000000152' has the following data
    | naam                            | waarde                    |
    | geboortedatum (03.10)           | vandaag - 10 jaar         |
    | aanduiding in onderzoek (83.10) | <aanduiding in onderzoek> |
    | datum ingang onderzoek (83.20)  | 20020701                  |
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000152                       |
    | fields              | verblijfplaats                  |
    Then the response has a person without data

    Examples:
    | aanduiding in onderzoek | type                   |
    | 010000                  | hele categorie persoon |
    | 010300                  | hele groep geboorte    |
    | 010310                  | geboortedatum          |