Uitwisselprofiel Zorgkantoren Inkoopondersteuning en beleidsontwikkeling

Over Uitwisselprofiel Zorgkantoren Inkoopondersteuning en beleidsontwikkeling


Publicatiedatum:
03-10-2025

Inwerkingtreding:
03-10-2025

15.4.4 Wat is het gedeclareerde bedrag per wet?

Concepten

Relaties

Eigenschappen

SPARQL query

Code gekopieerd

...

Kopieer naar klembord

1# Indicator: Zorgkantoren 15.4.4
2# Parameters: ?startperiode, ?eindperiode, ?zorgkantoor
3# Ontologie: versie 3.0.0 of nieuwer
4
5PREFIX onz-org: <http://purl.org/ozo/onz-org#>
6PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
7PREFIX onz-g: <http://purl.org/ozo/onz-g#>
8PREFIX onz-zorg: <http://purl.org/ozo/onz-zorg#>
9PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
10PREFIX owl: <http://www.w3.org/2002/07/owl#>
11PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
12PREFIX onz-fin: <http://purl.org/ozo/onz-fin#>
13
14
15SELECT DISTINCT 
16    ?Indeling 
17    ?Procent_gedeclareerd_bedrag_Wlz ?Procent_gedeclareerd_bedrag_Zvw ?Procent_gedeclareerd_bedrag_Wmo ?Procent_gedeclareerd_bedrag_Overig
18{
19    {
20      SELECT 
21        ("Totaal organisatie" AS ?Indeling)
22        ((ROUND(SUM(?wlzAmount) / SUM(?amount) * 10000) / 100.0) AS ?Procent_gedeclareerd_bedrag_Wlz)
23        ((ROUND(SUM(?zvwAmount) / SUM(?amount) * 10000) / 100.0) AS ?Procent_gedeclareerd_bedrag_Zvw)
24        ((ROUND(SUM(?wmoAmount)    / SUM(?amount) * 10000) / 100.0) AS ?Procent_gedeclareerd_bedrag_Wmo)
25        ((100.0 
26        - ROUND(SUM(?wlzAmount) / SUM(?amount) * 10000) / 100.0
27        - ROUND(SUM(?zvwAmount) / SUM(?amount) * 10000) / 100.0
28        - ROUND(SUM(?wmoAmount) / SUM(?amount) * 10000) / 100.0
29        ) AS ?Procent_gedeclareerd_bedrag_Overig)
30        
31        WHERE {
32            #BIND("2024-01-01"^^xsd:date AS ?startperiode)
33            #BIND("2024-12-31"^^xsd:date AS ?eindperiode)
34            
35            ?declaratie
36                a onz-g:CareInvoice ;
37        		onz-g:hasDate ?date ;
38        		onz-g:goedgekeurd "true"^^xsd:boolean ;
39				onz-fin:heeftGeldBedrag ?amount ;
40        		onz-g:isAbout ?zorgproces .
41      
42            FILTER(?startperiode <= ?date && ?date <= ?eindperiode)
43
44      		?zorgproces a onz-g:CureAndCareProcess ;
45                  onz-g:definedBy ?indicatie ;
46                  onz-g:hasPerdurantLocation ?locatie .
47			             ?indicatie a ?soortIndicatie.
48            {
49                SELECT ?soortIndicatie 
50                WHERE {
51                    {
52                        ?soortIndicatie rdfs:subClassOf onz-zorg:IndicatieBesluit .
53
54                    } UNION {
55                        BIND(onz-zorg:ForensischeIndicatieStelling AS ?soortIndicatie)
56                    }
57                    FILTER(!(?soortIndicatie in (onz-zorg:IndicatieBesluit, owl:Nothing)))
58                }
59            }
60
61             # Selecteer de wetten 
62             BIND(IF(?soortIndicatie = onz-zorg:WlzIndicatie, ?amount, 0) AS ?wlzAmount )
63             BIND(IF(?soortIndicatie = onz-zorg:ZvwIndicatie, ?amount, 0) AS ?zvwAmount )
64             BIND(IF(?soortIndicatie = onz-zorg:WmoIndicatie, ?amount, 0) AS ?wmoAmount )
65           
66
67            # Locatie triple structuur 
68            ?locatie onz-g:partOf* ?vestiging_uri .
69            ?vestiging_uri a onz-org:Vestiging .
70   
71    	}
72	}
73    
74     # Extra locatie-informatie voor mapping naar zorgkantoor (wordt niet in output opgenomen)
75    ?vestiging_uri
76        onz-g:hasLocalizableArea/onz-g:identifiedBy/onz-g:hasPart/onz-g:hasPart ?postcode_6 .
77
78    BIND(IRI(SUBSTR(STR(?postcode_6), 1, STRLEN(STR(?postcode_6)) - 2)) AS ?postcode)
79
80    ?pc_gebied 
81        onz-g:identifiedBy ?postcode ;
82        onz-g:partOf+ ?zk_regio .
83
84    ?zk_regio a onz-org:ZorgkantoorRegio .
85    ?zorgkantoor onz-g:hasOperatingRange ?zk_regio .
86
87    {
88        ?vestiging_uri onz-g:identifiedBy ?vest_nr .
89        ?vest_nr a onz-org:Vestigingsnummer ;
90                 onz-g:hasDataValue ?vestiging .
91    } UNION {
92        # Organisatieniveau toevoegen als 'vestiging'
93        ?vestiging_uri onz-org:vestigingVan ?organisatie_uri .
94        BIND("Totaal organisatie" AS ?vestiging)
95        BIND("n.v.t." AS ?zk_vestiging)
96    }
97
98    BIND(IF(!BOUND(?zk_vestiging), ?zorgkantoor, ?zk_vestiging) AS ?zorgkantoor_vestiging)    
99}
100