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

## : E-T-Rezept Structure Map for Organization - XML Representation

Draft as of 2026-05-26

Raw xml | Download

    <StructureMap xmlns="http://hl7.org/fhir">
      <id value="ERPTPrescriptionStructureMapOrganization"/>
      <text>
        <status value="generated"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureMap ERPTPrescriptionStructureMapOrganization</b></p><a name="ERPTPrescriptionStructureMapOrganization"> </a><a name="hcERPTPrescriptionStructureMapOrganization"> </a><pre class="fml">
    <b>map</b><span style="color: navy"> &quot;</span>https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapOrganization<span style="color: navy">&quot; = &quot;</span>ERPTPrescriptionStructureMapOrganization<span style="color: navy">&quot;

    </span><span style="color: navy">// </span><span style="color: green">Mapping-Anweisungen zur Erstellung einer BfArM Organization aus dem VZD SearchSet</span>

    <b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R4/bundle.html" title="Bundle">http://hl7.org/fhir/StructureDefinition/Bundle</a><span style="color: navy">&quot; </span><b>alias </b>vzdSearchSet <b>as </b><b>source</b>
    <b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R4/organization.html" title="Organization">http://hl7.org/fhir/StructureDefinition/Organization</a><span style="color: navy">&quot; </span><b>alias </b>bfarmOrganization <b>as </b><b>target</b>

    <span style="color: navy">// </span><span style="color: green">Mapping-Anweisungen zur Erstellung einer BfArM Organization aus dem VZD SearchSet</span>
    <b>group </b>ERPTPrescriptionStructureMapOrganization<span style="color: navy">(</span><b>source</b> <span style="color: maroon">vzdSearchSet</span><span style="color: navy"> : </span>vzdSearchSet, <b>target</b> <span style="color: maroon">bfarmOrganization</span><span style="color: navy"> : </span>bfarmOrganization<span style="color: navy">)</span><span style="color: navy"> {
    </span>  vzdSearchSet.entry<b> as </b><span style="color: maroon">srcEntryOrgVar</span><b> then</b><span style="color: navy"> {
    </span>    srcEntryOrgVar.resource<span style="color: navy"> : </span>Organization<b> as </b><span style="color: maroon">srcEntryOrganizationVar</span><b> where </b>ofType(Organization)<b> then</b><span style="color: navy"> {
    </span>      srcEntryOrganizationVar.name<b> as </b><span style="color: maroon">srcOrgNameVar</span><span style="color: navy"><b> -&gt; </b></span>bfarmOrganization.name = <span style="color: maroon">srcOrgNameVar</span><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">Übernimmt den Namen der Organisation aus dem VZD in die BfArM Organization</span>
          srcEntryOrganizationVar.identifier<b> as </b><span style="color: maroon">srcOrgIdentifierVar</span><b> where </b>$this.system='https://gematik.de/fhir/sid/telematik-id'<span style="color: navy"><b> -&gt; </b></span>bfarmOrganization.identifier<b> as </b><span style="color: maroon">bfarmOrganizationIdentifierVar</span><b> then</b><span style="color: navy"> {
    </span>        srcOrgIdentifierVar.value<b> as </b><span style="color: maroon">srcOrgIdentifierValueVar</span><b> log </b>tgtTidIdentifier<span style="color: navy"><b> -&gt; </b></span> bfarmOrganizationIdentifierVar.system = <span style="color: blue">'https://gematik.de/fhir/sid/telematik-id'</span><span style="color: navy">, </span> bfarmOrganizationIdentifierVar.value = <span style="color: maroon">srcOrgIdentifierValueVar</span><span style="color: navy">, </span> bfarmOrganization.id = <span style="color: maroon">srcOrgIdentifierValueVar</span> <i>&quot;tidValue&quot;</i><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">Kopiert die Telematik-ID mit korrektem System-Identifier in die Ziel-Organisation</span>
          <span style="color: navy">}</span> <i>&quot;tid&quot;</i><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">Mappt die Telematik-ID der Organisation</span>
        <span style="color: navy">}</span> <i>&quot;entry&quot;</i><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">Verarbeitet jeden Eintrag im SearchSet</span>
      <span style="color: navy">}</span> <i>&quot;mapOrganization&quot;</i><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">Mappt Organization-Einträge aus dem VZD SearchSet</span>
      vzdSearchSet.entry<b> as </b><span style="color: maroon">srcEntryHCSVar</span><b> then</b><span style="color: navy"> {
    </span>    srcEntryHCSVar.resource<span style="color: navy"> : </span>HealthcareService<b> as </b><span style="color: maroon">srcEntryHealthcareServiceVar</span><b> where </b>ofType(HealthcareService)<b> then</b><span style="color: navy"> {
    </span>      srcEntryHealthcareServiceVar.telecom<b> as </b><span style="color: maroon">srcHcsTelecomVar</span><span style="color: navy"><b> -&gt; </b></span>bfarmOrganization.telecom = <span style="color: maroon">srcHcsTelecomVar</span><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">Übernimmt Kontaktinformationen (Telefon, E-Mail) aus dem HealthcareService in die Organisation</span>
        <span style="color: navy">}</span> <i>&quot;entry&quot;</i><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">Verarbeitet HealthcareService-Einträge aus dem SearchSet</span>
      <span style="color: navy">}</span> <i>&quot;mapHealthcareService&quot;</i><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">Mappt HealthcareService-Informationen für Kontaktdaten</span>
      vzdSearchSet.entry<b> as </b><span style="color: maroon">srcEntryHCSVar</span><b> then</b><span style="color: navy"> {
    </span>    srcEntryHCSVar.resource<span style="color: navy"> : </span>Location<b> as </b><span style="color: maroon">srcEntryLocationVar</span><b> where </b>ofType(Location)<b> then</b><span style="color: navy"> {
    </span>      srcEntryLocationVar.address<b> as </b><span style="color: maroon">srcLocationAddressVar</span><span style="color: navy"><b> -&gt; </b></span>bfarmOrganization.address = <span style="color: maroon">srcLocationAddressVar</span><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">Übernimmt die Adressinformationen aus der Location in die Organisation</span>
        <span style="color: navy">}</span> <i>&quot;entry&quot;</i><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">Verarbeitet Location-Einträge aus dem SearchSet</span>
      <span style="color: navy">}</span> <i>&quot;mapLocation&quot;</i><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">Mappt Location-Informationen für Adressdaten</span>
    <span style="color: navy">}

    </span></pre></div>
      </text>
      <url
           value="https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapOrganization"/>
      <version value="2.0.0-ballot.1"/>
      <name value="ERPTPrescriptionStructureMapOrganization"/>
      <title value="E-T-Rezept Structure Map for Organization"/>
      <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="Mapping-Anweisungen zur Erstellung einer BfArM Organization aus dem VZD SearchSet"/>
      <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/Bundle"/>
        <mode value="source"/>
        <alias value="vzdSearchSet"/>
      </structure>
      <structure>
        <url value="http://hl7.org/fhir/StructureDefinition/Organization"/>
        <mode value="target"/>
        <alias value="bfarmOrganization"/>
      </structure>
      <group>
        <name value="ERPTPrescriptionStructureMapOrganization"/>
        <typeMode value="none"/>
        <documentation
                       value="Mapping-Anweisungen zur Erstellung einer BfArM Organization aus dem VZD SearchSet"/>
        <input>
          <name value="vzdSearchSet"/>
          <type value="vzdSearchSet"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="bfarmOrganization"/>
          <type value="bfarmOrganization"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="mapOrganization"/>
          <source>
            <context value="vzdSearchSet"/>
            <element value="entry"/>
            <variable value="srcEntryOrgVar"/>
          </source>
          <rule>
            <name value="entry"/>
            <source>
              <context value="srcEntryOrgVar"/>
              <type value="Organization"/>
              <element value="resource"/>
              <variable value="srcEntryOrganizationVar"/>
              <condition value="ofType(Organization)"/>
            </source>
            <rule>
              <name value="name"/>
              <source>
                <context value="srcEntryOrganizationVar"/>
                <element value="name"/>
                <variable value="srcOrgNameVar"/>
              </source>
              <target>
                <context value="bfarmOrganization"/>
                <contextType value="variable"/>
                <element value="name"/>
                <transform value="copy"/>
                <parameter>
                  <valueId value="srcOrgNameVar"/>
                </parameter>
              </target>
              <documentation
                             value="Übernimmt den Namen der Organisation aus dem VZD in die BfArM Organization"/>
            </rule>
            <rule>
              <name value="tid"/>
              <source>
                <context value="srcEntryOrganizationVar"/>
                <element value="identifier"/>
                <variable value="srcOrgIdentifierVar"/>
                <condition
                           value="$this.system='https://gematik.de/fhir/sid/telematik-id'"/>
              </source>
              <target>
                <context value="bfarmOrganization"/>
                <contextType value="variable"/>
                <element value="identifier"/>
                <variable value="bfarmOrganizationIdentifierVar"/>
              </target>
              <rule>
                <name value="tidValue"/>
                <source>
                  <context value="srcOrgIdentifierVar"/>
                  <element value="value"/>
                  <variable value="srcOrgIdentifierValueVar"/>
                  <logMessage value="tgtTidIdentifier"/>
                </source>
                <target>
                  <context value="bfarmOrganizationIdentifierVar"/>
                  <contextType value="variable"/>
                  <element value="system"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueString
                                 value="https://gematik.de/fhir/sid/telematik-id"/>
                  </parameter>
                </target>
                <target>
                  <context value="bfarmOrganizationIdentifierVar"/>
                  <contextType value="variable"/>
                  <element value="value"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="srcOrgIdentifierValueVar"/>
                  </parameter>
                </target>
                <target>
                  <context value="bfarmOrganization"/>
                  <contextType value="variable"/>
                  <element value="id"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="srcOrgIdentifierValueVar"/>
                  </parameter>
                </target>
                <documentation
                               value="Kopiert die Telematik-ID mit korrektem System-Identifier in die Ziel-Organisation"/>
              </rule>
              <documentation value="Mappt die Telematik-ID der Organisation"/>
            </rule>
            <documentation value="Verarbeitet jeden Eintrag im SearchSet"/>
          </rule>
          <documentation
                         value="Mappt Organization-Einträge aus dem VZD SearchSet"/>
        </rule>
        <rule>
          <name value="mapHealthcareService"/>
          <source>
            <context value="vzdSearchSet"/>
            <element value="entry"/>
            <variable value="srcEntryHCSVar"/>
          </source>
          <rule>
            <name value="entry"/>
            <source>
              <context value="srcEntryHCSVar"/>
              <type value="HealthcareService"/>
              <element value="resource"/>
              <variable value="srcEntryHealthcareServiceVar"/>
              <condition value="ofType(HealthcareService)"/>
            </source>
            <rule>
              <name value="telecom"/>
              <source>
                <context value="srcEntryHealthcareServiceVar"/>
                <element value="telecom"/>
                <variable value="srcHcsTelecomVar"/>
              </source>
              <target>
                <context value="bfarmOrganization"/>
                <contextType value="variable"/>
                <element value="telecom"/>
                <transform value="copy"/>
                <parameter>
                  <valueId value="srcHcsTelecomVar"/>
                </parameter>
              </target>
              <documentation
                             value="Übernimmt Kontaktinformationen (Telefon, E-Mail) aus dem HealthcareService in die Organisation"/>
            </rule>
            <documentation
                           value="Verarbeitet HealthcareService-Einträge aus dem SearchSet"/>
          </rule>
          <documentation
                         value="Mappt HealthcareService-Informationen für Kontaktdaten"/>
        </rule>
        <rule>
          <name value="mapLocation"/>
          <source>
            <context value="vzdSearchSet"/>
            <element value="entry"/>
            <variable value="srcEntryHCSVar"/>
          </source>
          <rule>
            <name value="entry"/>
            <source>
              <context value="srcEntryHCSVar"/>
              <type value="Location"/>
              <element value="resource"/>
              <variable value="srcEntryLocationVar"/>
              <condition value="ofType(Location)"/>
            </source>
            <rule>
              <name value="address"/>
              <source>
                <context value="srcEntryLocationVar"/>
                <element value="address"/>
                <variable value="srcLocationAddressVar"/>
              </source>
              <target>
                <context value="bfarmOrganization"/>
                <contextType value="variable"/>
                <element value="address"/>
                <transform value="copy"/>
                <parameter>
                  <valueId value="srcLocationAddressVar"/>
                </parameter>
              </target>
              <documentation
                             value="Übernimmt die Adressinformationen aus der Location in die Organisation"/>
            </rule>
            <documentation
                           value="Verarbeitet Location-Einträge aus dem SearchSet"/>
          </rule>
          <documentation value="Mappt Location-Informationen für Adressdaten"/>
        </rule>
      </group>
    </StructureMap>