HAALCENTRAAL English translation
BRP API / Personen / Features / fields

Persoon: requesting geboorte fields with fields

#language: en

Feature: Persoon: requesting geboorte fields with fields

  Scenario Outline: 'geboortedatum (03.10)' is requested with field path '<fields>'
    Given the person with citizen service number '000000152' has the following data
    | naam                  | waarde   |
    | geboortedatum (03.10) | 20020701 |
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000152                       |
    | fields              | <fields>                        |
    Then the response has a person with the following 'geboorte' data
    | naam              | waarde      |
    | datum.type        | Datum       |
    | datum.datum       | 2002-07-01  |
    | datum.langFormaat | 1 juli 2002 |

    Examples:
    | fields                     |
    | geboorte.datum             |
    | geboorte.datum.type        |
    | geboorte.datum.datum       |
    | geboorte.datum.langFormaat |
    | geboorte.datum.jaar        |
    | geboorte.datum.maand       |
    | geboorte.datum.onbekend    |

  Scenario Outline: 'geboortedatum (03.10)' of type '<type>' is requested with field path 'geboorte.datum'
    Given the person with citizen service number '000000140' has the following data
    | naam                  | waarde     |
    | geboortedatum (03.10) | <GbaDatum> |
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000140                       |
    | fields              | geboorte.datum                  |
    Then the response has a person with the following 'geboorte' data
    | naam              | waarde        |
    | datum.type        | <type>        |
    | datum.datum       | <datum>       |
    | datum.jaar        | <jaar>        |
    | datum.maand       | <maand>       |
    | datum.onbekend    | <onbekend>    |
    | datum.langFormaat | <langFormaat> |

    Examples:
    | type           | GbaDatum | datum      | jaar | maand | onbekend | langFormaat  |
    | Datum          | 20200308 | 2020-03-08 |      |       |          | 8 maart 2020 |
    | DatumOnbekend  | 00000000 |            |      |       | true     | onbekend     |
    | JaarDatum      | 20200000 |            | 2020 |       |          | 2020         |
    | JaarMaandDatum | 20200300 |            | 2020 | 3     |          | maart 2020   |

  Scenario Outline: 'geboorteplaats (03.20)' is requested with field path '<fields>'
    Given the person with citizen service number '000000152' has the following data
    | naam                   | waarde |
    | geboorteplaats (03.20) | 0518   |
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000152                       |
    | fields              | <fields>                        |
    Then the response has a person with the following 'geboorte' data
    | naam                | waarde        |
    | plaats.code         | 0518          |
    | plaats.omschrijving | 's-Gravenhage |

    Examples:
    | fields                       |
    | geboorte.plaats              |
    | geboorte.plaats.code         |
    | geboorte.plaats.omschrijving |

  Scenario Outline: 'geboorteplaats (03.20)' with the default value is requested with field path '<fields>'
    Given the person with citizen service number '000000012' has the following data
    | naam                   | waarde |
    | geboorteplaats (03.20) | 0000   |
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000012                       |
    | fields              | <fields>                        |
    Then the response has a person without 'geboorte' data

    Examples:
    | fields          |
    | geboorte.plaats |

  Scenario Outline: 'geboorteland (03.30)' is requested with field path '<fields>'
    Given the person with citizen service number '000000152' has the following data
    | naam                 | waarde |
    | geboorteland (03.30) | 6014   |
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000152                       |
    | fields              | <fields>                        |
    Then the response has a person with the following 'geboorte' data
    | naam              | waarde                       |
    | land.code         | 6014                         |
    | land.omschrijving | Verenigde Staten van Amerika |

    Examples:
    | fields                     |
    | geboorte.land              |
    | geboorte.land.code         |
    | geboorte.land.omschrijving |

  Scenario Outline: 'geboorteland (03.30)' with the default value is requested with field path '<fields>'
    Given the person with citizen service number '000000012' has the following data
    | naam                 | waarde |
    | geboorteland (03.30) | 0000   |
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000012                       |
    | fields              | <fields>                        |
    Then the response has a person without 'geboorte' data

    Examples:
    | fields        |
    | geboorte.land |