HAALCENTRAAL English translation
BRP API / Personen / Features / fields

requesting GezagPersoonBeperkt fields with fields

#language: en

Feature: requesting GezagPersoonBeperkt fields with fields

    Background:
      Given the person with citizen service number '000000152' has the following data
      | naam                        | waarde            |
      | geslachtsnaam (02.40)       | Maassen           |
      | geboortedatum (03.10)       | vandaag - 10 jaar |
      | geslachtsaanduiding (04.10) | V                 |
      And the person has the following 'verblijfplaats' data
      | gemeente van inschrijving (09.10) |
      | 0599                              |
      And the 'verblijfplaats' has the following 'adres' data
      | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) |
      | 0599                 | 0599010051001502                         |

    Scenario: 'burgerservicenummer (01.20)' is requested with 'burgerservicenummer'
      When persons are searched with the following parameters
      | naam                             | waarde                                  |
      | type                             | ZoekMetAdresseerbaarObjectIdentificatie |
      | adresseerbaarObjectIdentificatie | 0599010051001502                        |
      | fields                           | burgerservicenummer                     |
      Then the response has a person with the following data
      | naam                | waarde    |
      | burgerservicenummer | 000000152 |

    Scenario Outline: 'geslachtsaanduiding (04.10)' is requested with '<fields>'
      When persons are searched with the following parameters
      | naam                             | waarde                                  |
      | type                             | ZoekMetAdresseerbaarObjectIdentificatie |
      | adresseerbaarObjectIdentificatie | 0599010051001502                        |
      | fields                           | <fields>                                |
      Then the response has a person with the following data
      | naam                  | waarde |
      | geslacht.code         | V      |
      | geslacht.omschrijving | vrouw  |

      Examples:
      | fields                |
      | geslacht              |
      | geslacht.code         |
      | geslacht.omschrijving |

    Scenario: 'indicatie geheim (70.10)' is supplied automatically for a value greater than 0
      And the person has the following 'inschrijving' data
      | naam                     | waarde |
      | indicatie geheim (70.10) | 1      |
      When persons are searched with the following parameters
      | naam                             | waarde                                  |
      | type                             | ZoekMetAdresseerbaarObjectIdentificatie |
      | adresseerbaarObjectIdentificatie | 0599010051001502                        |
      | fields                           | burgerservicenummer                     |
      Then the response has a person with the following data
      | naam                          | waarde    |
      | burgerservicenummer           | 000000152 |
      | geheimhoudingPersoonsgegevens | true      |

    Scenario: requesting 'leeftijd' with 'leeftijd'
      When 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 |
      | leeftijd | 10     |