requesting the leeftijd field with fields (PersoonBeperkt)
#language: en @gba Feature: requesting the leeftijd field with fields (PersoonBeperkt) Scenario: the person has not died Given the person with citizen service number '000000152' has the following data | naam | waarde | | geslachtsnaam (02.40) | Maassen | | geboortedatum (03.10) | 19500304 | When gba persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | Maassen | | geboortedatum | 1950-03-04 | | fields | leeftijd | Then the response has a person with only the following data | naam | waarde | | geboorte.datum | 19500304 | Scenario: the person has died Given the person with citizen service number '000000152' has the following data | naam | waarde | | geslachtsnaam (02.40) | Maassen | | geboortedatum (03.10) | 19500304 | And the person has the following 'overlijden' data | datum overlijden (08.10) | plaats overlijden (08.20) | land overlijden (08.30) | | 20020701 | 0518 | 6030 | And the person has the following 'inschrijving' data | naam | waarde | | reden opschorting bijhouding (67.20) | O | When gba persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | Maassen | | geboortedatum | 1950-03-04 | | inclusiefOverledenPersonen | true | | fields | leeftijd | Then the response has a person with only the following 'opschortingBijhouding' data | naam | waarde | | reden.code | O | | reden.omschrijving | overlijden | And the person has the following 'geboorte' data | naam | waarde | | 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 | geslachtsnaam (02.40) | geboortedatum (03.10) | aanduiding in onderzoek (83.10) | datum ingang onderzoek (83.20) | | Maassen | 19500304 | <aanduiding in onderzoek> | 20020701 | When gba persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | Maassen | | geboortedatum | 1950-03-04 | | 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 |