Guide d'implémentation du GT Standards et Interopérabilité pour les EDS
0.1.0 - ci-build
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
Draft as of 2024-11-23 |
<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"> "</span>https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/Patient<span style="color: navy">" = "</span>Patient<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.esante.gouv.fr/ig/fhir/eds/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.esante.gouv.fr/ig/fhir/eds/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.esante.gouv.fr/ig/fhir/eds/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.esante.gouv.fr/ig/fhir/eds/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-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">"
</span><b>imports</b><span style="color: navy"> "</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">"
</span><b>imports</b><span style="color: navy"> "</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">"
</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><span style="color: navy"> {
</span> src<span style="color: navy"><b> -> </b></span>tgtBundle.id = <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<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>
<span style="color: navy">}</span> <i>"newEntryPerson"</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>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> -> </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>
<span style="color: navy">}</span> <i>"newEntryLocation"</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>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.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>"newEntryDeath"</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 `Patient` vers les tables correspodantes du CDM OMOP."/>
<status value="draft"/>
<date value="2024-11-23T19:10:09+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 `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.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="Patient"/>
<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="srcAddress"/>
<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>