Guide d'implémentation du GT Standards et Interopérabilité pour les EDS
0.1.0 - ci-build France flag

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

: Mapping Patient resource to Death OMOP Domain - JSON Representation

Draft as of 2024-11-23

Raw json | Download

{
  "resourceType" : "StructureMap",
  "id" : "Death",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap Death</b></p><a name=\"Death\"> </a><a name=\"hcDeath\"> </a><a name=\"Death-fr-FR\"> </a><pre class=\"fml\">\r\n<b>map</b><span style=\"color: navy\"> &quot;</span>https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/Death<span style=\"color: navy\">&quot; = &quot;</span>Death<span style=\"color: navy\">&quot;\r\n\r\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Mapping Patient resource to Death OMOP Domain</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><a href=\"StructureDefinition-OMOPDeath.html\" title=\"Death OMOP Table\">https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/OMOPDeath</a><span style=\"color: navy\">&quot; </span><b>alias </b>DeathTable <b>as </b><b>target</b>\r\n\r\n<b>group </b>Death<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>DeathTable<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span>  src.deceased<span style=\"color: navy\"> : </span>dateTime<b> as </b><span style=\"color: maroon\">srcDeceased</span><b> then</b><span style=\"color: navy\"> {\r\n</span>    srcDeceased<span style=\"color: navy\"><b> -&gt; </b></span>tgt.death_datetime = <span style=\"color: maroon\">srcDeceased</span> <i>&quot;setDeathDT&quot;</i><span style=\"color: navy\">;</span>\r\n    srcDeceased<span style=\"color: navy\"><b> -&gt; </b></span>tgt.death_date = <span style=\"color: navy\">(</span>%srcDeceased.toString().substring(0, 10)<span style=\"color: navy\">)</span> <i>&quot;setDeathD&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;SetDeathDate&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
  },
  "url" : "https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/Death",
  "version" : "0.1.0",
  "name" : "Death",
  "title" : "Mapping Patient resource to Death OMOP Domain",
  "status" : "draft",
  "date" : "2024-11-23T19:10:09+00:00",
  "publisher" : "ANS",
  "contact" : [
    {
      "name" : "ANS",
      "telecom" : [
        {
          "system" : "url",
          "value" : "https://esante.gouv.fr"
        }
      ]
    }
  ],
  "description" : "Mapping Patient resource to Death OMOP Domain",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "urn:iso:std:iso:3166",
          "code" : "FR",
          "display" : "France"
        }
      ]
    }
  ],
  "structure" : [
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/Patient",
      "mode" : "source",
      "alias" : "Patient"
    },
    {
      "url" : "https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/OMOPDeath",
      "mode" : "target",
      "alias" : "DeathTable"
    }
  ],
  "group" : [
    {
      "name" : "Death",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "type" : "Patient",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "type" : "DeathTable",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "SetDeathDate",
          "source" : [
            {
              "context" : "src",
              "type" : "dateTime",
              "element" : "deceased",
              "variable" : "srcDeceased"
            }
          ],
          "rule" : [
            {
              "name" : "setDeathDT",
              "source" : [
                {
                  "context" : "srcDeceased"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "contextType" : "variable",
                  "element" : "death_datetime",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueId" : "srcDeceased"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "setDeathD",
              "source" : [
                {
                  "context" : "srcDeceased"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "contextType" : "variable",
                  "element" : "death_date",
                  "transform" : "evaluate",
                  "parameter" : [
                    {
                      "valueString" : "%srcDeceased.toString().substring(0, 10)"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}