Data Management with FHIR
0.1.0 - ci-build

Data Management with FHIR - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

## : Mapping FHIR Patient resource to OMOP Death - TTL Representation

Draft as of 2025-10-23

Raw ttl | Download

    @prefix fhir: <http://hl7.org/fhir/> .
    @prefix owl: <http://www.w3.org/2002/07/owl#> .
    @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
    @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
    @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

    # - resource -------------------------------------------------------------------

     a fhir:StructureMap ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:id [ fhir:v "CoreFHIR2OMOPDeath"] ; #
      fhir:text [
    fhir:status [ fhir:v "generated" ] ;
    fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Narratif généré : StructureMap CoreFHIR2OMOPDeath</b></p><a name=\"CoreFHIR2OMOPDeath\"> </a><a name=\"hcCoreFHIR2OMOPDeath\"> </a><pre class=\"fml\">#xD;\n<b>map</b><span style=\"color: navy\"> \"</span>https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreFHIR2OMOPDeath<span style=\"color: navy\">\" = \"</span>CoreFHIR2OMOPDeath<span style=\"color: navy\">\"#xD;\n#xD;\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Mapping FHIR Patient resource to OMOP Death</span>#xD;\n#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"http://hl7.org/fhir/R4/patient.html\" title=\"Patient\">http://hl7.org/fhir/StructureDefinition/Patient</a><span style=\"color: navy\">\" </span><b>alias </b>Patient <b>as </b><b>source</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"StructureDefinition-OMOPDeath.html\" title=\"Death OMOP Table\">https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/OMOPDeath</a><span style=\"color: navy\">\" </span><b>alias </b>DeathTable <b>as </b><b>target</b>#xD;\n#xD;\n<b>group </b>Death<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>Patient, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>DeathTable<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span>  src.deceased<span style=\"color: navy\"> : </span>dateTime<b> as </b><span style=\"color: maroon\">srcDeceased</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    srcDeceased<span style=\"color: navy\"><b> -&gt; </b></span>tgt.death_datetime = <span style=\"color: maroon\">srcDeceased</span> <i>\"setDeathDT\"</i><span style=\"color: navy\">;</span>#xD;\n    srcDeceased<span style=\"color: navy\"><b> -&gt; </b></span>tgt.death_date = <span style=\"color: navy\">(</span>%srcDeceased.toString().substring(0, 10)<span style=\"color: navy\">)</span> <i>\"setDeathD\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"SetDeathDate\"</i><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span></pre></div>"^^rdf:XMLLiteral
      ] ; #
      fhir:url [ fhir:v "https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreFHIR2OMOPDeath"^^xsd:anyURI] ; #
      fhir:version [ fhir:v "0.1.0"] ; #
      fhir:name [ fhir:v "CoreFHIR2OMOPDeath"] ; #
      fhir:title [ fhir:v "Mapping FHIR Patient resource to OMOP Death"] ; #
      fhir:status [ fhir:v "draft"] ; #
      fhir:date [ fhir:v "2025-10-23T20:49:03+00:00"^^xsd:dateTime] ; #
      fhir:publisher [ fhir:v "AP-HP"] ; #
      fhir:contact ( [
    fhir:name [ fhir:v "AP-HP" ] ;
        ( fhir:telecom [
    fhir:system [ fhir:v "url" ] ;
    fhir:value [ fhir:v "https://aphp.fr" ]     ] )
      ] ) ; #
      fhir:description [ fhir:v "Mapping FHIR Patient resource to OMOP Death"] ; #
      fhir:jurisdiction ( [
        ( fhir:coding [
    fhir:system [ fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "FR" ] ;
    fhir:display [ fhir:v "France" ]     ] )
      ] ) ; #
      fhir:structure ( [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Patient>     ] ;
    fhir:mode [ fhir:v "source" ] ;
    fhir:alias [ fhir:v "Patient" ]
      ] [
    fhir:url [
    fhir:v "https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/OMOPDeath"^^xsd:anyURI ;
    fhir:link <https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/OMOPDeath>     ] ;
    fhir:mode [ fhir:v "target" ] ;
    fhir:alias [ fhir:v "DeathTable" ]
      ] ) ; #
      fhir:group ( [
    fhir:name [ fhir:v "Death" ] ;
    fhir:typeMode [ fhir:v "none" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:type [ fhir:v "Patient" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "tgt" ] ;
    fhir:type [ fhir:v "DeathTable" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "SetDeathDate" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:type [ fhir:v "dateTime" ] ;
    fhir:element [ fhir:v "deceased" ] ;
    fhir:variable [ fhir:v "srcDeceased" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "setDeathDT" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "srcDeceased" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "death_datetime" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:id ;
    fhir:v "srcDeceased"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "setDeathD" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "srcDeceased" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "death_date" ] ;
    fhir:transform [ fhir:v "evaluate" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "%srcDeceased.toString().substring(0, 10)"             ]           ] )         ] )       ] )     ] )
      ] ) . #