Uitwisselprofiel IGJ Contextinformatie t.b.v. aangekondigd inspectiebezoek

Over Uitwisselprofiel IGJ Contextinformatie t.b.v. aangekondigd inspectiebezoek

1.0.0-RC1-acc


Publicatiedatum:
01-09-2025

Inwerkingtreding:
01-09-2025

1.1.1. Wat is het aantal cliënten per wet?

Concepten

Relaties

Eigenschappen

SPARQL query

Code gekopieerd

...

Kopieer naar klembord

1# Indicator: IGJ 1.1.1
2# Parameters: ?vestigingsnummer, ?peildatum
3# Ontologie: versie 3.0.0
4
5PREFIX onz-zorg: <http://purl.org/ozo/onz-zorg#>
6PREFIX onz-org: <http://purl.org/ozo/onz-org#>
7PREFIX onz-g: <http://purl.org/ozo/onz-g#>
8PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
9PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
10
11SELECT
12    (SUM(?is_wlz) AS ?aantal_wlz)
13    (SUM(?is_zvw) AS ?aantal_zvw)
14    ((COUNT(DISTINCT ?client) - (?aantal_wlz + ?aantal_zvw - SUM(?heeft_beide))) AS ?aantal_overig)
15    (COUNT(DISTINCT ?client) AS ?aantal_uniek)
16WHERE {
17    SELECT DISTINCT
18        ?client
19        (MAX(IF(?subtype_indicatie = onz-zorg:WlzIndicatie, 1, 0)) AS ?is_wlz)
20        (MAX(IF(?subtype_indicatie = onz-zorg:ZvwIndicatie, 1, 0)) AS ?is_zvw)
21        (IF(?is_wlz && ?is_zvw = 1, 1, 0) AS ?heeft_beide)
22    WHERE {
23        
24        BIND(?peildatum AS ?peildatum_argument)
25
26        ?vestiging
27            a onz-org:Vestiging ;
28            onz-g:identifiedBy ?vestigingsnummer_object .
29        ?vestigingsnummer_object
30            a onz-org:Vestigingsnummer ;
31            onz-g:hasDataValue ?vestigingsnummer .
32
33        ?subtype_indicatie rdfs:subClassOf onz-zorg:IndicatieBesluit .
34        ?client a onz-g:Human .
35
36        ?indicatie
37            a ?subtype_indicatie ;
38            onz-g:startDatum ?start_indicatie ;
39            onz-g:isAbout ?client .
40        OPTIONAL { ?indicatie onz-g:eindDatum ?eind_indicatie }
41        FILTER(?peildatum_argument >= ?start_indicatie && (?peildatum_argument <= ?eind_indicatie || !BOUND(?eind_indicatie)))
42
43        ?zorgproces
44            a onz-g:CureAndCareProcess ;
45            onz-g:definedBy ?indicatie ;
46            onz-g:hasPerdurantLocation/onz-g:partOf* ?vestiging ;
47            onz-g:startDatum ?start_zorgproces .
48        OPTIONAL { ?zorgproces onz-g:eindDatum ?eind_zorgproces }
49        FILTER (?start_zorgproces <= ?peildatum_argument && ((?eind_zorgproces >= ?peildatum_argument) || (!BOUND(?eind_zorgproces))))
50    }
51    GROUP BY ?client
52}