HAALCENTRAAL English translation
BRP API / Personen / Features / overzicht

GezagPersoonBeperkt: Suspension of maintenance

#language: en

Feature: GezagPersoonBeperkt: Suspension of maintenance

  Background:
      Given the person with citizen service number '000000024' 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                         |


  Rule: persons with a removed personal record are not found when searching
    A removed personal record has suspension of maintenance with reason "F" (error)

    Scenario: a person suspended with reason "F" (error) is searched for by addressable object identification
      And the person has the following 'inschrijving' data
      | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) |
      | 20220829                             | F                                    |
      When persons are searched with the following parameters
      | naam                             | waarde                                  |
      | type                             | ZoekMetAdresseerbaarObjectIdentificatie |
      | adresseerbaarObjectIdentificatie | 0599010051001502                        |
      | fields                           | burgerservicenummer                     |
      Then the response has 0 persons

  Rule: persons on a logically deleted personal record are not found when searching

    Scenario Outline: a person suspended with reason "W" (erasure) is searched for by addressable object identification
      And the person has the following 'inschrijving' data
      | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) |
      | 20220829                             | W                                    |
      When persons are searched with the following parameters
      | naam                             | waarde                                  |
      | type                             | ZoekMetAdresseerbaarObjectIdentificatie |
      | adresseerbaarObjectIdentificatie | 0599010051001502                        |
      | fields                           | burgerservicenummer                     |
      Then the response has 0 persons

      Examples:
      | inclusief overleden personen | zoek overleden personen type |
      | true                         | inclusief                    |
      | false                        | exclusief                    |

  Rule: deceased persons are not found when searching

    Scenario: a person suspended with reason "O" (death) is searched for by addressable object identification
      And the person has the following 'inschrijving' data
      | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) |
      | 20220829                             | O                                    |
      When persons are searched with the following parameters
      | naam                             | waarde                                  |
      | type                             | ZoekMetAdresseerbaarObjectIdentificatie |
      | adresseerbaarObjectIdentificatie | 0599010051001502                        |
      | fields                           | burgerservicenummer                     |
      Then the response has 0 persons

  Rule: opschortingBijhouding is supplied automatically where applicable

    Scenario Outline: a person suspended with reason "<reden opschorting bijhouding>" (<reden opschorting omschrijving>) is searched for by addressable object identification
      And the person has the following 'inschrijving' data
      | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) |
      | 20220829                             | <reden opschorting bijhouding>       |
      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                      | 000000024                        |
      | opschortingBijhouding.reden.code         | <reden opschorting bijhouding>   |
      | opschortingBijhouding.reden.omschrijving | <reden opschorting omschrijving> |
      | opschortingBijhouding.datum.type         | Datum                            |
      | opschortingBijhouding.datum.datum        | 2022-08-29                       |
      | opschortingBijhouding.datum.langFormaat  | 29 augustus 2022                 |

      Examples:
      | reden opschorting bijhouding | reden opschorting omschrijving |
      | E                            | emigratie                      |
      | M                            | ministerieel besluit           |
      | R                            | pl is aangelegd in de rni      |
      | .                            | onbekend                       |