Guide d'implémentation du GT Standards et Interopérabilité pour les EDS
0.1.0 - ci-build France flag

Guide d'implémentation du GT Standards et Interopérabilité pour les EDS - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

: Mapping Observation laboratory resources to Measurement OMOP Domain - TTL Representation

Draft as of 2024-10-08

Raw ttl | Download


@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 -------------------------------------------------------------------

 a fhir:StructureMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "Measurement"] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap Measurement</b></p><a name=\"Measurement\"> </a><a name=\"hcMeasurement\"> </a><a name=\"Measurement-fr-FR\"> </a><pre class=\"fml\">\r\n<b>map</b><span style=\"color: navy\"> &quot;</span>https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/Measurement<span style=\"color: navy\">&quot; = &quot;</span>Measurement<span style=\"color: navy\">&quot;\r\n\r\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Mapping Observation laboratory resources to Measurement OMOP Domain</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"StructureDefinition-EDSObservationLaboratoryGeneric.html\" title=\"Résultat de laboratoire\">https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/EDSObservationLaboratoryGeneric</a><span style=\"color: navy\">&quot; </span><b>alias </b>LabObs <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"StructureDefinition-LogicalBundle.html\" title=\"LogicalBundle\">https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/LogicalBundle</a><span style=\"color: navy\">&quot; </span><b>alias </b>LogicalBundle <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"StructureDefinition-OMOPMeasurement.html\" title=\"Measurement OMOP Table\">https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/OMOPMeasurement</a><span style=\"color: navy\">&quot; </span><b>alias </b>MeasurementTable <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> &quot;</span><a href=\"StructureMap-SimpleObservation.html\" title=\"Mapping simple Observation laboratory resources to Measurement OMOP Domain\">https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/SimpleObservation</a><span style=\"color: navy\">&quot;\r\n</span>\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">imports &quot;https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/ComplexMeasurement&quot;</span>\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">imports &quot;https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/*Measurement&quot;</span>\r\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\"> {\r\n</span>  src<span style=\"color: navy\"><b> -&gt; </b></span>tgtBundle.id = <b>uuid</b><span style=\"color: navy\">(</span><span style=\"color: navy\">)</span> <i>&quot;setId&quot;</i><span style=\"color: navy\">;</span>\r\n  src<span style=\"color: navy\"><b> -&gt; </b></span>tgtBundle.type = <span style=\"color: blue\">'transaction'</span> <i>&quot;setType&quot;</i><span style=\"color: navy\">;</span>\r\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\"> {\r\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\"> {\r\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>&quot;transformSimpleObservation&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;createSimpleObservation&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;newEntrySimpleObservation&quot;</i><span style=\"color: navy\">;</span>\r\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(&quot;MeasurementTable&quot;) as newMeasurement then {             src then ComplexMeasurement(src, newMeasurement) &quot;transformComplexMeasurement&quot;;         } &quot;createComplexMeasurement&quot;;     } &quot;newEntryComplexMeasurement&quot;;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
  ] ; # 
  fhir:url [ fhir:v "https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/Measurement"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "0.1.0"] ; # 
  fhir:name [ fhir:v "Measurement"] ; # 
  fhir:title [ fhir:v "Mapping Observation laboratory resources to Measurement OMOP Domain"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:date [ fhir:v "2024-10-08T09:22:03+00:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "ANS"] ; # 
  fhir:contact ( [
fhir:name [ fhir:v "ANS" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "https://esante.gouv.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:code [ fhir:v "FR" ] ;
fhir:display [ fhir:v "France" ]     ] )
  ] ) ; # 
  fhir:structure ( [
fhir:url [
fhir:v "https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/EDSObservationLaboratoryGeneric"^^xsd:anyURI ;
fhir:link <https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/EDSObservationLaboratoryGeneric>     ] ;
fhir:mode [ fhir:v "source" ] ;
fhir:alias [ fhir:v "LabObs" ]
  ] [
fhir:url [
fhir:v "https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/LogicalBundle"^^xsd:anyURI ;
fhir:link <https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/LogicalBundle>     ] ;
fhir:mode [ fhir:v "target" ] ;
fhir:alias [ fhir:v "LogicalBundle" ]
  ] [
fhir:url [
fhir:v "https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/OMOPMeasurement"^^xsd:anyURI ;
fhir:link <https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/OMOPMeasurement>     ] ;
fhir:mode [ fhir:v "target" ] ;
fhir:alias [ fhir:v "MeasurementTable" ]
  ] ) ; # 
  fhir:import ( [
fhir:v "https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/SimpleObservation"^^xsd:anyURI ;
fhir:link <https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/SimpleObservation>
  ] ) ; # 
  fhir:group ( [
fhir:name [ fhir:v "Observation" ] ;
fhir:typeMode [ fhir:v "none" ] ;
fhir:documentation [ fhir:v "imports \"https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/ComplexMeasurement\"\r\nimports \"https://interop.esante.gouv.fr/ig/fhir/eds/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 "id" ] ;
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 [ 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 [ 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" ] )           ] )         ] )       ] )     ] )
  ] ) . #