PersoonBeperkt: death
# language: en Feature: PersoonBeperkt: death When a consumer of the BRP API searches for persons including deceased persons Then the consumer wants to be alerted as to which of the persons found have died, without explicitly requesting death data with the fields parameter Rule: suspension of maintenance with reason "O" is always supplied for a deceased person found, even where it has not been requested with fields Scenario Outline: <sub titel> of a person who has not died Given the person with citizen service number '000000152' has the following data | geslachtsnaam (02.40) | geboortedatum (03.10) | | Jansen | 19630405 | When persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | Jansen | | geboortedatum | 1963-04-05 | | inclusiefOverledenPersonen | true | | fields | <fields> | Then the response has a person with the following data | naam | waarde | | burgerservicenummer | 000000152 | Examples: | sub titel | fields | | opschorting bijhouding velden wordt niet gevraagd | burgerservicenummer | Scenario: opschortingBijhouding data is not requested for a deceased person Given the person with citizen service number '000000152' has the following data | geslachtsnaam (02.40) | geboortedatum (03.10) | | Jansen | 19630405 | And the person has the following 'inschrijving' data | naam | waarde | | reden opschorting bijhouding (67.20) | O | When persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | Jansen | | geboortedatum | 1963-04-05 | | inclusiefOverledenPersonen | true | | fields | burgerservicenummer | Then the response has a person with the following data | naam | waarde | | burgerservicenummer | 000000152 | And the person has the following 'opschortingBijhouding' data | naam | waarde | | reden.code | O | | reden.omschrijving | overlijden | Rule: the leeftijd field is not supplied for deceased persons Scenario: leeftijd is requested for a deceased person Given the person with citizen service number '000000152' has the following data | geslachtsnaam (02.40) | geboortedatum (03.10) | | Jansen | 19630405 | 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 persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | Jansen | | geboortedatum | 1963-04-05 | | inclusiefOverledenPersonen | true | | fields | leeftijd | Then the response has a person with only the following 'opschortingBijhouding' data | naam | waarde | | reden.code | O | | reden.omschrijving | overlijden |