Table 7 The SSSOM mapping, SPARQL query, and the result of the proof-of-concept use case for getting all patients with biological sex and gender attributes .
From: Cross-Standard Health Data Harmonization using Semantics of Data Elements
SPARQL query | |
|---|---|
(a) Biological sex | (b) Gender |
prefix skos: http://www.w3.org/2004/02/skos/core# prefix umls: http://www.nlm.nih.gov/research/umls/ prefix fhir: http://hl7.org/fhir/ prefix omop: https://ohdsi.github.io/CommonDataModel/ SELECT ?s ?p ?o WHERE { omop:gender_concept_id skos:narrowMatch* ?p. ?s ?p ?o } | # Get all patients who has 'Gender' attribute prefix skos: http://www.w3.org/2004/02/skos/core# prefix umls: http://www.nlm.nih.gov/research/umls/ SELECT ?s ?p ?o WHERE { # Ensure it is 'gender'-related conept. umls:Gender skos:narrowMatch* ?p. ?s ?p ?o } |