-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathIND-2024-01-01.yaml
113 lines (104 loc) · 3.1 KB
/
IND-2024-01-01.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
$id: https://raw.githubusercontent.com/MinBZK/poc-machine-law/refs/heads/main/schema/v0.1.3/schema.json
uuid: af0fed0d-ee11-48f3-b629-07becda4b7e9
name: Bepalen verblijfsstatus
law: vreemdelingenwet
valid_from: 2024-01-01
service: "IND"
description: >
Regels voor het bepalen van de verblijfsstatus volgens de Vreemdelingenwet 2000.
Dit omvat reguliere verblijfsvergunningen, verblijfsvergunningen voor EU-burgers
en hun familieleden, en permanente verblijfsvergunningen.
references:
- law: "Vreemdelingenwet 2000"
article: "8"
url: "https://wetten.overheid.nl/BWBR0011823/2024-01-01#Hoofdstuk3_Afdeling1_Artikel8"
properties:
parameters:
- name: "BSN"
description: "BSN van de persoon"
type: "string"
required: true
sources:
- name: "PERMIT_DATA"
description: "Gegevens verblijfsvergunning"
type: "object"
temporal:
type: "period"
period_type: "continuous"
source_reference:
table: "verblijfsvergunningen"
fields: ["type", "status", "ingangsdatum", "einddatum"]
select_on:
- name: "bsn"
description: "BSN nummer van de persoon"
type: "string"
value: "$BSN"
- name: "EU_REGISTRATION"
description: "EU registratie"
type: "object"
temporal:
type: "period"
period_type: "continuous"
source_reference:
table: "eu_registraties"
fields: ["type", "ingangsdatum"]
select_on:
- name: "bsn"
description: "BSN nummer van de persoon"
type: "string"
value: "$BSN"
output:
- name: "residence_permit_type"
description: "Type verblijfsvergunning"
type: "string"
temporal:
type: "point_in_time"
reference: "$calculation_date"
definitions:
VALID_PERMIT_STATUSES:
- "VERLEEND"
- "VERLENGD"
- "VAN_RECHTSWEGE"
PERMANENT_TYPES:
- "ONBEPAALDE_TIJD_REGULIER"
- "ONBEPAALDE_TIJD_ASIEL"
- "ONBEPAALDE_TIJD_EU"
- "DUURZAAM_VERBLIJF_EU"
EU_TYPES:
- "EU_BURGER"
- "FAMILIE_EU_BURGER"
actions:
- output: "residence_permit_type"
operation: IF
conditions:
- test:
operation: AND
values:
- operation: IN
subject: "$PERMIT_DATA.type"
values: "$PERMANENT_TYPES"
- operation: IN
subject: "$PERMIT_DATA.status"
values: "$VALID_PERMIT_STATUSES"
then: "PERMANENT"
- test:
operation: IN
subject: "$EU_REGISTRATION.type"
values: "$EU_TYPES"
then: "EU"
- test:
operation: AND
values:
- subject: "$PERMIT_DATA.status"
operation: IN
values: "$VALID_PERMIT_STATUSES"
- operation: LESS_OR_EQUAL
values:
- "$PERMIT_DATA.ingangsdatum"
- "$calculation_date"
- operation: GREATER_OR_EQUAL
values:
- "$PERMIT_DATA.einddatum"
- "$calculation_date"
then: "TIJDELIJK"
- else: null