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 - XML Representation

Draft as of 2024-09-10

Raw xml | Download



<StructureMap xmlns="http://hl7.org/fhir">
  <id value="Measurement"/>
  <text>
    <status value="generated"/>
    <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">
<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;

</span><span style="color: navy">// </span><span style="color: green">Mapping Observation laboratory resources to Measurement OMOP Domain</span>

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

<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;
</span>
<span style="color: navy">// </span><span style="color: green">imports &quot;https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/ComplexMeasurement&quot;</span>
<span style="color: navy">// </span><span style="color: green">imports &quot;https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/*Measurement&quot;</span>
<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"> {
</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>
  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>
  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"> {
</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"> {
</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>
    <span style="color: navy">}</span> <i>&quot;createSimpleObservation&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;newEntrySimpleObservation&quot;</i><span style="color: navy">;</span>
<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>
<span style="color: navy">}

</span></pre></div>
  </text>
  <url
       value="https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/Measurement"/>
  <version value="0.1.0"/>
  <name value="Measurement"/>
  <title
         value="Mapping Observation laboratory resources to Measurement OMOP Domain"/>
  <status value="draft"/>
  <date value="2024-09-10T07:10:31+00:00"/>
  <publisher value="ANS"/>
  <contact>
    <name value="ANS"/>
    <telecom>
      <system value="url"/>
      <value value="https://esante.gouv.fr"/>
    </telecom>
  </contact>
  <description
               value="Mapping Observation laboratory resources to Measurement OMOP Domain"/>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="FR"/>
      <display value="France"/>
    </coding>
  </jurisdiction>
  <structure>
    <url
         value="https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/EDSObservationLaboratoryGeneric"/>
    <mode value="source"/>
    <alias value="LabObs"/>
  </structure>
  <structure>
    <url
         value="https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/LogicalBundle"/>
    <mode value="target"/>
    <alias value="LogicalBundle"/>
  </structure>
  <structure>
    <url
         value="https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/OMOPMeasurement"/>
    <mode value="target"/>
    <alias value="MeasurementTable"/>
  </structure>
  <import
          value="https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/SimpleObservation"/>
  <group>
    <name value="Observation"/>
    <typeMode value="none"/>
    <documentation
                   value="imports &quot;https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/ComplexMeasurement&quot;
imports &quot;https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/*Measurement&quot;"/>
    <input>
      <name value="src"/>
      <type value="LabObs"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgtBundle"/>
      <type value="LogicalBundle"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="setId"/>
      <source>
        <context value="src"/>
      </source>
      <target>
        <context value="tgtBundle"/>
        <contextType value="variable"/>
        <element value="id"/>
        <transform value="uuid"/>
      </target>
    </rule>
    <rule>
      <name value="setType"/>
      <source>
        <context value="src"/>
      </source>
      <target>
        <context value="tgtBundle"/>
        <contextType value="variable"/>
        <element value="type"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="transaction"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="newEntrySimpleObservation"/>
      <source>
        <context value="src"/>
        <condition
                   value="code.coding.code in ('14682-9' | '22664-7' | '77147-7')"/>
      </source>
      <target>
        <context value="tgtBundle"/>
        <contextType value="variable"/>
        <element value="entry"/>
        <variable value="newEntry"/>
      </target>
      <rule>
        <name value="createSimpleObservation"/>
        <source>
          <context value="src"/>
        </source>
        <target>
          <context value="newEntry"/>
          <contextType value="variable"/>
          <element value="measurement"/>
          <variable value="newMeasurement"/>
          <transform value="create"/>
          <parameter>
            <valueString value="MeasurementTable"/>
          </parameter>
        </target>
        <rule>
          <name value="transformSimpleObservation"/>
          <source>
            <context value="src"/>
          </source>
          <dependent>
            <name value="SimpleObservation"/>
            <variable value="src"/>
            <variable value="newMeasurement"/>
          </dependent>
        </rule>
      </rule>
    </rule>
  </group>
</StructureMap>