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

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

Draft as of 2026-05-26

Raw json | Download

    {
      "resourceType" : "StructureMap",
      "id" : "ERPTPrescriptionStructureMapKBVFreeTextMedication",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap ERPTPrescriptionStructureMapKBVFreeTextMedication</b></p><a name=\"ERPTPrescriptionStructureMapKBVFreeTextMedication\"> </a><a name=\"hcERPTPrescriptionStructureMapKBVFreeTextMedication\"> </a><pre class=\"fml\">\r\n<b>map</b><span style=\"color: navy\"> &quot;</span>https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapKBVFreeTextMedication<span style=\"color: navy\">&quot; = &quot;</span>ERPTPrescriptionStructureMapKBVFreeTextMedication<span style=\"color: navy\">&quot;\r\n\r\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Maps KBV FreeText 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>kbvMedicationFreeText <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 KBV Freitext-Medikamenten zu BfArM T-Prescription Format</span>\r\n<b>group </b>ERPTPrescriptionStructureMapKBVFreeTextMedication<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">kbvMedicationFreeText</span><span style=\"color: navy\"> : </span>kbvMedicationFreeText, <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>  kbvMedicationFreeText.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  kbvMedicationFreeText.code<b> as </b><span style=\"color: maroon\">srcCodeVar</span><span style=\"color: navy\"><b> -&gt; </b></span>bfarmMedication.code<b> as </b><span style=\"color: maroon\">tgtCodeVar</span><b> then</b><span style=\"color: navy\"> {\r\n</span>    srcCodeVar.text<b> as </b><span style=\"color: maroon\">srcCodeTextVar</span><span style=\"color: navy\"><b> -&gt; </b></span>tgtCodeVar.text = <span style=\"color: maroon\">srcCodeTextVar</span> <i>&quot;medicationCodeText&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Kopiert die Freitext-Bezeichnung des Medikaments (z.B. 'Aspirin 500mg Tabletten')</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;medicationCode&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Mappt den Medikamentencode mit Freitext-Beschreibung</span>\r\n  kbvMedicationFreeText.form<b> as </b><span style=\"color: maroon\">srcFormVar</span><span style=\"color: navy\"><b> -&gt; </b></span>bfarmMedication.form<b> as </b><span style=\"color: maroon\">tgtFormVar</span><b> then</b><span style=\"color: navy\"> {\r\n</span>    srcFormVar.text<b> as </b><span style=\"color: maroon\">srcformTextVar</span><span style=\"color: navy\"><b> -&gt; </b></span>tgtFormVar.text = <span style=\"color: maroon\">srcformTextVar</span> <i>&quot;medicationFormText&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Übernimmt die Freitext-Darreichungsform (z.B. 'Tabletten', 'Tropfen zum Einnehmen')</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;medicationForm&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Mappt die Darreichungsform als Freitext</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
      },
      "url" : "https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapKBVFreeTextMedication",
      "version" : "2.0.0-ballot.1",
      "name" : "ERPTPrescriptionStructureMapKBVFreeTextMedication",
      "title" : "E-T-Rezept Structure Map for KBV FreeText 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 KBV FreeText 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" : "kbvMedicationFreeText"
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/Medication",
          "mode" : "target",
          "alias" : "bfarmMedication"
        }
      ],
      "group" : [
        {
          "name" : "ERPTPrescriptionStructureMapKBVFreeTextMedication",
          "typeMode" : "none",
          "documentation" : "Mapping-Anweisungen zur Transformation von KBV Freitext-Medikamenten zu BfArM T-Prescription Format",
          "input" : [
            {
              "name" : "kbvMedicationFreeText",
              "type" : "kbvMedicationFreeText",
              "mode" : "source"
            },
            {
              "name" : "bfarmMedication",
              "type" : "bfarmMedication",
              "mode" : "target"
            }
          ],
          "rule" : [
            {
              "name" : "medicationId",
              "source" : [
                {
                  "context" : "kbvMedicationFreeText",
                  "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" : "medicationCode",
              "source" : [
                {
                  "context" : "kbvMedicationFreeText",
                  "element" : "code",
                  "variable" : "srcCodeVar"
                }
              ],
              "target" : [
                {
                  "context" : "bfarmMedication",
                  "contextType" : "variable",
                  "element" : "code",
                  "variable" : "tgtCodeVar"
                }
              ],
              "rule" : [
                {
                  "name" : "medicationCodeText",
                  "source" : [
                    {
                      "context" : "srcCodeVar",
                      "element" : "text",
                      "variable" : "srcCodeTextVar"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgtCodeVar",
                      "contextType" : "variable",
                      "element" : "text",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "srcCodeTextVar"
                        }
                      ]
                    }
                  ],
                  "documentation" : "Kopiert die Freitext-Bezeichnung des Medikaments (z.B. 'Aspirin 500mg Tabletten')"
                }
              ],
              "documentation" : "Mappt den Medikamentencode mit Freitext-Beschreibung"
            },
            {
              "name" : "medicationForm",
              "source" : [
                {
                  "context" : "kbvMedicationFreeText",
                  "element" : "form",
                  "variable" : "srcFormVar"
                }
              ],
              "target" : [
                {
                  "context" : "bfarmMedication",
                  "contextType" : "variable",
                  "element" : "form",
                  "variable" : "tgtFormVar"
                }
              ],
              "rule" : [
                {
                  "name" : "medicationFormText",
                  "source" : [
                    {
                      "context" : "srcFormVar",
                      "element" : "text",
                      "variable" : "srcformTextVar"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgtFormVar",
                      "contextType" : "variable",
                      "element" : "text",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "srcformTextVar"
                        }
                      ]
                    }
                  ],
                  "documentation" : "Übernimmt die Freitext-Darreichungsform (z.B. 'Tabletten', 'Tropfen zum Einnehmen')"
                }
              ],
              "documentation" : "Mappt die Darreichungsform als Freitext"
            }
          ]
        }
      ]
    }