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

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

Draft as of 2026-05-26

Raw xml | Download

    <StructureMap xmlns="http://hl7.org/fhir">
      <id value="ERPTPrescriptionStructureMapKBVFreeTextMedication"/>
      <text>
        <status value="generated"/>
        <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">
    <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;

    </span><span style="color: navy">// </span><span style="color: green">Maps KBV FreeText Medication to BfArM T-Prescription Medication format</span>

    <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>
    <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>

    <span style="color: navy">// </span><span style="color: green">Mapping-Anweisungen zur Transformation von KBV Freitext-Medikamenten zu BfArM T-Prescription Format</span>
    <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"> {
    </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>
      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"> {
    </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>
      <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>
      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"> {
    </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>
      <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>
    <span style="color: navy">}

    </span></pre></div>
      </text>
      <url
           value="https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapKBVFreeTextMedication"/>
      <version value="2.0.0-ballot.1"/>
      <name value="ERPTPrescriptionStructureMapKBVFreeTextMedication"/>
      <title value="E-T-Rezept Structure Map for KBV FreeText Medication"/>
      <status value="draft"/>
      <experimental value="false"/>
      <date value="2026-05-26"/>
      <publisher value="gematik GmbH"/>
      <contact>
        <name value="gematik GmbH"/>
        <telecom>
          <system value="url"/>
          <value value="https://gematik.de"/>
        </telecom>
        <telecom>
          <system value="email"/>
          <value value="erp-umsetzung@gematik.de"/>
        </telecom>
      </contact>
      <description
                   value="Maps KBV FreeText Medication to BfArM T-Prescription Medication format"/>
      <jurisdiction>
        <coding>
          <system value="urn:iso:std:iso:3166"/>
          <code value="DE"/>
          <display value="Germany"/>
        </coding>
      </jurisdiction>
      <structure>
        <url value="http://hl7.org/fhir/StructureDefinition/Medication"/>
        <mode value="source"/>
        <alias value="kbvMedicationFreeText"/>
      </structure>
      <structure>
        <url value="http://hl7.org/fhir/StructureDefinition/Medication"/>
        <mode value="target"/>
        <alias value="bfarmMedication"/>
      </structure>
      <group>
        <name value="ERPTPrescriptionStructureMapKBVFreeTextMedication"/>
        <typeMode value="none"/>
        <documentation
                       value="Mapping-Anweisungen zur Transformation von KBV Freitext-Medikamenten zu BfArM T-Prescription Format"/>
        <input>
          <name value="kbvMedicationFreeText"/>
          <type value="kbvMedicationFreeText"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="bfarmMedication"/>
          <type value="bfarmMedication"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="medicationId"/>
          <source>
            <context value="kbvMedicationFreeText"/>
            <element value="id"/>
            <variable value="IdVar"/>
          </source>
          <target>
            <context value="bfarmMedication"/>
            <contextType value="variable"/>
            <element value="id"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="IdVar"/>
            </parameter>
          </target>
          <documentation
                         value="Übernimmt die eindeutige Medication-ID unverändert"/>
        </rule>
        <rule>
          <name value="medicationCode"/>
          <source>
            <context value="kbvMedicationFreeText"/>
            <element value="code"/>
            <variable value="srcCodeVar"/>
          </source>
          <target>
            <context value="bfarmMedication"/>
            <contextType value="variable"/>
            <element value="code"/>
            <variable value="tgtCodeVar"/>
          </target>
          <rule>
            <name value="medicationCodeText"/>
            <source>
              <context value="srcCodeVar"/>
              <element value="text"/>
              <variable value="srcCodeTextVar"/>
            </source>
            <target>
              <context value="tgtCodeVar"/>
              <contextType value="variable"/>
              <element value="text"/>
              <transform value="copy"/>
              <parameter>
                <valueId value="srcCodeTextVar"/>
              </parameter>
            </target>
            <documentation
                           value="Kopiert die Freitext-Bezeichnung des Medikaments (z.B. 'Aspirin 500mg Tabletten')"/>
          </rule>
          <documentation
                         value="Mappt den Medikamentencode mit Freitext-Beschreibung"/>
        </rule>
        <rule>
          <name value="medicationForm"/>
          <source>
            <context value="kbvMedicationFreeText"/>
            <element value="form"/>
            <variable value="srcFormVar"/>
          </source>
          <target>
            <context value="bfarmMedication"/>
            <contextType value="variable"/>
            <element value="form"/>
            <variable value="tgtFormVar"/>
          </target>
          <rule>
            <name value="medicationFormText"/>
            <source>
              <context value="srcFormVar"/>
              <element value="text"/>
              <variable value="srcformTextVar"/>
            </source>
            <target>
              <context value="tgtFormVar"/>
              <contextType value="variable"/>
              <element value="text"/>
              <transform value="copy"/>
              <parameter>
                <valueId value="srcformTextVar"/>
              </parameter>
            </target>
            <documentation
                           value="Übernimmt die Freitext-Darreichungsform (z.B. 'Tabletten', 'Tropfen zum Einnehmen')"/>
          </rule>
          <documentation value="Mappt die Darreichungsform als Freitext"/>
        </rule>
      </group>
    </StructureMap>