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-10-08 |
<StructureMap xmlns="http://hl7.org/fhir">
<id value="Person"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureMap Person</b></p><a name="Person"> </a><a name="hcPerson"> </a><a name="Person-fr-FR"> </a><pre class="fml">
<b>map</b><span style="color: navy"> "</span>https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/Person<span style="color: navy">" = "</span>Person<span style="color: navy">"
</span><span style="color: navy">// </span><span style="color: green">Mapping Patient resource to Person OMOP Domain</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-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>group </b>Person<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">tgt</span><span style="color: navy"> : </span>PersonTable<span style="color: navy">)</span><span style="color: navy"> {
</span> src.id<b> as </b><span style="color: maroon">srcId</span><span style="color: navy"><b> -> </b></span>tgt.person_source_value = <span style="color: maroon">srcId</span><span style="color: navy">;</span>
src.gender<b> as </b><span style="color: maroon">srcGender</span><b> then</b><span style="color: navy"> {
</span> srcGender<span style="color: navy"><b> -> </b></span>tgt.gender_concept_id = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Reference'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">tgtReference</span><b> then</b><span style="color: navy"> {
</span> srcGender<span style="color: navy"><b> -> </b></span> <b>translate</b><span style="color: navy">(</span><span style="color: maroon">srcGender</span><span style="color: navy">, </span><span style="color: blue">'https://interop.esante.gouv.fr/ig/fhir/eds/ConceptMap/Gender'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">genderCode</span><span style="color: navy">, </span> tgtReference.reference = <b>append</b><span style="color: navy">(</span><span style="color: blue">'Concept/'</span><span style="color: navy">, </span><span style="color: maroon">genderCode</span><span style="color: navy">)</span> <i>"ref"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"refConcept"</i><span style="color: navy">;</span>
srcGender<span style="color: navy"><b> -> </b></span>tgt.gender_source_value = <span style="color: maroon">srcGender</span> <i>"sourceGender"</i><span style="color: navy">;</span>
<span style="color: navy">}</span><span style="color: navy">;</span>
src.birthDate<b> as </b><span style="color: maroon">srcBirthDate</span><b> then</b><span style="color: navy"> {
</span> srcBirthDate<span style="color: navy"><b> -> </b></span>tgt.birth_datetime = <span style="color: maroon">srcBirthDate</span> <i>"dateTime"</i><span style="color: navy">;</span>
srcBirthDate<span style="color: navy"><b> -> </b></span>tgt.year_of_birth = <span style="color: navy">(</span>%srcBirthDate.toString().substring(0, 4).toInteger()<span style="color: navy">)</span> <i>"year"</i><span style="color: navy">;</span>
srcBirthDate<span style="color: navy"><b> -> </b></span>tgt.month_of_birth = <span style="color: navy">(</span>%srcBirthDate.toString().substring(5, 2).toInteger()<span style="color: navy">)</span> <i>"month"</i><span style="color: navy">;</span>
srcBirthDate<span style="color: navy"><b> -> </b></span>tgt.day_of_birth = <span style="color: navy">(</span>%srcBirthDate.toString().substring(8, 2).toInteger()<span style="color: navy">)</span> <i>"day"</i><span style="color: navy">;</span>
<span style="color: navy">}</span><span style="color: navy">;</span>
<span style="color: navy">}
</span></pre></div>
</text>
<url
value="https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/Person"/>
<version value="0.1.0"/>
<name value="Person"/>
<title value="Mapping Patient resource to Person OMOP Domain"/>
<status value="draft"/>
<date value="2024-10-08T09:22:03+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 Person OMOP Domain"/>
<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/OMOPPerson"/>
<mode value="target"/>
<alias value="PersonTable"/>
</structure>
<group>
<name value="Person"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<type value="Patient"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="PersonTable"/>
<mode value="target"/>
</input>
<rule>
<name value="id"/>
<source>
<context value="src"/>
<element value="id"/>
<variable value="srcId"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="person_source_value"/>
<transform value="copy"/>
<parameter>
<valueId value="srcId"/>
</parameter>
</target>
</rule>
<rule>
<name value="gender"/>
<source>
<context value="src"/>
<element value="gender"/>
<variable value="srcGender"/>
</source>
<rule>
<name value="refConcept"/>
<source>
<context value="srcGender"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="gender_concept_id"/>
<variable value="tgtReference"/>
<transform value="create"/>
<parameter>
<valueString value="Reference"/>
</parameter>
</target>
<rule>
<name value="ref"/>
<source>
<context value="srcGender"/>
</source>
<target>
<contextType value="variable"/>
<variable value="genderCode"/>
<transform value="translate"/>
<parameter>
<valueId value="srcGender"/>
</parameter>
<parameter>
<valueString
value="https://interop.esante.gouv.fr/ig/fhir/eds/ConceptMap/Gender"/>
</parameter>
<parameter>
<valueString value="code"/>
</parameter>
</target>
<target>
<context value="tgtReference"/>
<contextType value="variable"/>
<element value="reference"/>
<transform value="append"/>
<parameter>
<valueString value="Concept/"/>
</parameter>
<parameter>
<valueId value="genderCode"/>
</parameter>
</target>
</rule>
</rule>
<rule>
<name value="sourceGender"/>
<source>
<context value="srcGender"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="gender_source_value"/>
<transform value="copy"/>
<parameter>
<valueId value="srcGender"/>
</parameter>
</target>
</rule>
</rule>
<rule>
<name value="birthDate"/>
<source>
<context value="src"/>
<element value="birthDate"/>
<variable value="srcBirthDate"/>
</source>
<rule>
<name value="dateTime"/>
<source>
<context value="srcBirthDate"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="birth_datetime"/>
<transform value="copy"/>
<parameter>
<valueId value="srcBirthDate"/>
</parameter>
</target>
</rule>
<rule>
<name value="year"/>
<source>
<context value="srcBirthDate"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="year_of_birth"/>
<transform value="evaluate"/>
<parameter>
<valueString
value="%srcBirthDate.toString().substring(0, 4).toInteger()"/>
</parameter>
</target>
</rule>
<rule>
<name value="month"/>
<source>
<context value="srcBirthDate"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="month_of_birth"/>
<transform value="evaluate"/>
<parameter>
<valueString
value="%srcBirthDate.toString().substring(5, 2).toInteger()"/>
</parameter>
</target>
</rule>
<rule>
<name value="day"/>
<source>
<context value="srcBirthDate"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="day_of_birth"/>
<transform value="evaluate"/>
<parameter>
<valueString
value="%srcBirthDate.toString().substring(8, 2).toInteger()"/>
</parameter>
</target>
</rule>
</rule>
</group>
</StructureMap>