Data Management with FHIR 0.1.0 - ci-build

Data Management with FHIR - version de développement local (intégration continue v0.1.0) construite par les outils de publication FHIR (HL7® FHIR® Standard). Voir le répertoire des versions publiées

## : Cette ressource présente les spécifications de l''alignement entre la ressource `Patient` vers les tables correspodantes du CDM OMOP. - JSON Representation

Draft as of 2026-04-16

Raw json | Download

    {
      "resourceType" : "StructureMap",
      "id" : "CoreFHIRPatient2OMOP",
      "text" : {
        "status" : "generated",
        "div" : "<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\">\r\n<b>map</b><span style=\"color: navy\"> &quot;</span>https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreFHIRPatient2OMOP<span style=\"color: navy\">&quot; = &quot;</span>CoreFHIRPatient2OMOP<span style=\"color: navy\">&quot;\r\n\r\n</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>\r\n\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"http://hl7.org/fhir/R4/patient.html\" title=\"Patient\">http://hl7.org/fhir/StructureDefinition/Patient</a><span style=\"color: navy\">&quot; </span><b>alias </b>Patient <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span>https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/LogicalBundle<span style=\"color: navy\">&quot; </span><b>alias </b>LogicalBundle <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span>https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/OMOPPerson<span style=\"color: navy\">&quot; </span><b>alias </b>PersonTable <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span>https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/OMOPLocation<span style=\"color: navy\">&quot; </span><b>alias </b>LocationTable <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span>https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/OMOPDeath<span style=\"color: navy\">&quot; </span><b>alias </b>DeathTable <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> &quot;</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\">&quot;\r\n</span><b>imports</b><span style=\"color: navy\"> &quot;</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\">&quot;\r\n</span><b>imports</b><span style=\"color: navy\"> &quot;</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\">&quot;\r\n</span>\r\n<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> &lt;&lt;types&gt;&gt;</b><span style=\"color: navy\"> {\r\n</span>  src<span style=\"color: navy\"><b> -&gt; </b></span>tgtBundle.entry<b> as </b><span style=\"color: maroon\">newEntry</span><b> then</b><span style=\"color: navy\"> {\r\n</span>    src<span style=\"color: navy\"><b> -&gt; </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\"> {\r\n</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>&quot;transformPerson&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;createPerson&quot;</i><span style=\"color: navy\">;</span>\r\n    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> -&gt; </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\"> {\r\n</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>&quot;transformLocation&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;createLocation&quot;</i><span style=\"color: navy\">;</span>\r\n    src<b> where </b>deceased.is(System.DateTime) or deceased.is(System.Boolean)<span style=\"color: navy\"><b> -&gt; </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\"> {\r\n</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>&quot;transformDeath&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;createDeath&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;newEntry&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
      },
      "url" : "https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreFHIRPatient2OMOP",
      "version" : "0.1.0",
      "name" : "CoreFHIRPatient2OMOP",
      "title" : "Cette ressource présente les spécifications de l''alignement entre la ressource `Patient` vers les tables correspodantes du CDM OMOP.",
      "status" : "draft",
      "date" : "2026-04-16T14:35:38+00:00",
      "publisher" : "AP-HP",
      "contact" : [
        {
          "name" : "AP-HP",
          "telecom" : [
            {
              "system" : "url",
              "value" : "https://aphp.fr"
            }
          ]
        }
      ],
      "description" : "Cette ressource présente les spécifications de l''alignement entre la ressource `Patient` vers les tables correspodantes du CDM OMOP.",
      "jurisdiction" : [
        {
          "coding" : [
            {
              "system" : "urn:iso:std:iso:3166",
              "code" : "FR"
            }
          ]
        }
      ],
      "structure" : [
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/Patient",
          "mode" : "source",
          "alias" : "Patient"
        },
        {
          "url" : "https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/LogicalBundle",
          "mode" : "target",
          "alias" : "LogicalBundle"
        },
        {
          "url" : "https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/OMOPPerson",
          "mode" : "target",
          "alias" : "PersonTable"
        },
        {
          "url" : "https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/OMOPLocation",
          "mode" : "target",
          "alias" : "LocationTable"
        },
        {
          "url" : "https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/OMOPDeath",
          "mode" : "target",
          "alias" : "DeathTable"
        }
      ],
      "import" : [
        🔗 "https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreFHIR2OMOPPerson"🔗 ,
        "https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreFHIR2OMOPLocation"🔗 ,
        "https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreFHIR2OMOPDeath"
      ],
      "group" : [
        {
          "name" : "Patient",
          "typeMode" : "types",
          "input" : [
            {
              "name" : "src",
              "type" : "Patient",
              "mode" : "source"
            },
            {
              "name" : "tgtBundle",
              "type" : "LogicalBundle",
              "mode" : "target"
            }
          ],
          "rule" : [
            {
              "name" : "newEntry",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "tgtBundle",
                  "contextType" : "variable",
                  "element" : "entry",
                  "variable" : "newEntry"
                }
              ],
              "rule" : [
                {
                  "name" : "createPerson",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newEntry",
                      "contextType" : "variable",
                      "element" : "person",
                      "variable" : "newPerson",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "PersonTable"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "transformPerson",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "Person",
                          "variable" : [
                            "src",
                            "newPerson"
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "createLocation",
                  "source" : [
                    {
                      "context" : "src",
                      "element" : "address",
                      "variable" : "srcAddress",
                      "condition" : "(use = 'home') and period.end.empty()"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newEntry",
                      "contextType" : "variable",
                      "element" : "location",
                      "variable" : "newLocation",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "LocationTable"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "transformLocation",
                      "source" : [
                        {
                          "context" : "srcAddress"
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "Location",
                          "variable" : [
                            "srcAddress",
                            "newLocation"
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "createDeath",
                  "source" : [
                    {
                      "context" : "src",
                      "condition" : "deceased.is(System.DateTime) or deceased.is(System.Boolean)"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newEntry",
                      "contextType" : "variable",
                      "element" : "death",
                      "variable" : "newDeath",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "DeathTable"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "transformDeath",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "Death",
                          "variable" : [
                            "src",
                            "newDeath"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }