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 Patient resource to Death OMOP Domain - XML Representation

Draft as of 2024-09-10

Raw xml | Download



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

</span><span style="color: navy">// </span><span style="color: green">Mapping Patient resource to Death OMOP Domain</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-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>group </b>Death<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">tgt</span><span style="color: navy"> : </span>DeathTable<span style="color: navy">)</span><span style="color: navy"> {
</span>  src.deceased<span style="color: navy"> : </span>dateTime<b> as </b><span style="color: maroon">srcDeceased</span><b> then</b><span style="color: navy"> {
</span>    srcDeceased<span style="color: navy"><b> -&gt; </b></span>tgt.death_datetime = <span style="color: maroon">srcDeceased</span> <i>&quot;setDeathDT&quot;</i><span style="color: navy">;</span>
    srcDeceased<span style="color: navy"><b> -&gt; </b></span>tgt.death_date = <span style="color: navy">(</span>%srcDeceased.toString().substring(0, 10)<span style="color: navy">)</span> <i>&quot;setDeathD&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;SetDeathDate&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/Death"/>
  <version value="0.1.0"/>
  <name value="Death"/>
  <title value="Mapping Patient resource to Death 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 Patient resource to Death 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/EDSPatient"/>
    <mode value="source"/>
    <alias value="EDSPatient"/>
  </structure>
  <structure>
    <url
         value="https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/OMOPDeath"/>
    <mode value="target"/>
    <alias value="DeathTable"/>
  </structure>
  <group>
    <name value="Death"/>
    <typeMode value="none"/>
    <input>
      <name value="src"/>
      <type value="EDSPatient"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="DeathTable"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="SetDeathDate"/>
      <source>
        <context value="src"/>
        <type value="dateTime"/>
        <element value="deceased"/>
        <variable value="srcDeceased"/>
      </source>
      <rule>
        <name value="setDeathDT"/>
        <source>
          <context value="srcDeceased"/>
        </source>
        <target>
          <context value="tgt"/>
          <contextType value="variable"/>
          <element value="death_datetime"/>
          <transform value="copy"/>
          <parameter>
            <valueId value="srcDeceased"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="setDeathD"/>
        <source>
          <context value="srcDeceased"/>
        </source>
        <target>
          <context value="tgt"/>
          <contextType value="variable"/>
          <element value="death_date"/>
          <transform value="evaluate"/>
          <parameter>
            <valueString value="%srcDeceased.toString().substring(0, 10)"/>
          </parameter>
        </target>
      </rule>
    </rule>
  </group>
</StructureMap>