2_how_many_hospitals_deliver_sosa_score

rq turtle/ttl

How many hospitals deliver the SOFA scores in the SPHN Federated Clinical Routine Dataset (FedData)?

Use at

PREFIX dcterms:<http://purl.org/dc/terms/>
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX void:<http://rdfs.org/ns/void#>
PREFIX sphn-metacat:<https://biomedit.ch/rdf/sphn-metacat/sphn/>
PREFIX snomed:<http://snomed.info/id/>

SELECT ?class (COUNT(DISTINCT ?hospital) AS ?count_hospital)
WHERE {
  <http://fdp.dcc.sib.swiss/dataset/58cd4839-5821-5dee-a859-72e4462c3659> dcat:distribution ?distribution .
  ?dcf a sphn-metacat:DetailedCodeFrequency ;
    dcterms:isPartOf ?distribution .
  ?dcf void:classPartition ?classPartition .
  ?classPartition void:class ?class ;
                  sphn-metacat:hasHospital ?hospital .
      VALUES ?class { snomed:459231000124102 }
}
GROUP BY ?class
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v6("?class"):::projected 
  v3("?classPartition")
  v6("?count_hospital")
  v2("?dcf")
  v1("?distribution")
  v5("?hospital"):::projected 
  c4(["sphn-metacat:DetailedCodeFrequency"]):::iri 
  c1([http://fdp.dcc.sib.swiss/dataset/58cd4839-5821-5dee-a859-72e4462c3659]):::iri 
  c1 --"dcat:distribution"-->  v1
  v2 --"a"-->  c4
  v2 --"dcterms:isPartOf"-->  v1
  v2 --"void:classPartition"-->  v3
  v3 --"void:class"-->  v6
  v3 --"sphn-metacat:hasHospital"-->  v5
  bind0[/VALUES ?class/]
  bind0-->v6
  bind00(["snomed:459231000124102"])
  bind00 --> bind0
  bind2[/"count(?hospital)"/]
  v5 --o bind2
  bind2 --as--o v6