Implementation Guide
TIFlow - Verordnungen für Arzneimittel
Version 2.0.0-ballot.2 - ballot

## : KBVPrErpBundleMap - JSON Representation

Draft as of 2026-02-02

Raw json | Download

    {
      "resourceType" : "StructureMap",
      "id" : "KBVPrErpBundleMap",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap KBVPrErpBundleMap</b></p><a name=\"KBVPrErpBundleMap\"> </a><a name=\"hcKBVPrErpBundleMap\"> </a><pre class=\"fml\">\r\n<b>map</b><span style=\"color: navy\"> &quot;</span>https://gematik.de/fhir/structure-comparer/StructureMap/KBVPrErpBundleMap<span style=\"color: navy\">&quot; = &quot;</span>KBVPrErpBundleMap<span style=\"color: navy\">&quot;\r\n\r\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Auto-generated StructureMap for transformation KBV_PR_ERP_Bundle|1.4.0 -&gt; EPAOpProvidePrescriptionERPInputParameters|1.3.0</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span>https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle<span style=\"color: navy\">&quot; </span><b>alias </b>KBVPRERPBundle <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span>https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters<span style=\"color: navy\">&quot; </span><b>alias </b>EPAOpProvidePrescriptionERPInputParameters <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> &quot;</span><a href=\"StructureMap-KBVPrErpMedicationCompoundingMap.html\" title=\"KBVPrErpMedicationCompoundingMap\">https://gematik.de/fhir/structure-comparer/StructureMap/KBVPrErpMedicationCompoundingMap</a><span style=\"color: navy\">&quot;\r\n</span><b>imports</b><span style=\"color: navy\"> &quot;</span><a href=\"StructureMap-KBVPrErpMedicationFreetextMap.html\" title=\"KBVPrErpMedicationFreetextMap\">https://gematik.de/fhir/structure-comparer/StructureMap/KBVPrErpMedicationFreetextMap</a><span style=\"color: navy\">&quot;\r\n</span><b>imports</b><span style=\"color: navy\"> &quot;</span><a href=\"StructureMap-KBVPrErpMedicationIngredientMap.html\" title=\"KBVPrErpMedicationIngredientMap\">https://gematik.de/fhir/structure-comparer/StructureMap/KBVPrErpMedicationIngredientMap</a><span style=\"color: navy\">&quot;\r\n</span><b>imports</b><span style=\"color: navy\"> &quot;</span><a href=\"StructureMap-KBVPrErpMedicationPznMap.html\" title=\"KBVPrErpMedicationPznMap\">https://gematik.de/fhir/structure-comparer/StructureMap/KBVPrErpMedicationPznMap</a><span style=\"color: navy\">&quot;\r\n</span><b>imports</b><span style=\"color: navy\"> &quot;</span><a href=\"StructureMap-KBVPrErpPrescriptionMap.html\" title=\"KBVPrErpPrescriptionMap\">https://gematik.de/fhir/structure-comparer/StructureMap/KBVPrErpPrescriptionMap</a><span style=\"color: navy\">&quot;\r\n</span><b>imports</b><span style=\"color: navy\"> &quot;</span><a href=\"StructureMap-KBVPrForOrganizationMap.html\" title=\"KBVPrForOrganizationMap\">https://gematik.de/fhir/structure-comparer/StructureMap/KBVPrForOrganizationMap</a><span style=\"color: navy\">&quot;\r\n</span><b>imports</b><span style=\"color: navy\"> &quot;</span><a href=\"StructureMap-KBVPrForPractitionerMap.html\" title=\"KBVPrForPractitionerMap\">https://gematik.de/fhir/structure-comparer/StructureMap/KBVPrForPractitionerMap</a><span style=\"color: navy\">&quot;\r\n</span>\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">Transformation generated for KBV_PR_ERP_Bundle|1.4.0 -&gt; EPAOpProvidePrescriptionERPInputParameters|1.3.0</span>\r\n<b>group </b>KBVPrErpBundleMap<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">KBVPRERPBundle</span><span style=\"color: navy\"> : </span>KBVPRERPBundle, <b>target</b> <span style=\"color: maroon\">EPAOpProvidePrescriptionERPInputParameters</span><span style=\"color: navy\"> : </span>EPAOpProvidePrescriptionERPInputParameters<span style=\"color: navy\">)</span><b> &lt;&lt;types&gt;&gt;</b><span style=\"color: navy\"> {\r\n</span>  KBVPRERPBundle<span style=\"color: navy\"><b> -&gt; </b></span>EPAOpProvidePrescriptionERPInputParameters.parameter<b> as </b><span style=\"color: maroon\">targetParameterRxprescriptionParameter77d85b46</span><b> then</b><span style=\"color: navy\"> {\r\n</span>    KBVPRERPBundle<span style=\"color: navy\"><b> -&gt; </b></span>targetParameterRxprescriptionParameter77d85b46.name = <span style=\"color: blue\">'rxPrescription'</span> <i>&quot;SetParameterRxprescriptionName&quot;</i><span style=\"color: navy\">;</span>\r\n    KBVPRERPBundle<span style=\"color: navy\"><b> -&gt; </b></span>targetParameterRxprescriptionParameter77d85b46.part<b> as </b><span style=\"color: maroon\">targetPartAuthoredonPartb106c48f</span><b> then</b><span style=\"color: navy\"> {\r\n</span>      KBVPRERPBundle<span style=\"color: navy\"><b> -&gt; </b></span>targetPartAuthoredonPartb106c48f.name = <span style=\"color: blue\">'authoredOn'</span> <i>&quot;SetPartAuthoredonName&quot;</i><span style=\"color: navy\">;</span>\r\n      KBVPRERPBundle.entry<b> as </b><span style=\"color: maroon\">inlinesourceParametersParameterRxprescriptionPartAuthoredonValue</span><b> where </b>resource.meta.profile.where($this.contains('https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription')).exists()<b> then</b><span style=\"color: navy\"> {\r\n</span>        inlinesourceParametersParameterRxprescriptionPartAuthoredonValue.resource<b> as </b><span style=\"color: maroon\">inlinesourceParametersParameterRxprescriptionPartAuthoredonValue</span><b> then</b><span style=\"color: navy\"> {\r\n</span>          inlinesourceParametersParameterRxprescriptionPartAuthoredonValue.authoredOn<b> as </b><span style=\"color: maroon\">inlinesourceParametersParameterRxprescriptionPartAuthoredonValue</span><span style=\"color: navy\"><b> -&gt; </b></span>targetPartAuthoredonPartb106c48f.value = <span style=\"color: maroon\">inlinesourceParametersParameterRxprescriptionPartAuthoredonValue</span><b> as </b><span style=\"color: maroon\">inlinetargetParametersParameterRxprescriptionPartAuthoredonValue</span> <i>&quot;InlineParametersParameterRxprescriptionPartAuthoredonValueX1c6fc&quot;</i><span style=\"color: navy\">;</span>\r\n        <span style=\"color: navy\">}</span> <i>&quot;InlineParametersParameterRxprescriptionPartAuthoredonValueX1c6fc&quot;</i><span style=\"color: navy\">;</span>\r\n      <span style=\"color: navy\">}</span> <i>&quot;InlineParametersParameterRxprescriptionPartAuthoredonValueX1c6fc&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Automatic copy</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;PartAuthoredonPartContainer&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Creates part:authoredOn part container aggregating 1 child rule(s)</span>\r\n    KBVPRERPBundle<span style=\"color: navy\"><b> -&gt; </b></span>targetParameterRxprescriptionParameter77d85b46.part<b> as </b><span style=\"color: maroon\">targetPartMedicationPart88f31ec4</span><b> then</b><span style=\"color: navy\"> {\r\n</span>      KBVPRERPBundle<span style=\"color: navy\"><b> -&gt; </b></span>targetPartMedicationPart88f31ec4.name = <span style=\"color: blue\">'medication'</span> <i>&quot;SetPartMedicationName&quot;</i><span style=\"color: navy\">;</span>\r\n      KBVPRERPBundle.entry<b> as </b><span style=\"color: maroon\">sourceBundleEntryRezeptierdatenpznverordnungResource0Entry4c4ad0</span><b> where </b>resource is Medication<b> then</b><span style=\"color: navy\"> {\r\n</span>        sourceBundleEntryRezeptierdatenpznverordnungResource0Entry4c4ad0.resource<b> as </b><span style=\"color: maroon\">sourceBundleEntryRezeptierdatenpznverordnungResource1Resource3bd</span><b> then</b><span style=\"color: navy\"> {\r\n</span>          sourceBundleEntryRezeptierdatenpznverordnungResource1Resource3bd<span style=\"color: navy\"><b> -&gt; </b></span>targetPartMedicationPart88f31ec4.resource = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">targetParameterRxprescriptionPartMedicationResourceResource38c62</span><b> then </b>KBVPrErpMedicationPznMap<span style=\"color: navy\">(</span><span style=\"color: maroon\">sourceBundleEntryRezeptierdatenpznverordnungResource1Resource3bd</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">targetParameterRxprescriptionPartMedicationResourceResource38c62</span><span style=\"color: navy\">)</span> <i>&quot;CallKbvprerpmedicationpznmap&quot;</i><span style=\"color: navy\">;</span>\r\n        <span style=\"color: navy\">}</span> <i>&quot;BundleEntryRezeptierdatenpznverordnungResource7400f329&quot;</i><span style=\"color: navy\">;</span>\r\n      <span style=\"color: navy\">}</span> <i>&quot;BundleEntryRezeptierdatenpznverordnungResource7400f329&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Bundle.entry:RezeptierdatenPZNVerordnung.resource -&gt; .parameter:rxPrescription.part:medication.resource using KBV_PR_ERP_Medication_PZN|1.4.0 -&gt; EPAMedication|1.3.0</span>\r\n      KBVPRERPBundle.entry<b> as </b><span style=\"color: maroon\">sourceBundleEntryRezeptierdatenwirkstoffverordnungResource0Ent6b</span><b> where </b>resource is Medication<b> then</b><span style=\"color: navy\"> {\r\n</span>        sourceBundleEntryRezeptierdatenwirkstoffverordnungResource0Ent6b.resource<b> as </b><span style=\"color: maroon\">sourceBundleEntryRezeptierdatenwirkstoffverordnungResource1Res9f</span><b> then</b><span style=\"color: navy\"> {\r\n</span>          sourceBundleEntryRezeptierdatenwirkstoffverordnungResource1Res9f<span style=\"color: navy\"><b> -&gt; </b></span>targetPartMedicationPart88f31ec4.resource = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">targetParameterRxprescriptionPartMedicationResourceResource38c62</span><b> then </b>KBVPrErpMedicationIngredientMap<span style=\"color: navy\">(</span><span style=\"color: maroon\">sourceBundleEntryRezeptierdatenwirkstoffverordnungResource1Res9f</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">targetParameterRxprescriptionPartMedicationResourceResource38c62</span><span style=\"color: navy\">)</span> <i>&quot;CallKbvprerpmedicationingredientmap&quot;</i><span style=\"color: navy\">;</span>\r\n        <span style=\"color: navy\">}</span> <i>&quot;BundleEntryRezeptierdatenwirkstoffverordnungResource7400f329&quot;</i><span style=\"color: navy\">;</span>\r\n      <span style=\"color: navy\">}</span> <i>&quot;BundleEntryRezeptierdatenwirkstoffverordnungResource7400f329&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Bundle.entry:RezeptierdatenWirkstoffverordnung.resource -&gt; .parameter:rxPrescription.part:medication.resource using KBV_PR_ERP_Medication_Ingredient|1.4.0 -&gt; EPAMedication|1.3.0</span>\r\n      KBVPRERPBundle.entry<b> as </b><span style=\"color: maroon\">sourceBundleEntryRezeptierdatenrezepturverordnungResource0Entr83</span><b> where </b>resource is Medication<b> then</b><span style=\"color: navy\"> {\r\n</span>        sourceBundleEntryRezeptierdatenrezepturverordnungResource0Entr83.resource<b> as </b><span style=\"color: maroon\">sourceBundleEntryRezeptierdatenrezepturverordnungResource1Resocd</span><b> then</b><span style=\"color: navy\"> {\r\n</span>          sourceBundleEntryRezeptierdatenrezepturverordnungResource1Resocd<span style=\"color: navy\"><b> -&gt; </b></span>targetPartMedicationPart88f31ec4.resource = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">targetParameterRxprescriptionPartMedicationResourceResource38c62</span><b> then </b>KBVPrErpMedicationCompoundingMap<span style=\"color: navy\">(</span><span style=\"color: maroon\">sourceBundleEntryRezeptierdatenrezepturverordnungResource1Resocd</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">targetParameterRxprescriptionPartMedicationResourceResource38c62</span><span style=\"color: navy\">)</span> <i>&quot;CallKbvprerpmedicationcompoundingmap&quot;</i><span style=\"color: navy\">;</span>\r\n        <span style=\"color: navy\">}</span> <i>&quot;BundleEntryRezeptierdatenrezepturverordnungResource7400f329&quot;</i><span style=\"color: navy\">;</span>\r\n      <span style=\"color: navy\">}</span> <i>&quot;BundleEntryRezeptierdatenrezepturverordnungResource7400f329&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Bundle.entry:RezeptierdatenRezepturverordnung.resource -&gt; .parameter:rxPrescription.part:medication.resource using KBV_PR_ERP_Medication_Compounding|1.4.0 -&gt; EPAMedication|1.3.0</span>\r\n      KBVPRERPBundle.entry<b> as </b><span style=\"color: maroon\">sourceBundleEntryRezeptierdatenfreitextverordnungResource0Entrb4</span><b> where </b>resource is Medication<b> then</b><span style=\"color: navy\"> {\r\n</span>        sourceBundleEntryRezeptierdatenfreitextverordnungResource0Entrb4.resource<b> as </b><span style=\"color: maroon\">sourceBundleEntryRezeptierdatenfreitextverordnungResource1Resob3</span><b> then</b><span style=\"color: navy\"> {\r\n</span>          sourceBundleEntryRezeptierdatenfreitextverordnungResource1Resob3<span style=\"color: navy\"><b> -&gt; </b></span>targetPartMedicationPart88f31ec4.resource = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">targetParameterRxprescriptionPartMedicationResourceResource38c62</span><b> then </b>KBVPrErpMedicationFreetextMap<span style=\"color: navy\">(</span><span style=\"color: maroon\">sourceBundleEntryRezeptierdatenfreitextverordnungResource1Resob3</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">targetParameterRxprescriptionPartMedicationResourceResource38c62</span><span style=\"color: navy\">)</span> <i>&quot;CallKbvprerpmedicationfreetextmap&quot;</i><span style=\"color: navy\">;</span>\r\n        <span style=\"color: navy\">}</span> <i>&quot;BundleEntryRezeptierdatenfreitextverordnungResource7400f329&quot;</i><span style=\"color: navy\">;</span>\r\n      <span style=\"color: navy\">}</span> <i>&quot;BundleEntryRezeptierdatenfreitextverordnungResource7400f329&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Bundle.entry:RezeptierdatenFreitextverordnung.resource -&gt; .parameter:rxPrescription.part:medication.resource using KBV_PR_ERP_Medication_FreeText|1.4.0 -&gt; EPAMedication|1.3.0</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;PartMedicationPartContainer&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Creates part:medication part container aggregating 4 child rule(s)</span>\r\n    KBVPRERPBundle<span style=\"color: navy\"><b> -&gt; </b></span>targetParameterRxprescriptionParameter77d85b46.part<b> as </b><span style=\"color: maroon\">targetPartMedicationrequestPart3ea10d80</span><b> then</b><span style=\"color: navy\"> {\r\n</span>      KBVPRERPBundle<span style=\"color: navy\"><b> -&gt; </b></span>targetPartMedicationrequestPart3ea10d80.name = <span style=\"color: blue\">'medicationRequest'</span> <i>&quot;SetPartMedicationrequestName&quot;</i><span style=\"color: navy\">;</span>\r\n      KBVPRERPBundle.entry<b> as </b><span style=\"color: maroon\">sourceBundleEntryVerordnungarzneimittelResource0Entry3c6c2e1b</span><b> where </b>resource is MedicationRequest<b> then</b><span style=\"color: navy\"> {\r\n</span>        sourceBundleEntryVerordnungarzneimittelResource0Entry3c6c2e1b.resource<b> as </b><span style=\"color: maroon\">sourceBundleEntryVerordnungarzneimittelResource1Resource61f06fbc</span><b> then</b><span style=\"color: navy\"> {\r\n</span>          sourceBundleEntryVerordnungarzneimittelResource1Resource61f06fbc<span style=\"color: navy\"><b> -&gt; </b></span>targetPartMedicationrequestPart3ea10d80.resource = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">targetParameterRxprescriptionPartMedicationrequestResourceReso52</span><b> then </b>KBVPrErpPrescriptionMap<span style=\"color: navy\">(</span><span style=\"color: maroon\">sourceBundleEntryVerordnungarzneimittelResource1Resource61f06fbc</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">targetParameterRxprescriptionPartMedicationrequestResourceReso52</span><span style=\"color: navy\">)</span> <i>&quot;CallKbvprerpprescriptionmap&quot;</i><span style=\"color: navy\">;</span>\r\n        <span style=\"color: navy\">}</span> <i>&quot;BundleEntryVerordnungarzneimittelResource890c831b&quot;</i><span style=\"color: navy\">;</span>\r\n      <span style=\"color: navy\">}</span> <i>&quot;BundleEntryVerordnungarzneimittelResource890c831b&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Bundle.entry:VerordnungArzneimittel.resource -&gt; .parameter:rxPrescription.part:medicationRequest.resource using KBV_PR_ERP_Prescription|1.4.0 -&gt; EPAMedicationRequest|1.3.0</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;PartMedicationrequestPartContainer&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Creates part:medicationRequest part container aggregating 1 child rule(s)</span>\r\n    KBVPRERPBundle<span style=\"color: navy\"><b> -&gt; </b></span>targetParameterRxprescriptionParameter77d85b46.part<b> as </b><span style=\"color: maroon\">targetPartOrganizationPart5252e12d</span><b> then</b><span style=\"color: navy\"> {\r\n</span>      KBVPRERPBundle<span style=\"color: navy\"><b> -&gt; </b></span>targetPartOrganizationPart5252e12d.name = <span style=\"color: blue\">'organization'</span> <i>&quot;SetPartOrganizationName&quot;</i><span style=\"color: navy\">;</span>\r\n      KBVPRERPBundle.entry<b> as </b><span style=\"color: maroon\">sourceBundleEntryEinrichtungResource0Entry6bfa77fa</span><b> where </b>resource is Organization<b> then</b><span style=\"color: navy\"> {\r\n</span>        sourceBundleEntryEinrichtungResource0Entry6bfa77fa.resource<b> as </b><span style=\"color: maroon\">sourceBundleEntryEinrichtungResource1Resource45328e4f</span><b> then</b><span style=\"color: navy\"> {\r\n</span>          sourceBundleEntryEinrichtungResource1Resource45328e4f<span style=\"color: navy\"><b> -&gt; </b></span>targetPartOrganizationPart5252e12d.resource = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">targetParameterRxprescriptionPartOrganizationResourceResource43b</span><b> then </b>KBVPrForOrganizationMap<span style=\"color: navy\">(</span><span style=\"color: maroon\">sourceBundleEntryEinrichtungResource1Resource45328e4f</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">targetParameterRxprescriptionPartOrganizationResourceResource43b</span><span style=\"color: navy\">)</span> <i>&quot;CallKbvprfororganizationmap&quot;</i><span style=\"color: navy\">;</span>\r\n        <span style=\"color: navy\">}</span> <i>&quot;BundleEntryEinrichtungResourceB36f36fb&quot;</i><span style=\"color: navy\">;</span>\r\n      <span style=\"color: navy\">}</span> <i>&quot;BundleEntryEinrichtungResourceB36f36fb&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Bundle.entry:Einrichtung.resource -&gt; .parameter:rxPrescription.part:organization.resource using KBV_PR_FOR_Organization|1.3.0 -&gt; OrganizationDirectory|1.0.0</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;PartOrganizationPartContainer&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Creates part:organization part container aggregating 1 child rule(s)</span>\r\n    KBVPRERPBundle<span style=\"color: navy\"><b> -&gt; </b></span>targetParameterRxprescriptionParameter77d85b46.part<b> as </b><span style=\"color: maroon\">targetPartPractitionerParte111e9d1</span><b> then</b><span style=\"color: navy\"> {\r\n</span>      KBVPRERPBundle<span style=\"color: navy\"><b> -&gt; </b></span>targetPartPractitionerParte111e9d1.name = <span style=\"color: blue\">'practitioner'</span> <i>&quot;SetPartPractitionerName&quot;</i><span style=\"color: navy\">;</span>\r\n      KBVPRERPBundle.entry<b> as </b><span style=\"color: maroon\">sourceBundleEntryAusstellendeverschreibendeverantwortlichepersb5</span><b> where </b>resource is Practitioner<b> then</b><span style=\"color: navy\"> {\r\n</span>        sourceBundleEntryAusstellendeverschreibendeverantwortlichepersb5.resource<b> as </b><span style=\"color: maroon\">sourceBundleEntryAusstellendeverschreibendeverantwortlicheperse9</span><b> then</b><span style=\"color: navy\"> {\r\n</span>          sourceBundleEntryAusstellendeverschreibendeverantwortlicheperse9<span style=\"color: navy\"><b> -&gt; </b></span>targetPartPractitionerParte111e9d1.resource = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">targetParameterRxprescriptionPartPractitionerResourceResource62d</span><b> then </b>KBVPrForPractitionerMap<span style=\"color: navy\">(</span><span style=\"color: maroon\">sourceBundleEntryAusstellendeverschreibendeverantwortlicheperse9</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">targetParameterRxprescriptionPartPractitionerResourceResource62d</span><span style=\"color: navy\">)</span> <i>&quot;CallKbvprforpractitionermap&quot;</i><span style=\"color: navy\">;</span>\r\n        <span style=\"color: navy\">}</span> <i>&quot;BundleEntryAusstellendeverschreibendeverantwortlichepersonResour&quot;</i><span style=\"color: navy\">;</span>\r\n      <span style=\"color: navy\">}</span> <i>&quot;BundleEntryAusstellendeverschreibendeverantwortlichepersonResour&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Bundle.entry:AusstellendeVerschreibendeVerantwortlichePerson.resource -&gt; .parameter:rxPrescription.part:practitioner.resource using KBV_PR_FOR_Practitioner|1.3.0 -&gt; PractitionerDirectory|1.0.0</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;PartPractitionerPartContainer&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Creates part:practitioner part container aggregating 1 child rule(s)</span>\r\n    KBVPRERPBundle<span style=\"color: navy\"><b> -&gt; </b></span>targetParameterRxprescriptionParameter77d85b46.part<b> as </b><span style=\"color: maroon\">targetPartPrescriptionidPartee663288</span><b> then</b><span style=\"color: navy\"> {\r\n</span>      KBVPRERPBundle<span style=\"color: navy\"><b> -&gt; </b></span>targetPartPrescriptionidPartee663288.name = <span style=\"color: blue\">'prescriptionId'</span> <i>&quot;SetPartPrescriptionidName&quot;</i><span style=\"color: navy\">;</span>\r\n      KBVPRERPBundle.identifier<b> as </b><span style=\"color: maroon\">inlinesourceParametersParameterRxprescriptionPartPrescriptionidV</span><b> then</b><span style=\"color: navy\"> {\r\n</span>        inlinesourceParametersParameterRxprescriptionPartPrescriptionidV.value<b> as </b><span style=\"color: maroon\">inlinesourceParametersParameterRxprescriptionPartPrescriptionidV</span><span style=\"color: navy\"><b> -&gt; </b></span>targetPartPrescriptionidPartee663288.value = <span style=\"color: maroon\">inlinesourceParametersParameterRxprescriptionPartPrescriptionidV</span><b> as </b><span style=\"color: maroon\">inlinetargetParametersParameterRxprescriptionPartPrescriptionidV</span> <i>&quot;InlineParametersParameterRxprescriptionPartPrescriptionidValueX9&quot;</i><span style=\"color: navy\">;</span>\r\n      <span style=\"color: navy\">}</span> <i>&quot;InlineParametersParameterRxprescriptionPartPrescriptionidValueX9&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Automatic copy</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;PartPrescriptionidPartContainer&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Creates part:prescriptionId part container aggregating 1 child rule(s)</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;ParameterRxprescriptionContainer&quot;</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Creates parameter:rxPrescription parameter container aggregating 6 part(s)</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
      },
      "url" : "https://gematik.de/fhir/structure-comparer/StructureMap/KBVPrErpBundleMap",
      "version" : "2.0.0-ballot.2",
      "name" : "KBVPrErpBundleMap",
      "status" : "draft",
      "date" : "2026-02-02",
      "publisher" : "gematik GmbH",
      "contact" : [
        {
          "name" : "gematik GmbH",
          "telecom" : [
            {
              "system" : "url",
              "value" : "https://gematik.de"
            },
            {
              "system" : "email",
              "value" : "erp-umsetzung@gematik.de"
            }
          ]
        }
      ],
      "description" : "Auto-generated StructureMap for transformation KBV_PR_ERP_Bundle|1.4.0 -> EPAOpProvidePrescriptionERPInputParameters|1.3.0",
      "jurisdiction" : [
        {
          "coding" : [
            {
              "system" : "urn:iso:std:iso:3166",
              "code" : "DE",
              "display" : "Germany"
            }
          ]
        }
      ],
      "structure" : [
        {
          "url" : "https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle",
          "mode" : "source",
          "alias" : "KBVPRERPBundle"
        },
        {
          "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters",
          "mode" : "target",
          "alias" : "EPAOpProvidePrescriptionERPInputParameters"
        }
      ],
      "import" : [
        🔗 "https://gematik.de/fhir/structure-comparer/StructureMap/KBVPrErpMedicationCompoundingMap"🔗 ,
        "https://gematik.de/fhir/structure-comparer/StructureMap/KBVPrErpMedicationFreetextMap"🔗 ,
        "https://gematik.de/fhir/structure-comparer/StructureMap/KBVPrErpMedicationIngredientMap"🔗 ,
        "https://gematik.de/fhir/structure-comparer/StructureMap/KBVPrErpMedicationPznMap"🔗 ,
        "https://gematik.de/fhir/structure-comparer/StructureMap/KBVPrErpPrescriptionMap"🔗 ,
        "https://gematik.de/fhir/structure-comparer/StructureMap/KBVPrForOrganizationMap"🔗 ,
        "https://gematik.de/fhir/structure-comparer/StructureMap/KBVPrForPractitionerMap"
      ],
      "group" : [
        {
          "name" : "KBVPrErpBundleMap",
          "typeMode" : "types",
          "documentation" : "Transformation generated for KBV_PR_ERP_Bundle|1.4.0 -> EPAOpProvidePrescriptionERPInputParameters|1.3.0",
          "input" : [
            {
              "name" : "KBVPRERPBundle",
              "type" : "KBVPRERPBundle",
              "mode" : "source"
            },
            {
              "name" : "EPAOpProvidePrescriptionERPInputParameters",
              "type" : "EPAOpProvidePrescriptionERPInputParameters",
              "mode" : "target"
            }
          ],
          "rule" : [
            {
              "name" : "ParameterRxprescriptionContainer",
              "source" : [
                {
                  "context" : "KBVPRERPBundle"
                }
              ],
              "target" : [
                {
                  "context" : "EPAOpProvidePrescriptionERPInputParameters",
                  "contextType" : "variable",
                  "element" : "parameter",
                  "variable" : "targetParameterRxprescriptionParameter77d85b46"
                }
              ],
              "rule" : [
                {
                  "name" : "SetParameterRxprescriptionName",
                  "source" : [
                    {
                      "context" : "KBVPRERPBundle"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "targetParameterRxprescriptionParameter77d85b46",
                      "contextType" : "variable",
                      "element" : "name",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "rxPrescription"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "PartAuthoredonPartContainer",
                  "source" : [
                    {
                      "context" : "KBVPRERPBundle"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "targetParameterRxprescriptionParameter77d85b46",
                      "contextType" : "variable",
                      "element" : "part",
                      "variable" : "targetPartAuthoredonPartb106c48f"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "SetPartAuthoredonName",
                      "source" : [
                        {
                          "context" : "KBVPRERPBundle"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "targetPartAuthoredonPartb106c48f",
                          "contextType" : "variable",
                          "element" : "name",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "authoredOn"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "InlineParametersParameterRxprescriptionPartAuthoredonValueX1c6fc",
                      "source" : [
                        {
                          "context" : "KBVPRERPBundle",
                          "element" : "entry",
                          "variable" : "inlinesourceParametersParameterRxprescriptionPartAuthoredonValue",
                          "condition" : "resource.meta.profile.where($this.contains('https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription')).exists()"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "InlineParametersParameterRxprescriptionPartAuthoredonValueX1c6fc",
                          "source" : [
                            {
                              "context" : "inlinesourceParametersParameterRxprescriptionPartAuthoredonValue",
                              "element" : "resource",
                              "variable" : "inlinesourceParametersParameterRxprescriptionPartAuthoredonValue"
                            }
                          ],
                          "rule" : [
                            {
                              "name" : "InlineParametersParameterRxprescriptionPartAuthoredonValueX1c6fc",
                              "source" : [
                                {
                                  "context" : "inlinesourceParametersParameterRxprescriptionPartAuthoredonValue",
                                  "element" : "authoredOn",
                                  "variable" : "inlinesourceParametersParameterRxprescriptionPartAuthoredonValue"
                                }
                              ],
                              "target" : [
                                {
                                  "context" : "targetPartAuthoredonPartb106c48f",
                                  "contextType" : "variable",
                                  "element" : "value",
                                  "variable" : "inlinetargetParametersParameterRxprescriptionPartAuthoredonValue",
                                  "transform" : "copy",
                                  "parameter" : [
                                    {
                                      "valueId" : "inlinesourceParametersParameterRxprescriptionPartAuthoredonValue"
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ],
                      "documentation" : "Automatic copy"
                    }
                  ],
                  "documentation" : "Creates part:authoredOn part container aggregating 1 child rule(s)"
                },
                {
                  "name" : "PartMedicationPartContainer",
                  "source" : [
                    {
                      "context" : "KBVPRERPBundle"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "targetParameterRxprescriptionParameter77d85b46",
                      "contextType" : "variable",
                      "element" : "part",
                      "variable" : "targetPartMedicationPart88f31ec4"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "SetPartMedicationName",
                      "source" : [
                        {
                          "context" : "KBVPRERPBundle"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "targetPartMedicationPart88f31ec4",
                          "contextType" : "variable",
                          "element" : "name",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "medication"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "BundleEntryRezeptierdatenpznverordnungResource7400f329",
                      "source" : [
                        {
                          "context" : "KBVPRERPBundle",
                          "element" : "entry",
                          "variable" : "sourceBundleEntryRezeptierdatenpznverordnungResource0Entry4c4ad0",
                          "condition" : "resource is Medication"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "BundleEntryRezeptierdatenpznverordnungResource7400f329",
                          "source" : [
                            {
                              "context" : "sourceBundleEntryRezeptierdatenpznverordnungResource0Entry4c4ad0",
                              "element" : "resource",
                              "variable" : "sourceBundleEntryRezeptierdatenpznverordnungResource1Resource3bd"
                            }
                          ],
                          "rule" : [
                            {
                              "name" : "CallKbvprerpmedicationpznmap",
                              "source" : [
                                {
                                  "context" : "sourceBundleEntryRezeptierdatenpznverordnungResource1Resource3bd"
                                }
                              ],
                              "target" : [
                                {
                                  "context" : "targetPartMedicationPart88f31ec4",
                                  "contextType" : "variable",
                                  "element" : "resource",
                                  "variable" : "targetParameterRxprescriptionPartMedicationResourceResource38c62",
                                  "transform" : "create",
                                  "parameter" : [
                                    {
                                      "valueString" : "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"
                                    }
                                  ]
                                }
                              ],
                              "dependent" : [
                                {
                                  "name" : "KBVPrErpMedicationPznMap",
                                  "variable" : [
                                    "sourceBundleEntryRezeptierdatenpznverordnungResource1Resource3bd",
                                    "targetParameterRxprescriptionPartMedicationResourceResource38c62"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ],
                      "documentation" : "Bundle.entry:RezeptierdatenPZNVerordnung.resource -> .parameter:rxPrescription.part:medication.resource using KBV_PR_ERP_Medication_PZN|1.4.0 -> EPAMedication|1.3.0"
                    },
                    {
                      "name" : "BundleEntryRezeptierdatenwirkstoffverordnungResource7400f329",
                      "source" : [
                        {
                          "context" : "KBVPRERPBundle",
                          "element" : "entry",
                          "variable" : "sourceBundleEntryRezeptierdatenwirkstoffverordnungResource0Ent6b",
                          "condition" : "resource is Medication"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "BundleEntryRezeptierdatenwirkstoffverordnungResource7400f329",
                          "source" : [
                            {
                              "context" : "sourceBundleEntryRezeptierdatenwirkstoffverordnungResource0Ent6b",
                              "element" : "resource",
                              "variable" : "sourceBundleEntryRezeptierdatenwirkstoffverordnungResource1Res9f"
                            }
                          ],
                          "rule" : [
                            {
                              "name" : "CallKbvprerpmedicationingredientmap",
                              "source" : [
                                {
                                  "context" : "sourceBundleEntryRezeptierdatenwirkstoffverordnungResource1Res9f"
                                }
                              ],
                              "target" : [
                                {
                                  "context" : "targetPartMedicationPart88f31ec4",
                                  "contextType" : "variable",
                                  "element" : "resource",
                                  "variable" : "targetParameterRxprescriptionPartMedicationResourceResource38c62",
                                  "transform" : "create",
                                  "parameter" : [
                                    {
                                      "valueString" : "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"
                                    }
                                  ]
                                }
                              ],
                              "dependent" : [
                                {
                                  "name" : "KBVPrErpMedicationIngredientMap",
                                  "variable" : [
                                    "sourceBundleEntryRezeptierdatenwirkstoffverordnungResource1Res9f",
                                    "targetParameterRxprescriptionPartMedicationResourceResource38c62"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ],
                      "documentation" : "Bundle.entry:RezeptierdatenWirkstoffverordnung.resource -> .parameter:rxPrescription.part:medication.resource using KBV_PR_ERP_Medication_Ingredient|1.4.0 -> EPAMedication|1.3.0"
                    },
                    {
                      "name" : "BundleEntryRezeptierdatenrezepturverordnungResource7400f329",
                      "source" : [
                        {
                          "context" : "KBVPRERPBundle",
                          "element" : "entry",
                          "variable" : "sourceBundleEntryRezeptierdatenrezepturverordnungResource0Entr83",
                          "condition" : "resource is Medication"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "BundleEntryRezeptierdatenrezepturverordnungResource7400f329",
                          "source" : [
                            {
                              "context" : "sourceBundleEntryRezeptierdatenrezepturverordnungResource0Entr83",
                              "element" : "resource",
                              "variable" : "sourceBundleEntryRezeptierdatenrezepturverordnungResource1Resocd"
                            }
                          ],
                          "rule" : [
                            {
                              "name" : "CallKbvprerpmedicationcompoundingmap",
                              "source" : [
                                {
                                  "context" : "sourceBundleEntryRezeptierdatenrezepturverordnungResource1Resocd"
                                }
                              ],
                              "target" : [
                                {
                                  "context" : "targetPartMedicationPart88f31ec4",
                                  "contextType" : "variable",
                                  "element" : "resource",
                                  "variable" : "targetParameterRxprescriptionPartMedicationResourceResource38c62",
                                  "transform" : "create",
                                  "parameter" : [
                                    {
                                      "valueString" : "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"
                                    }
                                  ]
                                }
                              ],
                              "dependent" : [
                                {
                                  "name" : "KBVPrErpMedicationCompoundingMap",
                                  "variable" : [
                                    "sourceBundleEntryRezeptierdatenrezepturverordnungResource1Resocd",
                                    "targetParameterRxprescriptionPartMedicationResourceResource38c62"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ],
                      "documentation" : "Bundle.entry:RezeptierdatenRezepturverordnung.resource -> .parameter:rxPrescription.part:medication.resource using KBV_PR_ERP_Medication_Compounding|1.4.0 -> EPAMedication|1.3.0"
                    },
                    {
                      "name" : "BundleEntryRezeptierdatenfreitextverordnungResource7400f329",
                      "source" : [
                        {
                          "context" : "KBVPRERPBundle",
                          "element" : "entry",
                          "variable" : "sourceBundleEntryRezeptierdatenfreitextverordnungResource0Entrb4",
                          "condition" : "resource is Medication"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "BundleEntryRezeptierdatenfreitextverordnungResource7400f329",
                          "source" : [
                            {
                              "context" : "sourceBundleEntryRezeptierdatenfreitextverordnungResource0Entrb4",
                              "element" : "resource",
                              "variable" : "sourceBundleEntryRezeptierdatenfreitextverordnungResource1Resob3"
                            }
                          ],
                          "rule" : [
                            {
                              "name" : "CallKbvprerpmedicationfreetextmap",
                              "source" : [
                                {
                                  "context" : "sourceBundleEntryRezeptierdatenfreitextverordnungResource1Resob3"
                                }
                              ],
                              "target" : [
                                {
                                  "context" : "targetPartMedicationPart88f31ec4",
                                  "contextType" : "variable",
                                  "element" : "resource",
                                  "variable" : "targetParameterRxprescriptionPartMedicationResourceResource38c62",
                                  "transform" : "create",
                                  "parameter" : [
                                    {
                                      "valueString" : "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"
                                    }
                                  ]
                                }
                              ],
                              "dependent" : [
                                {
                                  "name" : "KBVPrErpMedicationFreetextMap",
                                  "variable" : [
                                    "sourceBundleEntryRezeptierdatenfreitextverordnungResource1Resob3",
                                    "targetParameterRxprescriptionPartMedicationResourceResource38c62"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ],
                      "documentation" : "Bundle.entry:RezeptierdatenFreitextverordnung.resource -> .parameter:rxPrescription.part:medication.resource using KBV_PR_ERP_Medication_FreeText|1.4.0 -> EPAMedication|1.3.0"
                    }
                  ],
                  "documentation" : "Creates part:medication part container aggregating 4 child rule(s)"
                },
                {
                  "name" : "PartMedicationrequestPartContainer",
                  "source" : [
                    {
                      "context" : "KBVPRERPBundle"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "targetParameterRxprescriptionParameter77d85b46",
                      "contextType" : "variable",
                      "element" : "part",
                      "variable" : "targetPartMedicationrequestPart3ea10d80"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "SetPartMedicationrequestName",
                      "source" : [
                        {
                          "context" : "KBVPRERPBundle"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "targetPartMedicationrequestPart3ea10d80",
                          "contextType" : "variable",
                          "element" : "name",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "medicationRequest"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "BundleEntryVerordnungarzneimittelResource890c831b",
                      "source" : [
                        {
                          "context" : "KBVPRERPBundle",
                          "element" : "entry",
                          "variable" : "sourceBundleEntryVerordnungarzneimittelResource0Entry3c6c2e1b",
                          "condition" : "resource is MedicationRequest"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "BundleEntryVerordnungarzneimittelResource890c831b",
                          "source" : [
                            {
                              "context" : "sourceBundleEntryVerordnungarzneimittelResource0Entry3c6c2e1b",
                              "element" : "resource",
                              "variable" : "sourceBundleEntryVerordnungarzneimittelResource1Resource61f06fbc"
                            }
                          ],
                          "rule" : [
                            {
                              "name" : "CallKbvprerpprescriptionmap",
                              "source" : [
                                {
                                  "context" : "sourceBundleEntryVerordnungarzneimittelResource1Resource61f06fbc"
                                }
                              ],
                              "target" : [
                                {
                                  "context" : "targetPartMedicationrequestPart3ea10d80",
                                  "contextType" : "variable",
                                  "element" : "resource",
                                  "variable" : "targetParameterRxprescriptionPartMedicationrequestResourceReso52",
                                  "transform" : "create",
                                  "parameter" : [
                                    {
                                      "valueString" : "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"
                                    }
                                  ]
                                }
                              ],
                              "dependent" : [
                                {
                                  "name" : "KBVPrErpPrescriptionMap",
                                  "variable" : [
                                    "sourceBundleEntryVerordnungarzneimittelResource1Resource61f06fbc",
                                    "targetParameterRxprescriptionPartMedicationrequestResourceReso52"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ],
                      "documentation" : "Bundle.entry:VerordnungArzneimittel.resource -> .parameter:rxPrescription.part:medicationRequest.resource using KBV_PR_ERP_Prescription|1.4.0 -> EPAMedicationRequest|1.3.0"
                    }
                  ],
                  "documentation" : "Creates part:medicationRequest part container aggregating 1 child rule(s)"
                },
                {
                  "name" : "PartOrganizationPartContainer",
                  "source" : [
                    {
                      "context" : "KBVPRERPBundle"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "targetParameterRxprescriptionParameter77d85b46",
                      "contextType" : "variable",
                      "element" : "part",
                      "variable" : "targetPartOrganizationPart5252e12d"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "SetPartOrganizationName",
                      "source" : [
                        {
                          "context" : "KBVPRERPBundle"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "targetPartOrganizationPart5252e12d",
                          "contextType" : "variable",
                          "element" : "name",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "organization"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "BundleEntryEinrichtungResourceB36f36fb",
                      "source" : [
                        {
                          "context" : "KBVPRERPBundle",
                          "element" : "entry",
                          "variable" : "sourceBundleEntryEinrichtungResource0Entry6bfa77fa",
                          "condition" : "resource is Organization"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "BundleEntryEinrichtungResourceB36f36fb",
                          "source" : [
                            {
                              "context" : "sourceBundleEntryEinrichtungResource0Entry6bfa77fa",
                              "element" : "resource",
                              "variable" : "sourceBundleEntryEinrichtungResource1Resource45328e4f"
                            }
                          ],
                          "rule" : [
                            {
                              "name" : "CallKbvprfororganizationmap",
                              "source" : [
                                {
                                  "context" : "sourceBundleEntryEinrichtungResource1Resource45328e4f"
                                }
                              ],
                              "target" : [
                                {
                                  "context" : "targetPartOrganizationPart5252e12d",
                                  "contextType" : "variable",
                                  "element" : "resource",
                                  "variable" : "targetParameterRxprescriptionPartOrganizationResourceResource43b",
                                  "transform" : "create",
                                  "parameter" : [
                                    {
                                      "valueString" : "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"
                                    }
                                  ]
                                }
                              ],
                              "dependent" : [
                                {
                                  "name" : "KBVPrForOrganizationMap",
                                  "variable" : [
                                    "sourceBundleEntryEinrichtungResource1Resource45328e4f",
                                    "targetParameterRxprescriptionPartOrganizationResourceResource43b"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ],
                      "documentation" : "Bundle.entry:Einrichtung.resource -> .parameter:rxPrescription.part:organization.resource using KBV_PR_FOR_Organization|1.3.0 -> OrganizationDirectory|1.0.0"
                    }
                  ],
                  "documentation" : "Creates part:organization part container aggregating 1 child rule(s)"
                },
                {
                  "name" : "PartPractitionerPartContainer",
                  "source" : [
                    {
                      "context" : "KBVPRERPBundle"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "targetParameterRxprescriptionParameter77d85b46",
                      "contextType" : "variable",
                      "element" : "part",
                      "variable" : "targetPartPractitionerParte111e9d1"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "SetPartPractitionerName",
                      "source" : [
                        {
                          "context" : "KBVPRERPBundle"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "targetPartPractitionerParte111e9d1",
                          "contextType" : "variable",
                          "element" : "name",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "practitioner"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "BundleEntryAusstellendeverschreibendeverantwortlichepersonResour",
                      "source" : [
                        {
                          "context" : "KBVPRERPBundle",
                          "element" : "entry",
                          "variable" : "sourceBundleEntryAusstellendeverschreibendeverantwortlichepersb5",
                          "condition" : "resource is Practitioner"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "BundleEntryAusstellendeverschreibendeverantwortlichepersonResour",
                          "source" : [
                            {
                              "context" : "sourceBundleEntryAusstellendeverschreibendeverantwortlichepersb5",
                              "element" : "resource",
                              "variable" : "sourceBundleEntryAusstellendeverschreibendeverantwortlicheperse9"
                            }
                          ],
                          "rule" : [
                            {
                              "name" : "CallKbvprforpractitionermap",
                              "source" : [
                                {
                                  "context" : "sourceBundleEntryAusstellendeverschreibendeverantwortlicheperse9"
                                }
                              ],
                              "target" : [
                                {
                                  "context" : "targetPartPractitionerParte111e9d1",
                                  "contextType" : "variable",
                                  "element" : "resource",
                                  "variable" : "targetParameterRxprescriptionPartPractitionerResourceResource62d",
                                  "transform" : "create",
                                  "parameter" : [
                                    {
                                      "valueString" : "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"
                                    }
                                  ]
                                }
                              ],
                              "dependent" : [
                                {
                                  "name" : "KBVPrForPractitionerMap",
                                  "variable" : [
                                    "sourceBundleEntryAusstellendeverschreibendeverantwortlicheperse9",
                                    "targetParameterRxprescriptionPartPractitionerResourceResource62d"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ],
                      "documentation" : "Bundle.entry:AusstellendeVerschreibendeVerantwortlichePerson.resource -> .parameter:rxPrescription.part:practitioner.resource using KBV_PR_FOR_Practitioner|1.3.0 -> PractitionerDirectory|1.0.0"
                    }
                  ],
                  "documentation" : "Creates part:practitioner part container aggregating 1 child rule(s)"
                },
                {
                  "name" : "PartPrescriptionidPartContainer",
                  "source" : [
                    {
                      "context" : "KBVPRERPBundle"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "targetParameterRxprescriptionParameter77d85b46",
                      "contextType" : "variable",
                      "element" : "part",
                      "variable" : "targetPartPrescriptionidPartee663288"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "SetPartPrescriptionidName",
                      "source" : [
                        {
                          "context" : "KBVPRERPBundle"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "targetPartPrescriptionidPartee663288",
                          "contextType" : "variable",
                          "element" : "name",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "prescriptionId"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "InlineParametersParameterRxprescriptionPartPrescriptionidValueX9",
                      "source" : [
                        {
                          "context" : "KBVPRERPBundle",
                          "element" : "identifier",
                          "variable" : "inlinesourceParametersParameterRxprescriptionPartPrescriptionidV"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "InlineParametersParameterRxprescriptionPartPrescriptionidValueX9",
                          "source" : [
                            {
                              "context" : "inlinesourceParametersParameterRxprescriptionPartPrescriptionidV",
                              "element" : "value",
                              "variable" : "inlinesourceParametersParameterRxprescriptionPartPrescriptionidV"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "targetPartPrescriptionidPartee663288",
                              "contextType" : "variable",
                              "element" : "value",
                              "variable" : "inlinetargetParametersParameterRxprescriptionPartPrescriptionidV",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "inlinesourceParametersParameterRxprescriptionPartPrescriptionidV"
                                }
                              ]
                            }
                          ]
                        }
                      ],
                      "documentation" : "Automatic copy"
                    }
                  ],
                  "documentation" : "Creates part:prescriptionId part container aggregating 1 child rule(s)"
                }
              ],
              "documentation" : "Creates parameter:rxPrescription parameter container aggregating 6 part(s)"
            }
          ]
        }
      ]
    }