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

: KBVPrErpBundleMap - TTL Representation

Draft as of 2026-02-02

Raw ttl | Download

@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

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

# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/StructureMap/KBVPrErpBundleMap.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl ;
  owl:versionIRI <http://build.fhir.org/StructureMap/KBVPrErpBundleMap.ttl> .