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

: FHIR EDS Patient to Tables CDM OMOP - XML Representation

Draft as of 2024-09-10

Raw xml | Download



<StructureMap xmlns="http://hl7.org/fhir">
  <id value="Patient"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureMap Patient</b></p><a name="Patient"> </a><a name="hcPatient"> </a><a name="Patient-fr-FR"> </a><pre class="fml">
<b>map</b><span style="color: navy"> &quot;</span>https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/Patient<span style="color: navy">&quot; = &quot;</span>Patient<span style="color: navy">&quot;

</span><span style="color: navy">// </span><span style="color: green">Cette ressource présente les spécifications de l''alignement entre la ressource `EDSPatient` vers les tables correspodantes du CDM OMOP.</span>

<b>uses</b><span style="color: navy"> &quot;</span><a href="StructureDefinition-EDSPatient.html" title="Patient">https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/EDSPatient</a><span style="color: navy">&quot; </span><b>alias </b>EDSPatient <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-OMOPPerson.html" title="Person OMOP Table">https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/OMOPPerson</a><span style="color: navy">&quot; </span><b>alias </b>PersonTable <b>as </b><b>target</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="StructureDefinition-OMOPLocation.html" title="Location OMOP Table">https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/OMOPLocation</a><span style="color: navy">&quot; </span><b>alias </b>LocationTable <b>as </b><b>target</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="StructureDefinition-OMOPDeath.html" title="Death OMOP Table">https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/OMOPDeath</a><span style="color: navy">&quot; </span><b>alias </b>DeathTable <b>as </b><b>target</b>

