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

requesting the leeftijd field with fields (GezagPersoonBeperkt)

#language: en

@gba
Feature: requesting the leeftijd field with fields (GezagPersoonBeperkt)

    Scenario: the person has not died
      Given the person with citizen service number '000000152' has the following data
      | geboortedatum (03.10) |
      | 19500304              |
      And the person has the following 'verblijfplaats' data
      | gemeente van inschrijving (09.10) |
      | 0518                              |
      And the 'verblijfplaats' has the following 'adres' data
      | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) |
      | 0518                 | 0599010051001502                         |
      When gba persons are searched with the following parameters
      | naam                             | waarde                                  |
      | type                             | ZoekMetAdresseerbaarObjectIdentificatie |
      | adresseerbaarObjectIdentificatie | 0599010051001502                        |
      | fields                           | leeftijd                                |
      Then the response has a person with only the following data
      | naam           | waarde   |
      | geboorte.datum | 19500304 |

  Rule: where the leeftijd field is requested for a person and the category persoon (01) has data under investigation, that data is supplied as well

    Scenario Outline: '<type>' is under investigation and the leeftijd field is requested
      Given the person with citizen service number '000000152' has the following data
      | geboortedatum (03.10) | aanduiding in onderzoek (83.10) | datum ingang onderzoek (83.20) |
      | 19500304              | <aanduiding in onderzoek>       | 20020701                       |
      And the person has the following 'verblijfplaats' data
      | gemeente van inschrijving (09.10) |
      | 0518                              |
      And the 'verblijfplaats' has the following 'adres' data
      | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) |
      | 0518                 | 0599010051001502                         |
      When gba persons are searched with the following parameters
      | naam                             | waarde                                  |
      | type                             | ZoekMetAdresseerbaarObjectIdentificatie |
      | adresseerbaarObjectIdentificatie | 0599010051001502                        |
      | fields                           | leeftijd                                |
      Then the response has a person with only the following data
      | naam                                             | waarde                    |
      | geboorte.datum                                   | 19500304                  |
      | persoonInOnderzoek.aanduidingGegevensInOnderzoek | <aanduiding in onderzoek> |
      | persoonInOnderzoek.datumIngangOnderzoek          | 20020701                  |

      Examples:
      | aanduiding in onderzoek | type                            |
      | 010000                  | hele categorie persoon          |
      | 010100                  | hele groep identificatienummers |
      | 010120                  | burgerservicenummer             |
      | 010200                  | hele groep naam                 |
      | 010210                  | voornamen                       |
      | 010220                  | adellijke titel/predicaat       |
      | 010230                  | voorvoegsel                     |
      | 010240                  | geslachtsnaam                   |
      | 010300                  | hele groep geboorte             |
      | 010310                  | geboortedatum                   |
      | 010320                  | geboorteplaats                  |
      | 010330                  | geboorteland                    |
      | 010400                  | hele groep geslacht             |
      | 010410                  | geslachtsaanduiding             |
      | 016100                  | hele groep naam                 |
      | 016110                  | aanduiding naamgebruik          |