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 Observation laboratory resources to Measurement 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 "CoreFHIR2OMOPMeasurement"] ; #
      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 CoreFHIR2OMOPMeasurement</b></p><a name=\"CoreFHIR2OMOPMeasurement\"> </a><a name=\"hcCoreFHIR2OMOPMeasurement\"> </a><pre class=\"fml\">#xD;\n<b>map</b><span style=\"color: navy\"> \"</span>https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreFHIR2OMOPMeasurement<span style=\"color: navy\">\" = \"</span>CoreFHIR2OMOPMeasurement<span style=\"color: navy\">\"#xD;\n#xD;\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Mapping Observation laboratory resources to Measurement OMOP Domain</span>#xD;\n#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"http://hl7.org/fhir/R4/observation.html\" title=\"Observation\">http://hl7.org/fhir/StructureDefinition/Observation</a><span style=\"color: navy\">\" </span><b>alias </b>LabObs <b>as </b><b>source</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span>https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/LogicalBundle<span style=\"color: navy\">\" </span><b>alias </b>LogicalBundle <b>as </b><b>target</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span>https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/OMOPMeasurement<span style=\"color: navy\">\" </span><b>alias </b>MeasurementTable <b>as </b><b>target</b>#xD;\n#xD;\n<b>imports</b><span style=\"color: navy\"> \"</span><a href=\"StructureMap-CoreSimpleObservation2OMOPMeasurement.html\" title=\"Mapping simple Observation laboratory resources to Measurement OMOP Domain\">https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreSimpleObservation2OMOPMeasurement</a><span style=\"color: navy\">\"#xD;\n</span>#xD;\n<span style=\"color: navy\">// </span><span style=\"color: green\">imports \"https://interop.aphp.fr/ig/fhir/dm/StructureMap/ComplexMeasurement\"</span>#xD;\n<span style=\"color: navy\">// </span><span style=\"color: green\">imports \"https://interop.aphp.fr/ig/fhir/dm/StructureMap/*Measurement\"</span>#xD;\n<b>group </b>Observation<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>LabObs, <b>target</b> <span style=\"color: maroon\">tgtBundle</span><span style=\"color: navy\"> : </span>LogicalBundle<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span>  src<span style=\"color: navy\"><b> -&gt; </b></span>tgtBundle.logicalId = <b>uuid</b><span style=\"color: navy\">(</span><span style=\"color: navy\">)</span> <i>\"setId\"</i><span style=\"color: navy\">;</span>#xD;\n  src<span style=\"color: navy\"><b> -&gt; </b></span>tgtBundle.type = <span style=\"color: blue\">'transaction'</span> <i>\"setType\"</i><span style=\"color: navy\">;</span>#xD;\n  src<b> where </b>code.coding.code in ('14682-9' | '22664-7' | '77147-7')<span style=\"color: navy\"><b> -&gt; </b></span>tgtBundle.entry<b> as </b><span style=\"color: maroon\">newEntry</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    src<span style=\"color: navy\"><b> -&gt; </b></span>newEntry.measurement = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'MeasurementTable'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">newMeasurement</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      src<b> then </b>SimpleObservation<span style=\"color: navy\">(</span><span style=\"color: maroon\">src</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">newMeasurement</span><span style=\"color: navy\">)</span> <i>\"transformSimpleObservation\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"createSimpleObservation\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"newEntrySimpleObservation\"</i><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">// </span><span style=\"color: green\">src where code.coding.code in ('50197-3') -&gt; tgtBundle.entry as newEntry then {         src -&gt; newEntry.measurement = create(\"MeasurementTable\") as newMeasurement then {             src then ComplexMeasurement(src, newMeasurement) \"transformComplexMeasurement\";         } \"createComplexMeasurement\";     } \"newEntryComplexMeasurement\";</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/CoreFHIR2OMOPMeasurement"^^xsd:anyURI ;
    fhir:l <https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreFHIR2OMOPMeasurement>
      ] ; #
      fhir:version [ fhir:v "0.1.0"] ; #
      fhir:name [ fhir:v "CoreFHIR2OMOPMeasurement"] ; #
      fhir:title [ fhir:v "Mapping Observation laboratory resources to Measurement 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 Observation laboratory resources to Measurement 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/Observation"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Observation>     ] ;
    fhir:mode [ fhir:v "source" ] ;
    fhir:alias [ fhir:v "LabObs" ]
      ] [
    fhir:url [
    fhir:v "https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/LogicalBundle"^^xsd:anyURI ;
    fhir:l <https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/LogicalBundle>     ] ;
    fhir:mode [ fhir:v "target" ] ;
    fhir:alias [ fhir:v "LogicalBundle" ]
      ] [
    fhir:url [
    fhir:v "https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/OMOPMeasurement"^^xsd:anyURI ;
    fhir:l <https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/OMOPMeasurement>     ] ;
    fhir:mode [ fhir:v "target" ] ;
    fhir:alias [ fhir:v "MeasurementTable" ]
      ] ) ; #
      fhir:import ( [
    fhir:v "https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreSimpleObservation2OMOPMeasurement"^^xsd:anyURI ;
    fhir:l <https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreSimpleObservation2OMOPMeasurement>
      ] ) ; #
      fhir:group ( [
    fhir:name [ fhir:v "Observation" ] ;
    fhir:typeMode [ fhir:v "none" ] ;
    fhir:documentation [ fhir:v "imports \"https://interop.aphp.fr/ig/fhir/dm/StructureMap/ComplexMeasurement\"\r\nimports \"https://interop.aphp.fr/ig/fhir/dm/StructureMap/*Measurement\"" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:type [ fhir:v "LabObs" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "tgtBundle" ] ;
    fhir:type [ fhir:v "LogicalBundle" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "setId" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgtBundle" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "logicalId" ] ;
    fhir:transform [ fhir:v "uuid" ]       ] )     ] [
    fhir:name [ fhir:v "setType" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgtBundle" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "type" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "transaction"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "newEntrySimpleObservation" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:condition [ fhir:v "code.coding.code in ('14682-9' | '22664-7' | '77147-7')" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgtBundle" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "entry" ] ;
    fhir:variable [ fhir:v "newEntry" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "createSimpleObservation" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "newEntry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "measurement" ] ;
    fhir:variable [ fhir:v "newMeasurement" ] ;
    fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "MeasurementTable"             ]           ] )         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "transformSimpleObservation" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "src" ]           ] ) ;
              ( fhir:dependent [
    fhir:name [ fhir:v "SimpleObservation" ] ;
                ( fhir:variable [ fhir:v "src" ] [ fhir:v "newMeasurement" ] )           ] )         ] )       ] )     ] )
      ] ) . #