Uitwisselprofiel NZa Structurele Informatieverstrekking Bedrijfsvoering Wmg

2.2 Aantal cliënten met leveringsvorm PGB per wet

Concepten

Relaties

Eigenschappen

Instanties

SPARQL query

Code gekopieerd

...

Kopieer naar klembord

1# Indicator: NZA WMG 2.2
2# Parameters:
3# Ontologie: versie 3.0.0 of nieuwer
4
5PREFIX onz-g: <http://purl.org/ozo/onz-g#>
6PREFIX onz-zorg: <http://purl.org/ozo/onz-zorg#>
7PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
8PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
9PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
10SELECT
11    (COUNT(DISTINCT IF(?indicatieType = onz-zorg:WlzIndicatie, ?client, ?unbound)) AS ?clienten_Wlz)
12    (COUNT(DISTINCT IF(?indicatieType = onz-zorg:ZvwIndicatie, ?client, ?unbound)) AS ?clienten_Zvw)
13 
14WHERE {
15    BIND("2024-01-01"^^xsd:date AS ?start_datum)
16    BIND("2024-12-31"^^xsd:date AS ?eind_datum)
17    BIND(onz-zorg:pgb AS ?targetLv)      
18 
19    ?zorgproces a onz-zorg:ZorgProces ;
20    	onz-g:definedBy ?indicatie ;         
21        onz-g:startDatum ?start_zorgproces .
22    OPTIONAL { ?zorgproces onz-g:eindDatum ?eind_zorgproces . }
23    ?indicatie 
24        a ?indicatieType ;
25    	onz-g:hasPart ?lv ;
26        onz-g:isAbout ?client .       
27    ?lv a onz-zorg:Leveringsvorm .
28    ?client a onz-g:Human .
29    FILTER (?start_zorgproces <= ?eind_datum && (!BOUND(?eind_zorgproces) || ?eind_zorgproces >= ?start_datum))
30    FILTER (?lv = ?targetLv)
31    FILTER(?indicatieType IN (onz-zorg:WlzIndicatie, onz-zorg:ZvwIndicatie))
32}

Heb je feedback?

Loopt u tegen een issue of vraag aan bij het KIK-V product? Neem dan contact met ons op!