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

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

Draft as of 2026-05-26

Raw json | Download

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