HAALCENTRAAL English translation
BRP API / Personen / Features / fields

requesting PersoonBeperkt fields with fields

#language: en

Feature: requesting PersoonBeperkt 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                 |

  Scenario Outline: 'burgerservicenummer (01.20)' is requested with '<fields>'
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | vandaag - 10 jaar                   |
    | fields        | <fields>                            |
    Then the response has a person with the following data
    | naam                | waarde    |
    | burgerservicenummer | 000000152 |

    Examples:
    | fields              |
    | burgerservicenummer |

  Scenario Outline: 'geslachtsaanduiding (04.10)' is requested with '<fields>'
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | vandaag - 10 jaar                   |
    | 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          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | vandaag - 10 jaar                   |
    | fields        | burgerservicenummer                 |
    Then the response has a person with the following data
    | naam                          | waarde    |
    | burgerservicenummer           | 000000152 |
    | geheimhoudingPersoonsgegevens | true      |

  Scenario Outline: requesting 'leeftijd' with '<fields>'
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | vandaag - 10 jaar                   |
    | fields        | <field>                             |
    Then the response has a person with only the following data
    | naam     | waarde |
    | leeftijd | 10     |

    Examples:
    | field    |
    | leeftijd |