TIFlow - Datenaustausch BfArM Webdienst
Version 2.0.0-ballot.1 - ci-build

## : E-T-Rezept Structure Map for Medication - JSON Representation

Draft as of 2026-05-26

Raw json | Download

    {
      "resourceType" : "StructureMap",
      "id" : "ERPTPrescriptionStructureMapGEMMedication",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap ERPTPrescriptionStructureMapGEMMedication</b></p><a name=\"ERPTPrescriptionStructureMapGEMMedication\"> </a><a name=\"hcERPTPrescriptionStructureMapGEMMedication\"> </a><pre class=\"fml\">\r\n<b>map</b><span style=\"color: navy\"> &quot;</span>https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapGEMMedication<span style=\"color: navy\">&quot; = &quot;</span>ERPTPrescriptionStructureMapGEMMedication<span style=\"color: navy\">&quot;\r\n\r\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Maps GEM ERP Medication to BfArM T-Prescription Medication format</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"http://hl7.org/fhir/R4/medication.html\" title=\"Medication\">http://hl7.org/fhir/StructureDefinition/Medication</a><span style=\"color: navy\">&quot; </span><b>alias </b>gematikMedication <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"http://hl7.org/fhir/R4/medication.html\" title=\"Medication\">http://hl7.org/fhir/StructureDefinition/Medication</a><span style=\"color: navy\">&quot; </span><b>alias </b>bfarmMedication <b>as </b><b>target</b>\r\n\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">Mapping-Anweisungen zur Transformation von gematik ERP-Medikamenten zu BfArM T-Prescription Format</span>\r\n<b>group </b>ERPTPrescriptionStructureMapGEMMedication<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">gematikMedication</span><span style=\"color: navy\"> : </span>gematikMedication, <b>target</b> <span style=\"color: maroon\">bfarmMedication</span><span style=\"color: navy\"> : </span>bfarmMedication<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span>  gematikMedication.id<b> as </b><span style=\"color: maroon\">IdVar</span><span style=\"color: navy\"><b> -&gt; </b></span>bfarmMedication.id = <span style=\"color: maroon\">IdVar</span> <i>&quot;medicationId&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Übernimmt die eindeutige Medication-ID unverändert</span>\r\n  gematikMedication.contained<b> as </b><span style=\"color: maroon\">ContainedVar</span><span style=\"color: navy\"><b> -&gt; </b></span>bfarmMedication.contained = <span style=\"color: maroon\">ContainedVar</span> <i>&quot;mapContainedRessources&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Kopiert eingebettete Ressourcen (z.B. referenzierte Medications oder Organizations)</span>\r\n  gematikMedication.extension<b> as </b><span style=\"color: maroon\">extVar</span><span style=\"color: navy\"><b> -&gt; </b></span>bfarmMedication.extension<b> as </b><span style=\"color: maroon\">tgtExtVar</span><b> then</b><span style=\"color: navy\"> {\r\n</span>    extVar<b> where </b>url='http://fhir.de/StructureDefinition/normgroesse'<span style=\"color: navy\"><b> -&gt; </b></span>tgtExtVar.url = <span style=\"color: blue\">'http://fhir.de/StructureDefinition/normgroesse'</span><b> then</b><span style=\"color: navy\"> {\r\n</span>      extVar.value<b> as </b><span style=\"color: maroon\">extValVar</span><span style=\"color: navy\"><b> -&gt; </b></span>tgtExtVar.value = <span style=\"color: maroon\">extValVar</span> <i>&quot;copyExtensionValue&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Kopiert den Wert der Normgröße-Extension</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;copyNormgroesseExtensionUrl&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Übernimmt die Normgröße-Extension unverändert (deutsche Packungsgrößenangabe N1, N2, N3)</span>\r\n    extVar<b> where </b>url='https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension'<span style=\"color: navy\"><b> -&gt; </b></span>tgtExtVar.url = <span style=\"color: blue\">'https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension'</span><b> then</b><span style=\"color: navy\"> {\r\n</span>      extVar.value<b> as </b><span style=\"color: maroon\">extValVar</span><span style=\"color: navy\"><b> -&gt; </b></span>tgtExtVar.value = <span style=\"color: maroon\">extValVar</span> <i>&quot;copyExtensionValue&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Kopiert den Wert der Verpackungs-Extension</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;copyPackagingExtensionUrl&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Übernimmt die gematik-Verpackungs-Extension für Formulierungen</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;medicationExtension&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Mappt gematik-spezifische Medication-Extensions zu BfArM-Format</span>\r\n  gematikMedication.code<b> as </b><span style=\"color: maroon\">codeVar</span><span style=\"color: navy\"><b> -&gt; </b></span>bfarmMedication.code = <span style=\"color: maroon\">codeVar</span> <i>&quot;medicationCode&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Kopiert den Medikamentencode (PZN oder andere Identifikation) des abgegebenen Arzneimittels</span>\r\n  gematikMedication.form<b> as </b><span style=\"color: maroon\">formVar</span><span style=\"color: navy\"><b> -&gt; </b></span>bfarmMedication.form = <span style=\"color: maroon\">formVar</span> <i>&quot;medicationForm&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Übernimmt die Darreichungsform des tatsächlich abgegebenen Arzneimittels</span>\r\n  gematikMedication.amount<b> as </b><span style=\"color: maroon\">amountVar</span><span style=\"color: navy\"><b> -&gt; </b></span>bfarmMedication.amount = <span style=\"color: maroon\">amountVar</span> <i>&quot;medicationAmount&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Kopiert die Mengenangaben des abgegebenen Arzneimittels (tatsächlich ausgehändigte Menge)</span>\r\n  gematikMedication.ingredient<b> as </b><span style=\"color: maroon\">ingredientVar</span><span style=\"color: navy\"><b> -&gt; </b></span>bfarmMedication.ingredient = <span style=\"color: maroon\">ingredientVar</span> <i>&quot;medicationIngredient&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Übernimmt Wirkstoffinformationen des abgegebenen Arzneimittels (falls vorhanden)</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
      },
      "url" : "https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapGEMMedication",
      "version" : "2.0.0-ballot.1",
      "name" : "ERPTPrescriptionStructureMapGEMMedication",
      "title" : "E-T-Rezept Structure Map for Medication",
      "status" : "draft",
      "experimental" : false,
      "date" : "2026-05-26",
      "publisher" : "gematik GmbH",
      "contact" : [
        {
          "name" : "gematik GmbH",
          "telecom" : [
            {
              "system" : "url",
              "value" : "https://gematik.de"
            },
            {
              "system" : "email",
              "value" : "erp-umsetzung@gematik.de"
            }
          ]
        }
      ],
      "description" : "Maps GEM ERP Medication to BfArM T-Prescription Medication format",
      "jurisdiction" : [
        {
          "coding" : [
            {
              "system" : "urn:iso:std:iso:3166",
              "code" : "DE",
              "display" : "Germany"
            }
          ]
        }
      ],
      "structure" : [
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/Medication",
          "mode" : "source",
          "alias" : "gematikMedication"
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/Medication",
          "mode" : "target",
          "alias" : "bfarmMedication"
        }
      ],
      "group" : [
        {
          "name" : "ERPTPrescriptionStructureMapGEMMedication",
          "typeMode" : "none",
          "documentation" : "Mapping-Anweisungen zur Transformation von gematik ERP-Medikamenten zu BfArM T-Prescription Format",
          "input" : [
            {
              "name" : "gematikMedication",
              "type" : "gematikMedication",
              "mode" : "source"
            },
            {
              "name" : "bfarmMedication",
              "type" : "bfarmMedication",
              "mode" : "target"
            }
          ],
          "rule" : [
            {
              "name" : "medicationId",
              "source" : [
                {
                  "context" : "gematikMedication",
                  "element" : "id",
                  "variable" : "IdVar"
                }
              ],
              "target" : [
                {
                  "context" : "bfarmMedication",
                  "contextType" : "variable",
                  "element" : "id",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueId" : "IdVar"
                    }
                  ]
                }
              ],
              "documentation" : "Übernimmt die eindeutige Medication-ID unverändert"
            },
            {
              "name" : "mapContainedRessources",
              "source" : [
                {
                  "context" : "gematikMedication",
                  "element" : "contained",
                  "variable" : "ContainedVar"
                }
              ],
              "target" : [
                {
                  "context" : "bfarmMedication",
                  "contextType" : "variable",
                  "element" : "contained",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueId" : "ContainedVar"
                    }
                  ]
                }
              ],
              "documentation" : "Kopiert eingebettete Ressourcen (z.B. referenzierte Medications oder Organizations)"
            },
            {
              "name" : "medicationExtension",
              "source" : [
                {
                  "context" : "gematikMedication",
                  "element" : "extension",
                  "variable" : "extVar"
                }
              ],
              "target" : [
                {
                  "context" : "bfarmMedication",
                  "contextType" : "variable",
                  "element" : "extension",
                  "variable" : "tgtExtVar"
                }
              ],
              "rule" : [
                {
                  "name" : "copyNormgroesseExtensionUrl",
                  "source" : [
                    {
                      "context" : "extVar",
                      "condition" : "url='http://fhir.de/StructureDefinition/normgroesse'"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgtExtVar",
                      "contextType" : "variable",
                      "element" : "url",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://fhir.de/StructureDefinition/normgroesse"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "copyExtensionValue",
                      "source" : [
                        {
                          "context" : "extVar",
                          "element" : "value",
                          "variable" : "extValVar"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgtExtVar",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "extValVar"
                            }
                          ]
                        }
                      ],
                      "documentation" : "Kopiert den Wert der Normgröße-Extension"
                    }
                  ],
                  "documentation" : "Übernimmt die Normgröße-Extension unverändert (deutsche Packungsgrößenangabe N1, N2, N3)"
                },
                {
                  "name" : "copyPackagingExtensionUrl",
                  "source" : [
                    {
                      "context" : "extVar",
                      "condition" : "url='https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension'"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgtExtVar",
                      "contextType" : "variable",
                      "element" : "url",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "copyExtensionValue",
                      "source" : [
                        {
                          "context" : "extVar",
                          "element" : "value",
                          "variable" : "extValVar"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgtExtVar",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "extValVar"
                            }
                          ]
                        }
                      ],
                      "documentation" : "Kopiert den Wert der Verpackungs-Extension"
                    }
                  ],
                  "documentation" : "Übernimmt die gematik-Verpackungs-Extension für Formulierungen"
                }
              ],
              "documentation" : "Mappt gematik-spezifische Medication-Extensions zu BfArM-Format"
            },
            {
              "name" : "medicationCode",
              "source" : [
                {
                  "context" : "gematikMedication",
                  "element" : "code",
                  "variable" : "codeVar"
                }
              ],
              "target" : [
                {
                  "context" : "bfarmMedication",
                  "contextType" : "variable",
                  "element" : "code",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueId" : "codeVar"
                    }
                  ]
                }
              ],
              "documentation" : "Kopiert den Medikamentencode (PZN oder andere Identifikation) des abgegebenen Arzneimittels"
            },
            {
              "name" : "medicationForm",
              "source" : [
                {
                  "context" : "gematikMedication",
                  "element" : "form",
                  "variable" : "formVar"
                }
              ],
              "target" : [
                {
                  "context" : "bfarmMedication",
                  "contextType" : "variable",
                  "element" : "form",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueId" : "formVar"
                    }
                  ]
                }
              ],
              "documentation" : "Übernimmt die Darreichungsform des tatsächlich abgegebenen Arzneimittels"
            },
            {
              "name" : "medicationAmount",
              "source" : [
                {
                  "context" : "gematikMedication",
                  "element" : "amount",
                  "variable" : "amountVar"
                }
              ],
              "target" : [
                {
                  "context" : "bfarmMedication",
                  "contextType" : "variable",
                  "element" : "amount",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueId" : "amountVar"
                    }
                  ]
                }
              ],
              "documentation" : "Kopiert die Mengenangaben des abgegebenen Arzneimittels (tatsächlich ausgehändigte Menge)"
            },
            {
              "name" : "medicationIngredient",
              "source" : [
                {
                  "context" : "gematikMedication",
                  "element" : "ingredient",
                  "variable" : "ingredientVar"
                }
              ],
              "target" : [
                {
                  "context" : "bfarmMedication",
                  "contextType" : "variable",
                  "element" : "ingredient",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueId" : "ingredientVar"
                    }
                  ]
                }
              ],
              "documentation" : "Übernimmt Wirkstoffinformationen des abgegebenen Arzneimittels (falls vorhanden)"
            }
          ]
        }
      ]
    }