Data Management with FHIR 0.1.0 - ci-build

Data Management with FHIR - version de développement local (intégration continue v0.1.0) construite par les outils de publication FHIR (HL7® FHIR® Standard). Voir le répertoire des versions publiées

## : Mapping Patient resource to Location OMOP Domain - TTL Representation

Draft as of 2026-04-16

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 "CoreFHIR2OMOPLocation"] ; #
      fhir:text [
    fhir:status [ fhir:v "generated" ] ;
    fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Narratif généré : StructureMap CoreFHIR2OMOPLocation</b></p><a name=\"CoreFHIR2OMOPLocation\"> </a><a name=\"hcCoreFHIR2OMOPLocation\"> </a><pre class=\"fml\">#xD;\n<b>map</b><span style=\"color: navy\"> \"</span>https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreFHIR2OMOPLocation<span style=\"color: navy\">\" = \"</span>CoreFHIR2OMOPLocation<span style=\"color: navy\">\"#xD;\n#xD;\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Mapping Patient resource to Location OMOP Domain</span>#xD;\n#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"http://hl7.org/fhir/R4/datatypes.html#Address\" title=\"Address\">http://hl7.org/fhir/StructureDefinition/Address</a><span style=\"color: navy\">\" </span><b>alias </b>Address <b>as </b><b>source</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span>https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/OMOPLocation<span style=\"color: navy\">\" </span><b>alias </b>LocationTable <b>as </b><b>target</b>#xD;\n#xD;\n<b>group </b>Location<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>Address, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>LocationTable<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span>  src.line first<b> as </b><span style=\"color: maroon\">srcLine1</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.address_1 = <span style=\"color: maroon\">srcLine1</span> <i>\"setLineOne\"</i><span style=\"color: navy\">;</span>#xD;\n  src.line not_first<b> as </b><span style=\"color: maroon\">srcLine2</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.address_2 = <span style=\"color: maroon\">srcLine2</span> <i>\"setLineTwo\"</i><span style=\"color: navy\">;</span>#xD;\n  src.city<b> as </b><span style=\"color: maroon\">srcCity</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.city = <span style=\"color: maroon\">srcCity</span> <i>\"setCity\"</i><span style=\"color: navy\">;</span>#xD;\n  src.postalCode<b> as </b><span style=\"color: maroon\">srcZip</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.zip = <span style=\"color: maroon\">srcZip</span> <i>\"setZip\"</i><span style=\"color: navy\">;</span>#xD;\n  src.country<b> as </b><span style=\"color: maroon\">srcCountry</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.country_source_value = <span style=\"color: maroon\">srcCountry</span> <i>\"setCountry\"</i><span style=\"color: navy\">;</span>#xD;\n  src.text<b> as </b><span style=\"color: maroon\">srcText</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.location_source_value = <b>truncate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">srcText</span><span style=\"color: navy\">, </span><span style=\"color: blue\">50</span><span style=\"color: navy\">)</span> <i>\"setVerbatim\"</i><span style=\"color: navy\">;</span>#xD;\n  src.extension<b> as </b><span style=\"color: maroon\">geolocation</span><b> where </b>(url = 'http://hl7.org/fhir/StructureDefinition/geolocation')<b> then</b><span style=\"color: navy\"> {#xD;\n</span>    geolocation.extension<b> as </b><span style=\"color: maroon\">latitude</span><b> where </b>(url = 'latitude')<span style=\"color: navy\"><b> -&gt; </b></span>tgt.latitude = <span style=\"color: navy\">(</span>%latitude.value<span style=\"color: navy\">)</span> <i>\"setLatitude\"</i><span style=\"color: navy\">;</span>#xD;\n    geolocation.extension<b> as </b><span style=\"color: maroon\">longitude</span><b> where </b>(url = 'longitude')<span style=\"color: navy\"><b> -&gt; </b></span>tgt.longitude = <span style=\"color: navy\">(</span>%longitude.value<span style=\"color: navy\">)</span> <i>\"setLongitude\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"setGeolocation\"</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/CoreFHIR2OMOPLocation"^^xsd:anyURI ;
    fhir:l <https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreFHIR2OMOPLocation>
      ] ; #
      fhir:version [ fhir:v "0.1.0"] ; #
      fhir:name [ fhir:v "CoreFHIR2OMOPLocation"] ; #
      fhir:title [ fhir:v "Mapping Patient resource to Location OMOP Domain"] ; #
      fhir:status [ fhir:v "draft"] ; #
      fhir:date [ fhir:v "2026-04-16T14:35:38+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 Patient resource to Location OMOP Domain"] ; #
      fhir:jurisdiction ( [
        ( fhir:coding [
    fhir:system [
    fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ;
    fhir:l <urn:iso:std:iso:3166>       ] ;
    fhir:code [ fhir:v "FR" ]     ] )
      ] ) ; #
      fhir:structure ( [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Address"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Address>     ] ;
    fhir:mode [ fhir:v "source" ] ;
    fhir:alias [ fhir:v "Address" ]
      ] [
    fhir:url [
    fhir:v "https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/OMOPLocation"^^xsd:anyURI ;
    fhir:l <https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/OMOPLocation>     ] ;
    fhir:mode [ fhir:v "target" ] ;
    fhir:alias [ fhir:v "LocationTable" ]
      ] ) ; #
      fhir:group ( [
    fhir:name [ fhir:v "Location" ] ;
    fhir:typeMode [ fhir:v "none" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:type [ fhir:v "Address" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "tgt" ] ;
    fhir:type [ fhir:v "LocationTable" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "setLineOne" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "line" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "srcLine1" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "address_1" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "srcLine1"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "setLineTwo" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "line" ] ;
    fhir:listMode [ fhir:v "not_first" ] ;
    fhir:variable [ fhir:v "srcLine2" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "address_2" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "srcLine2"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "setCity" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "city" ] ;
    fhir:variable [ fhir:v "srcCity" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "city" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "srcCity"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "setZip" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "postalCode" ] ;
    fhir:variable [ fhir:v "srcZip" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "zip" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "srcZip"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "setCountry" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "country" ] ;
    fhir:variable [ fhir:v "srcCountry" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "country_source_value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "srcCountry"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "setVerbatim" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "text" ] ;
    fhir:variable [ fhir:v "srcText" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "location_source_value" ] ;
    fhir:transform [ fhir:v "truncate" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "srcText"           ]         ] [
    fhir:value [
    a fhir:Integer ;
    fhir:v 50           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "setGeolocation" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "extension" ] ;
    fhir:variable [ fhir:v "geolocation" ] ;
    fhir:condition [ fhir:v "(url = 'http://hl7.org/fhir/StructureDefinition/geolocation')" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "setLatitude" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "geolocation" ] ;
    fhir:element [ fhir:v "extension" ] ;
    fhir:variable [ fhir:v "latitude" ] ;
    fhir:condition [ fhir:v "(url = 'latitude')" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "latitude" ] ;
    fhir:transform [ fhir:v "evaluate" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "%latitude.value"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "setLongitude" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "geolocation" ] ;
    fhir:element [ fhir:v "extension" ] ;
    fhir:variable [ fhir:v "longitude" ] ;
    fhir:condition [ fhir:v "(url = 'longitude')" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "longitude" ] ;
    fhir:transform [ fhir:v "evaluate" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "%longitude.value"             ]           ] )         ] )       ] )     ] )
      ] ) . #