Data Management with FHIR
0.1.0 - ci-build
Data Management with FHIR - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
| Draft as of 2025-10-23 |
<StructureMap xmlns="http://hl7.org/fhir">
<id value="CoreFHIRPatient2OMOP"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Narratif généré : StructureMap CoreFHIRPatient2OMOP</b></p><a name="CoreFHIRPatient2OMOP"> </a><a name="hcCoreFHIRPatient2OMOP"> </a><pre class="fml">
<b>map</b><span style="color: navy"> "</span>https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreFHIRPatient2OMOP<span style="color: navy">" = "</span>CoreFHIRPatient2OMOP<span style="color: navy">"
</span><span style="color: navy">// </span><span style="color: green">Cette ressource présente les spécifications de l''alignement entre la ressource `Patient` vers les tables correspodantes du CDM OMOP.</span>
<b>uses</b><span style="color: navy"> "</span><a href="http://hl7.org/fhir/R4/patient.html" title="Patient">http://hl7.org/fhir/StructureDefinition/Patient</a><span style="color: navy">" </span><b>alias </b>Patient <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> "</span><a href="StructureDefinition-LogicalBundle.html" title="LogicalBundle">https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/LogicalBundle</a><span style="color: navy">" </span><b>alias </b>LogicalBundle <b>as </b><b>target</b>
<b>uses</b><span style="color: navy"> "</span><a href="StructureDefinition-OMOPPerson.html" title="Person OMOP Table">https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/OMOPPerson</a><span style="color: navy">" </span><b>alias </b>PersonTable <b>as </b><b>target</b>
<b>uses</b><span style="color: navy"> "</span><a href="StructureDefinition-OMOPLocation.html" title="Location OMOP Table">https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/OMOPLocation</a><span style="color: navy">" </span><b>alias </b>LocationTable <b>as </b><b>target</b>
<b>uses</b><span style="color: navy"> "</span><a href="StructureDefinition-OMOPDeath.html" title="Death OMOP Table">https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/OMOPDeath</a><span style="color: navy">" </span><b>alias </b>DeathTable <b>as </b><b>target</b>
<b>imports</b><span style="color: navy"> "</span><a href="StructureMap-CoreFHIR2OMOPPerson.html" title="Mapping FHIR Patient resource to OMOP Person">https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreFHIR2OMOPPerson</a><span style="color: navy">"
</span><b>imports</b><span style="color: navy"> "</span><a href="StructureMap-CoreFHIR2OMOPLocation.html" title="Mapping Patient resource to Location OMOP Domain">https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreFHIR2OMOPLocation</a><span style="color: navy">"
</span><b>imports</b><span style="color: navy"> "</span><a href="StructureMap-CoreFHIR2OMOPDeath.html" title="Mapping FHIR Patient resource to OMOP Death">https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreFHIR2OMOPDeath</a><span style="color: navy">"
</span>
<b>group </b>Patient<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>Patient, <b>target</b> <span style="color: maroon">tgtBundle</span><span style="color: navy"> : </span>LogicalBundle<span style="color: navy">)</span><b> <<types>></b><span style="color: navy"> {
</span> src<span style="color: navy"><b> -> </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> -> </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>"transformPerson"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"createPerson"</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> -> </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> srcAddress<b> then </b>Location<span style="color: navy">(</span><span style="color: maroon">srcAddress</span><span style="color: navy">, </span><span style="color: maroon">newLocation</span><span style="color: navy">)</span> <i>"transformLocation"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"createLocation"</i><span style="color: navy">;</span>
src<b> where </b>deceased.is(System.DateTime) or deceased.is(System.Boolean)<span style="color: navy"><b> -> </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>"transformDeath"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"createDeath"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"newEntry"</i><span style="color: navy">;</span>
<span style="color: navy">}
</span></pre></div>
</text>
<url
value="https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreFHIRPatient2OMOP"/>
<version value="0.1.0"/>
<name value="CoreFHIRPatient2OMOP"/>
<title
value="Cette ressource présente les spécifications de l''alignement entre la ressource `Patient` vers les tables correspodantes du CDM OMOP."/>
<status value="draft"/>
<date value="2025-10-23T20:49:03+00:00"/>
<publisher value="AP-HP"/>
<contact>
<name value="AP-HP"/>
<telecom>
<system value="url"/>
<value value="https://aphp.fr"/>
</telecom>
</contact>
<description
value="Cette ressource présente les spécifications de l''alignement entre la ressource `Patient` 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="http://hl7.org/fhir/StructureDefinition/Patient"/>
<mode value="source"/>
<alias value="Patient"/>
</structure>
<structure>
<url
value="https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/LogicalBundle"/>
<mode value="target"/>
<alias value="LogicalBundle"/>
</structure>
<structure>
<url
value="https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/OMOPPerson"/>
<mode value="target"/>
<alias value="PersonTable"/>
</structure>
<structure>
<url
value="https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/OMOPLocation"/>
<mode value="target"/>
<alias value="LocationTable"/>
</structure>
<structure>
<url
value="https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/OMOPDeath"/>
<mode value="target"/>
<alias value="DeathTable"/>
</structure>
<import
value="https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreFHIR2OMOPPerson"/>
<import
value="https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreFHIR2OMOPLocation"/>
<import
value="https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreFHIR2OMOPDeath"/>
<group>
<name value="Patient"/>
<typeMode value="types"/>
<input>
<name value="src"/>
<type value="Patient"/>
<mode value="source"/>
</input>
<input>
<name value="tgtBundle"/>
<type value="LogicalBundle"/>
<mode value="target"/>
</input>
<rule>
<name value="newEntry"/>
<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>
<name value="createLocation"/>
<source>
<context value="src"/>
<element value="address"/>
<variable value="srcAddress"/>
<condition value="(use = 'home') and period.end.empty()"/>
</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="srcAddress"/>
<variable value="newLocation"/>
</dependent>
</rule>
</rule>
<rule>
<name value="createDeath"/>
<source>
<context value="src"/>
<condition
value="deceased.is(System.DateTime) or deceased.is(System.Boolean)"/>
</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>