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="CoreFHIR2OMOP"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Narratif généré : StructureMap CoreFHIR2OMOP</b></p><a name="CoreFHIR2OMOP"> </a><a name="hcCoreFHIR2OMOP"> </a><pre class="fml">
<b>map</b><span style="color: navy"> "</span>https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreFHIR2OMOP<span style="color: navy">" = "</span>CoreFHIR2OMOP<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 les ressources FHIR vers les tables correspodantes du CDM OMOP.</span>
<b>uses</b><span style="color: navy"> "</span><a href="http://hl7.org/fhir/R4/bundle.html" title="Bundle">http://hl7.org/fhir/StructureDefinition/Bundle</a><span style="color: navy">" </span><b>alias </b>Bundle <b>as </b><b>source</b>
<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>imports</b><span style="color: navy"> "</span><a href="StructureMap-CoreFHIRPatient2OMOP.html" title="Cette ressource présente les spécifications de l''alignement entre la ressource `Patient` vers les tables correspodantes du CDM OMOP.">https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreFHIRPatient2OMOP</a><span style="color: navy">"
</span>
<b>group </b>Bundle<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>Bundle, <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.logicalId = <b>uuid</b><span style="color: navy">(</span><span style="color: navy">)</span> <i>"setId"</i><span style="color: navy">;</span>
src<span style="color: navy"><b> -> </b></span>tgtBundle.type = <span style="color: blue">'transaction'</span> <i>"setType"</i><span style="color: navy">;</span>
src.entry<b> as </b><span style="color: maroon">srcEntry</span><b> where </b>srcEntry.resource.is(FHIR.Patient)<b> then</b><span style="color: navy"> {
</span> srcEntry.resource<b> as </b><span style="color: maroon">srcResource</span><span style="color: navy"><b> -> </b></span><span style="color: navy">(</span>%srcResource.as(FHIR.Patient)<span style="color: navy">)</span><b> as </b><span style="color: maroon">srcPatient</span><b> then </b>Patient<span style="color: navy">(</span><span style="color: maroon">srcPatient</span><span style="color: navy">, </span><span style="color: maroon">tgtBundle</span><span style="color: navy">)</span> <i>"addPatient"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"entryLoop4Patient"</i><span style="color: navy">;</span>
<span style="color: navy">}
</span></pre></div>
</text>
<url value="https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreFHIR2OMOP"/>
<version value="0.1.0"/>
<name value="CoreFHIR2OMOP"/>
<title
value="Cette ressource présente les spécifications de l''alignement entre les ressources FHIR 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 les ressources FHIR 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/Bundle"/>
<mode value="source"/>
<alias value="Bundle"/>
</structure>
<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>
<import
value="https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreFHIRPatient2OMOP"/>
<group>
<name value="Bundle"/>
<typeMode value="types"/>
<input>
<name value="src"/>
<type value="Bundle"/>
<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="logicalId"/>
<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="entryLoop4Patient"/>
<source>
<context value="src"/>
<element value="entry"/>
<variable value="srcEntry"/>
<condition value="srcEntry.resource.is(FHIR.Patient)"/>
</source>
<rule>
<name value="addPatient"/>
<source>
<context value="srcEntry"/>
<element value="resource"/>
<variable value="srcResource"/>
</source>
<target>
<contextType value="variable"/>
<variable value="srcPatient"/>
<transform value="evaluate"/>
<parameter>
<valueString value="%srcResource.as(FHIR.Patient)"/>
</parameter>
</target>
<dependent>
<name value="Patient"/>
<variable value="srcPatient"/>
<variable value="tgtBundle"/>
</dependent>
</rule>
</rule>
</group>
</StructureMap>