<b>imports</b><span style="color: navy"> &quot;</span><a href="StructureMap-Person.html" title="Mapping Patient resource to Person OMOP Domain">https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/Person</a><span style="color: navy">&quot;
</span><b>imports</b><span style="color: navy"> &quot;</span><a href="StructureMap-Location.html" title="Mapping Patient resource to Location OMOP Domain">https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/Location</a><span style="color: navy">&quot;
</span><b>imports</b><span style="color: navy"> &quot;</span><a href="StructureMap-Death.html" title="Mapping Patient resource to Death OMOP Domain">https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/Death</a><span style="color: navy">&quot;
</span>
<b>group </b>Patient<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>EDSPatient, <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<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.person = <b>create</b><span style="color: navy">(</span><span style="color: blue">'PersonTable'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">newPerson</span><b> then</b><span style="color: navy"> {
</span>      src<b> then </b>Person<span style="color: navy">(</span><span style="color: maroon">src</span><span style="color: navy">, </span><span style="color: maroon">newPerson</span><span style="color: navy">)</span> <i>&quot;transformPerson&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}</span> <i>&quot;createPerson&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;newEntryPerson&quot;</i><span style="color: navy">;</span>
  src.address<b> as </b><span style="color: maroon">srcAddress</span><b> where </b>(use = 'home') and period.end.empty()<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>    srcAddress<span style="color: navy"><b> -&gt; </b></span>newEntry.location = <b>create</b><span style="color: navy">(</span><span style="color: blue">'LocationTable'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">newLocation</span><b> then</b><span style="color: navy"> {
</span>      <span style="color: navy">// </span><span style="color: green">srcAddress then MultiLocation(srcAddress, newLocation) &quot;transformLocation&quot;;</span>
      srcAddress<b> then </b>Location<span style="color: navy">(</span><span style="color: maroon">src</span><span style="color: navy">, </span><span style="color: maroon">newLocation</span><span style="color: navy">)</span> <i>&quot;transformLocation&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}</span> <i>&quot;createLocation&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;newEntryLocation&quot;</i><span style="color: navy">;</span>
  src<b> where </b>deceased.is(System.DateTime) or deceased.is(System.Boolean)<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.death = <b>create</b><span style="color: navy">(</span><span style="color: blue">'DeathTable'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">newDeath</span><b> then</b><span style="color: navy"> {
</span>      src<b> then </b>Death<span style="color: navy">(</span><span style="color: maroon">src</span><span style="color: navy">, </span><span style="color: maroon">newDeath</span><span style="color: navy">)</span> <i>&quot;transformDeath&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}</span> <i>&quot;createDeath&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;newEntryDeath&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <url
       value="https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/Patient"/>
  <version value="0.1.0"/>
  <name value="Patient"/>
  <title
         value="Cette ressource présente les spécifications de l''alignement entre la ressource `EDSPatient` vers les tables correspodantes du CDM OMOP."/>
  <status value="draft"/>
  <date value="2024-09-10T07:13:57+00:00"/>
  <publisher value="ANS"/>
  <contact>
    <name value="ANS"/>
    <telecom>
      <system value="url"/>
      <value value="https://esante.gouv.fr"/>
    </telecom>
  </contact>
  <description
               value="Cette ressource présente les spécifications de l''alignement entre la ressource `EDSPatient` vers les tables correspodantes du CDM OMOP."/>
  <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/EDSPatient"/>
    <mode value="source"/>
    <alias value="EDSPatient"/>
  </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/OMOPPerson"/>
    <mode value="target"/>
    <alias value="PersonTable"/>
  </structure>
  <structure>
    <url
         value="https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/OMOPLocation"/>
    <mode value="target"/>
    <alias value="LocationTable"/>
  </structure>
  <structure>
    <url
         value="https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/OMOPDeath"/>
    <mode value="target"/>
    <alias value="DeathTable"/>
  </structure>
  <import
          value="https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/Person"/>
  <import
          value="https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/Location"/>
  <import
          value="https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/Death"/>
  <group>
    <name value="Patient"/>
    <typeMode value="none"/>
    <input>
      <name value="src"/>
      <type value="EDSPatient"/>
      <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="newEntryPerson"/>
      <source>
        <context value="src"/>
      </source>
      <target>
        <context value="tgtBundle"/>
        <contextType value="variable"/>
        <element value="entry"/>
        <variable value="newEntry"/>
      </target>
      <rule>
        <name value="createPerson"/>
        <source>
          <context value="src"/>
        </source>
        <target>
          <context value="newEntry"/>
          <contextType value="variable"/>
          <element value="person"/>
          <variable value="newPerson"/>
          <transform value="create"/>
          <parameter>
            <valueString value="PersonTable"/>
          </parameter>
        </target>
        <rule>
          <name value="transformPerson"/>
          <source>
            <context value="src"/>
          </source>
          <dependent>
            <name value="Person"/>
            <variable value="src"/>
            <variable value="newPerson"/>
          </dependent>
        </rule>
      </rule>
    </rule>
    <rule>
      <name value="newEntryLocation"/>
      <source>
        <context value="src"/>
        <element value="address"/>
        <variable value="srcAddress"/>
        <condition value="(use = 'home') and period.end.empty()"/>
      </source>
      <target>
        <context value="tgtBundle"/>
        <contextType value="variable"/>
        <element value="entry"/>
        <variable value="newEntry"/>
      </target>
      <rule>
        <name value="createLocation"/>
        <source>
          <context value="srcAddress"/>
        </source>
        <target>
          <context value="newEntry"/>
          <contextType value="variable"/>
          <element value="location"/>
          <variable value="newLocation"/>
          <transform value="create"/>
          <parameter>
            <valueString value="LocationTable"/>
          </parameter>
        </target>
        <rule>
          <name value="transformLocation"/>
          <source>
            <context value="srcAddress"/>
          </source>
          <dependent>
            <name value="Location"/>
            <variable value="src"/>
            <variable value="newLocation"/>
          </dependent>
        </rule>
      </rule>
    </rule>
    <rule>
      <name value="newEntryDeath"/>
      <source>
        <context value="src"/>
        <condition
                   value="deceased.is(System.DateTime) or deceased.is(System.Boolean)"/>
      </source>
      <target>
        <context value="tgtBundle"/>
        <contextType value="variable"/>
        <element value="entry"/>
        <variable value="newEntry"/>
      </target>
      <rule>
        <name value="createDeath"/>
        <source>
          <context value="src"/>
        </source>
        <target>
          <context value="newEntry"/>
          <contextType value="variable"/>
          <element value="death"/>
          <variable value="newDeath"/>
          <transform value="create"/>
          <parameter>
            <valueString value="DeathTable"/>
          </parameter>
        </target>
        <rule>
          <name value="transformDeath"/>
          <source>
            <context value="src"/>
          </source>
          <dependent>
            <name value="Death"/>
            <variable value="src"/>
            <variable value="newDeath"/>
          </dependent>
        </rule>
      </rule>
    </rule>
  </group>
</StructureMap>