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#>
10
11SELECT
12	(COUNT(DISTINCT IF(BOUND(?zvw), ?client, ?unbound)) AS ?Aantal_clienten_met_leveringsvorm_PGB_in_de_Zvw)
13	(COUNT(DISTINCT IF(BOUND(?wlz), ?client, ?unbound)) AS ?Aantal_clienten_met_leveringsvorm_PGB_in_de_Wlz)
14 
15{
16    BIND("2024-01-01"^^xsd:date AS ?start_datum)
17    BIND("2024-12-31"^^xsd:date AS ?eind_datum)
18
19    ?client
20        a onz-g:Human .
21
22    #selecteer de bijbehorende indicatie met leveringsvorm PGB, geldig in de meetperiode
23    ?indicatie
24        onz-g:hasPart onz-zorg:pgb ;
25        onz-g:isAbout ?client ;
26        onz-g:startDatum ?start_indicatie .
27        OPTIONAL { ?indicatie onz-g:eindDatum ?eind_indicatie . }
28    FILTER (?start_indicatie <= ?eind_datum && (!BOUND(?eind_indicatie) || ?eind_indicatie >= ?start_datum))
29  	OPTIONAL {
30	    ?indicatie a onz-zorg:WlzIndicatie .
31    	BIND(1 AS ?wlz)
32	}
33	OPTIONAL {
34	    ?indicatie a onz-zorg:ZvwIndicatie .
35    	BIND(1 AS ?zvw)
36	}
37}
38

Heb je feedback?

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