@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://hl7.eu/fhir/ig/hl7.eu.fhir.protect-child/ConceptMap/dm-donor-to-omop> a fhir:ConceptMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "dm-donor-to-omop"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: ConceptMap dm-donor-to-omop</b></p><a name=\"dm-donor-to-omop\"> </a><a name=\"hcdm-donor-to-omop\"> </a><p>This mapping does not specify any particular context of use.</p><br/><p>Mapping from <a href=\"CodeSystem-dm-variable-cs.html\">PROTECT-CHILD Data Model Variables</a> to <a href=\"http://terminology.hl7.org/6.3.0/CodeSystem-OMOP.html\">OHDSI Standardized Vocabularies</a></p><table class=\"grid\"><tr><td colspan=\"2\"><b>Source Concept Details</b></td><td><b>Relationship</b></td><td colspan=\"2\"><b>Target Concept Details</b></td><td><b>Comment</b></td></tr><tr><td colspan=\"2\"><b>Codes</b> from <a href=\"CodeSystem-dm-variable-cs.html\" title=\"https://hl7.eu/fhir/ig/hl7.eu.fhir.protect-child/CodeSystem/dm-variable-cs\">PROTECT-CHILD Data Model Variables</a></td><td/><td colspan=\"2\"><b>Codes</b> from <a href=\"http://terminology.hl7.org/6.3.0/CodeSystem-OMOP.html\" title=\"https://fhir-terminology.ohdsi.org\">OHDSI Standardized Vocabularies</a></td><td/></tr><tr><td style=\"border-right-width: 0px; border-bottom-style: none\">donor.type</td><td style=\"border-left-width: 0px; border-bottom-style: none\">donor.type</td><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">2000000016</td><td style=\"border-left-width: 0px\">Type of donor</td><td>OMOP OBSERVATION.observation_concept_id; vocabulary PROTECT-CHILD.</td></tr><tr><td style=\"border-right-width: 0px; border-top-style: none; border-bottom-style: none\"/><td style=\"border-left-width: 0px; border-top-style: none; border-bottom-style: none\"/><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#relatedto\" title=\"relatedto\">is related to</a></td><td style=\"border-right-width: 0px\">45885033</td><td style=\"border-left-width: 0px\">Deceased</td><td>OMOP OBSERVATION.value_as_concept_id; vocabulary LOINC.</td></tr><tr><td style=\"border-right-width: 0px; border-top-style: none\"/><td style=\"border-top-style: none; border-left-width: 0px\"/><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#relatedto\" title=\"relatedto\">is related to</a></td><td style=\"border-right-width: 0px\">45885109</td><td style=\"border-left-width: 0px\">Living</td><td>OMOP OBSERVATION.value_as_concept_id; vocabulary LOINC.</td></tr><tr><td style=\"border-right-width: 0px; border-bottom-style: none\">donor.liver_type</td><td style=\"border-left-width: 0px; border-bottom-style: none\">donor.liver_type</td><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">3044734</td><td style=\"border-left-width: 0px\">Graft portion Liver</td><td>OMOP MEASUREMENT.measurement_concept_id; vocabulary LOINC.</td></tr><tr><td style=\"border-right-width: 0px; border-top-style: none; border-bottom-style: none\"/><td style=\"border-left-width: 0px; border-top-style: none; border-bottom-style: none\"/><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#relatedto\" title=\"relatedto\">is related to</a></td><td style=\"border-right-width: 0px\">4114660</td><td style=\"border-left-width: 0px\">Entire</td><td>OMOP MEASUREMENT.value_as_concept_id; vocabulary SNOMED.</td></tr><tr><td style=\"border-right-width: 0px; border-top-style: none\"/><td style=\"border-top-style: none; border-left-width: 0px\"/><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#relatedto\" title=\"relatedto\">is related to</a></td><td style=\"border-right-width: 0px\">4116993</td><td style=\"border-left-width: 0px\">Partial</td><td>OMOP MEASUREMENT.value_as_concept_id; vocabulary SNOMED.</td></tr></table></div>"
  ] ;
  fhir:ConceptMap.url [ fhir:value "https://hl7.eu/fhir/ig/hl7.eu.fhir.protect-child/ConceptMap/dm-donor-to-omop"] ;
  fhir:ConceptMap.version [ fhir:value "0.1.0-ci-build"] ;
  fhir:ConceptMap.name [ fhir:value "DmDonorToOmop"] ;
  fhir:ConceptMap.title [ fhir:value "DM donor → OMOP"] ;
  fhir:ConceptMap.status [ fhir:value "draft"] ;
  fhir:ConceptMap.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:ConceptMap.date [ fhir:value "2026-09-28T06:51:47+00:00"^^xsd:dateTime] ;
  fhir:ConceptMap.publisher [ fhir:value "Protect Child"] ;
  fhir:ConceptMap.contact [
     fhir:index 0 ;
     fhir:ContactDetail.name [ fhir:value "Protect Child" ] ;
     fhir:ContactDetail.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://protect-child.eu/" ]
     ]
  ] ;
  fhir:ConceptMap.description [ fhir:value "The OMOP concepts for each column of the DMv1.2 donor table, from the DM → FHIR → OMOP crosswalk. Each target's comment names the OMOP CDM field it fills. `equivalent`: the column's own concept; `narrower`: one of several concepts the column's values map to; `relatedto`: a value, unit or qualifier concept. Concept IDs of 2000000000 and above are PROTECT-CHILD custom concepts (CodeSystem ProtectChildOmopVocabulary)."] ;
  fhir:ConceptMap.group [
     fhir:index 0 ;
     fhir:ConceptMap.group.source [ fhir:value "https://hl7.eu/fhir/ig/hl7.eu.fhir.protect-child/CodeSystem/dm-variable-cs" ] ;
     fhir:ConceptMap.group.target [ fhir:value "https://fhir-terminology.ohdsi.org" ] ;
     fhir:ConceptMap.group.element [
       fhir:index 0 ;
       fhir:ConceptMap.group.element.code [ fhir:value "donor.type" ] ;
       fhir:ConceptMap.group.element.target [
         fhir:index 0 ;
         fhir:ConceptMap.group.element.target.code [ fhir:value "2000000016" ] ;
         fhir:ConceptMap.group.element.target.display [ fhir:value "Type of donor" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ] ;
         fhir:ConceptMap.group.element.target.comment [ fhir:value "OMOP OBSERVATION.observation_concept_id; vocabulary PROTECT-CHILD." ]
       ], [
         fhir:index 1 ;
         fhir:ConceptMap.group.element.target.code [ fhir:value "45885033" ] ;
         fhir:ConceptMap.group.element.target.display [ fhir:value "Deceased" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "relatedto" ] ;
         fhir:ConceptMap.group.element.target.comment [ fhir:value "OMOP OBSERVATION.value_as_concept_id; vocabulary LOINC." ]
       ], [
         fhir:index 2 ;
         fhir:ConceptMap.group.element.target.code [ fhir:value "45885109" ] ;
         fhir:ConceptMap.group.element.target.display [ fhir:value "Living" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "relatedto" ] ;
         fhir:ConceptMap.group.element.target.comment [ fhir:value "OMOP OBSERVATION.value_as_concept_id; vocabulary LOINC." ]
       ]
     ], [
       fhir:index 1 ;
       fhir:ConceptMap.group.element.code [ fhir:value "donor.liver_type" ] ;
       fhir:ConceptMap.group.element.target [
         fhir:index 0 ;
         fhir:ConceptMap.group.element.target.code [ fhir:value "3044734" ] ;
         fhir:ConceptMap.group.element.target.display [ fhir:value "Graft portion Liver" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ] ;
         fhir:ConceptMap.group.element.target.comment [ fhir:value "OMOP MEASUREMENT.measurement_concept_id; vocabulary LOINC." ]
       ], [
         fhir:index 1 ;
         fhir:ConceptMap.group.element.target.code [ fhir:value "4114660" ] ;
         fhir:ConceptMap.group.element.target.display [ fhir:value "Entire" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "relatedto" ] ;
         fhir:ConceptMap.group.element.target.comment [ fhir:value "OMOP MEASUREMENT.value_as_concept_id; vocabulary SNOMED." ]
       ], [
         fhir:index 2 ;
         fhir:ConceptMap.group.element.target.code [ fhir:value "4116993" ] ;
         fhir:ConceptMap.group.element.target.display [ fhir:value "Partial" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "relatedto" ] ;
         fhir:ConceptMap.group.element.target.comment [ fhir:value "OMOP MEASUREMENT.value_as_concept_id; vocabulary SNOMED." ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://hl7.eu/fhir/ig/hl7.eu.fhir.protect-child/ConceptMap/dm-donor-to-omop.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

