-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUWV-2024-01-01.yaml
107 lines (100 loc) · 3 KB
/
UWV-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
uuid: 85227351-03f1-4bd4-b19f-b563fbf8d5c8
name: Bepalen verzekerde jaren 2025
law: wet_structuur_uitvoeringsorganisatie_werk_en_inkomen
valid_from: 2024-01-01
service: "UWV"
description: >
Regels voor het bepalen van verzekerde jaren voor de AOW op basis van werk- en
uitkeringsperiodes volgens de Wet SUWI. Dit omvat periodes van werk in Nederland,
grensarbeid, detachering en periodes van uitkeringen zoals WW, WIA, etc.
references:
- law: "Wet structuur uitvoeringsorganisatie werk en inkomen"
article: "33"
url: "https://wetten.overheid.nl/BWBR0013060/2024-01-01#Hoofdstuk4_Paragraaf4.2_Artikel33"
properties:
parameters:
- name: "BSN"
description: "BSN van de persoon"
type: "string"
required: true
sources:
- name: "EMPLOYMENT_PERIODS"
description: "Periodes van werk in Nederland en verzekerde buitenlandse arbeid"
type: "array"
temporal:
type: "period"
period_type: "continuous"
source_reference:
table: "dienstverbanden"
fields: ["start_date", "end_date"]
select_on:
- name: "bsn"
description: "Burgerservicenummer van de persoon"
type: "string"
value: "$BSN"
- name: "BENEFIT_PERIODS"
description: "Periodes van uitkeringen die meetellen voor de AOW"
type: "array"
temporal:
type: "period"
period_type: "continuous"
source_reference:
table: "uitkeringen"
fields: ["start_date", "end_date"]
select_on:
- name: "bsn"
description: "Burgerservicenummer van de persoon"
type: "string"
value: "$BSN"
- name: "type"
description: "Uitkerkingen die meetellen"
type: "string"
value:
operation: IN
values: "$VALID_BENEFIT_TYPES"
output:
- name: "insured_years"
description: "Aantal verzekerde jaren voor AOW-opbouw op basis van werk en uitkeringen"
type: "number"
type_spec:
precision: 2
min: 0
max: 50
temporal:
type: "period"
period_type: "continuous"
definitions:
VALID_BENEFIT_TYPES:
- "WW"
- "WIA"
- "WAO"
- "ZW"
- "WAZO"
DAYS_PER_YEAR: 365.25
actions:
- output: "insured_years"
operation: DIVIDE
values:
- operation: ADD
values:
# Add up employment periodss
- operation: FOREACH
combine: ADD
subject: "$EMPLOYMENT_PERIODS"
value:
- operation: SUBTRACT_DATE
unit: "days"
values:
- "$end_date"
- "$start_date"
# Add up benefit periods
- operation: FOREACH
combine: ADD
subject: "$BENEFIT_PERIODS"
value:
- operation: SUBTRACT_DATE
unit: "days"
values:
- "$end_date"
- "$start_date"
- "$DAYS_PER_YEAR"