HAALCENTRAAL English translation
BRP API / Bewoning / Features / geheimhouding-gba

supplying geheimhouding for an occupant

#language: en

@gba
Feature: supplying geheimhouding for an occupant

  As a consumer of the Bewoning API
  I want an indication where an occupant of an addressable object has not given permission for their data to be provided to third parties
  so that I can take this into account in my process

  Background:
    Given address 'A1' has the following data
    | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) |
    | 0800                 | 0800010000000001                         |
    And address 'A2' has the following data
    | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) |
    | 0800                 | 0800010000000002                         |

Rule: indicatie geheim with value 0 is not supplied

  Scenario: a person without geheimhouding is registered at the addressable object indicated on the reference date
    Given the person with citizen service number '000000024' is registered at address 'A1' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
    | 0800                              | 20100818                           |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
    | 0800                              | 20160526                           |
    And the person has the following 'inschrijving' data
    | naam                     | waarde |
    | indicatie geheim (70.10) | 0      |
    When gba occupancy is searched with the following parameters
    | naam                             | waarde               |
    | type                             | BewoningMetPeildatum |
    | peildatum                        | 2010-09-01           |
    | adresseerbaarObjectIdentificatie | 0800010000000001     |
    Then the response has an occupancy with the following data
    | naam                             | waarde                    |
    | periode                          | 2010-09-01 tot 2010-09-02 |
    | adresseerbaarObjectIdentificatie | 0800010000000001          |
    And the occupancy has an occupant with the following data
    | burgerservicenummer |
    | 000000024           |

  Scenario: a person without geheimhouding and with an unknown start date of the address occupancy at the addressable object indicated, and the reference date falls within the period of uncertainty
    Given the person with citizen service number '000000024' is registered at address 'A1' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
    | 0800                              | 20100800                           |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
    | 0800                              | 20160526                           |
    And the person has the following 'inschrijving' data
    | naam                     | waarde |
    | indicatie geheim (70.10) | 0      |
    When gba occupancy is searched with the following parameters
    | naam                             | waarde               |
    | type                             | BewoningMetPeildatum |
    | peildatum                        | 2010-08-18           |
    | adresseerbaarObjectIdentificatie | 0800010000000001     |
    Then the response has an occupancy with the following data
    | naam                             | waarde                    |
    | periode                          | 2010-08-18 tot 2010-08-19 |
    | adresseerbaarObjectIdentificatie | 0800010000000001          |
    And the occupancy has a possible occupant with the following data
    | burgerservicenummer |
    | 000000024           |

Rule: indicatie geheim with a value higher than 0 is translated into geheimhoudingPersoonsgegevens with value true and supplied without being requested

  Scenario Outline: a person with indicatie geheim <waarde> is registered at the addressable object indicated on the reference date
    Given the person with citizen service number '000000024' is registered at address 'A1' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
    | 0800                              | 20100818                           |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
    | 0800                              | 20160526                           |
    And the person has the following 'inschrijving' data
    | naam                     | waarde   |
    | indicatie geheim (70.10) | <waarde> |
    When gba occupancy is searched with the following parameters
    | naam                             | waarde               |
    | type                             | BewoningMetPeildatum |
    | peildatum                        | 2010-09-01           |
    | adresseerbaarObjectIdentificatie | 0800010000000001     |
    Then the response has an occupancy with the following data
    | naam                             | waarde                    |
    | periode                          | 2010-09-01 tot 2010-09-02 |
    | adresseerbaarObjectIdentificatie | 0800010000000001          |
    And the occupancy has an occupant with the following data
    | burgerservicenummer | geheimhoudingPersoonsgegevens |
    | 000000024           | <waarde>                      |

    Examples:
    | waarde |
    | 1      |
    | 2      |
    | 3      |
    | 4      |
    | 5      |
    | 6      |
    | 7      |

  Scenario Outline: a person with indicatie geheim <waarde> and with an unknown start date of the address occupancy at the addressable object indicated, and the reference date falls within the period of uncertainty
    Given the person with citizen service number '000000024' is registered at address 'A1' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
    | 0800                              | 20100800                           |
    And the person was subsequently registered at address 'A2' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
    | 0800                              | 20160526                           |
    And the person has the following 'inschrijving' data
    | naam                     | waarde   |
    | indicatie geheim (70.10) | <waarde> |
    When gba occupancy is searched with the following parameters
    | naam                             | waarde               |
    | type                             | BewoningMetPeildatum |
    | peildatum                        | 2010-08-18           |
    | adresseerbaarObjectIdentificatie | 0800010000000001     |
    Then the response has an occupancy with the following data
    | naam                             | waarde                    |
    | periode                          | 2010-08-18 tot 2010-08-19 |
    | adresseerbaarObjectIdentificatie | 0800010000000001          |
    And the occupancy has a possible occupant with the following data
    | burgerservicenummer | geheimhoudingPersoonsgegevens |
    | 000000024           | <waarde>                      |

    Examples:
    | waarde |
    | 1      |
    | 2      |
    | 3      |
    | 4      |
    | 5      |
    | 6      |
    | 7      |