-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDJI-2022-01-01.yaml
90 lines (83 loc) · 2.52 KB
/
DJI-2022-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
$id: https://raw.githubusercontent.com/MinBZK/poc-machine-law/refs/heads/main/schema/v0.1.3/schema.json
uuid: c2124946-50d3-4aa8-b510-bccd04fc2cf9
name: Bepalen forensische zorg status
law: wet_forensische_zorg
valid_from: 2022-01-01
service: "DJI"
description: >
Regels voor het bepalen van forensische zorg status volgens de Wet forensische zorg (Wfz).
Forensische zorg is geestelijke gezondheidszorg, verslavingszorg en verstandelijke
gehandicaptenzorg die onderdeel is van een (voorwaardelijke) straf of maatregel.
references:
- law: "Wet forensische zorg"
article: "1.1"
url: "https://wetten.overheid.nl/BWBR0040635/2024-01-01#Hoofdstuk1_Artikel1.1"
- law: "Wet forensische zorg"
article: "2.1"
url: "https://wetten.overheid.nl/BWBR0040635/2024-01-01#Hoofdstuk2_Artikel2.1"
properties:
parameters:
- name: "BSN"
description: "BSN van de persoon"
type: "string"
required: true
sources:
- name: "CARE_TYPE"
description: "Type zorg die wordt verleend"
type: "string"
temporal:
type: "period"
period_type: "continuous"
source_reference:
table: "forensische_zorg"
field: "zorgtype"
select_on:
- name: "bsn"
description: "Burgerservicenummer van de persoon"
type: "string"
value: "$BSN"
- name: "LEGAL_BASIS"
description: "Juridische titel voor zorgverlening"
type: "string"
temporal:
type: "period"
period_type: "continuous"
source_reference:
table: "forensische_zorg"
field: "juridische_titel"
select_on:
- name: "bsn"
description: "Burgerservicenummer van de persoon"
type: "string"
value: "$BSN"
output:
- name: "is_forensic"
description: "Ontvangt de persoon forensische zorg"
type: "boolean"
temporal:
type: "point_in_time"
reference: "$calculation_date"
definitions:
FORENSIC_CARE_TYPES:
- "GGZ"
- "VERSLAVINGSZORG"
- "VG_ZORG"
VALID_LEGAL_TITLES:
- "VOORWAARDELIJKE_VEROORDELING"
- "TBS"
- "PIJ_MAATREGEL"
- "ISD_MAATREGEL"
- "VOORWAARDELIJKE_INVRIJHEIDSTELLING"
- "OVERPLAATSING"
- "ZORGMACHTIGING"
- "VOORLOPIGE_HECHTENIS"
actions:
- output: "is_forensic"
operation: AND
values:
- operation: IN
subject: "$CARE_TYPE"
values: "$FORENSIC_CARE_TYPES"
- operation: IN
subject: "$LEGAL_BASIS"
values: "$VALID_LEGAL_TITLES"