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

: KBVPrErpMedicationFreetextMap - TTL Representation

Active 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/KBVPrErpMedicationFreetextMap> a fhir:StructureMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "KBVPrErpMedicationFreetextMap"] ;
  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 KBVPrErpMedicationFreetextMap</b></p><a name=\"KBVPrErpMedicationFreetextMap\"> </a><a name=\"hcKBVPrErpMedicationFreetextMap\"> </a><pre class=\"fml\">#xD;\n<b>map</b><span style=\"color: navy\"> \"</span>https://gematik.de/fhir/structure-comparer/StructureMap/KBVPrErpMedicationFreetextMap<span style=\"color: navy\">\" = \"</span>KBVPrErpMedicationFreetextMap<span style=\"color: navy\">\"#xD;\n#xD;\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Auto-generated StructureMap for KBV_PR_ERP_Medication_FreeText|1.4.0 -&gt; EPAMedication|1.3.0</span>#xD;\n#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span>https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_FreeText<span style=\"color: navy\">\" </span><b>alias </b>KBVPRERPMedicationFreeText <b>as </b><b>source</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span>https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication<span style=\"color: navy\">\" </span><b>alias </b>EPAMedication <b>as </b><b>target</b>#xD;\n#xD;\n<span style=\"color: navy\">// </span><span style=\"color: green\">Mapping generated for KBV_PR_ERP_Medication_FreeText|1.4.0 -&gt; EPAMedication|1.3.0</span>#xD;\n<b>group </b>KBVPrErpMedicationFreetextMap<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">KBVPRERPMedicationFreeText</span><span style=\"color: navy\"> : </span>KBVPRERPMedicationFreeText, <b>target</b> <span style=\"color: maroon\">EPAMedication</span><span style=\"color: navy\"> : </span>EPAMedication<span style=\"color: navy\">)</span><b> &lt;&lt;types&gt;&gt;</b><span style=\"color: navy\"> {#xD;\n</span>  KBVPRERPMedicationFreeText.batch<b> as </b><span style=\"color: maroon\">srcKBVPRERPMedicationFreeTextBatchb0aceee1</span><span style=\"color: navy\"><b> -&gt; </b></span>EPAMedication.batch = <span style=\"color: maroon\">srcKBVPRERPMedicationFreeTextBatchb0aceee1</span><b> as </b><span style=\"color: maroon\">tgtEPAMedicationBatch90ce2ac1</span> <i>\"MedicationBatch235a7d75\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Copied to 'Medication.batch'</span>#xD;\n  KBVPRERPMedicationFreeText.code<b> as </b><span style=\"color: maroon\">srcKBVPRERPMedicationFreeTextCode4b0e0f30</span><span style=\"color: navy\"><b> -&gt; </b></span>EPAMedication.code = <span style=\"color: maroon\">srcKBVPRERPMedicationFreeTextCode4b0e0f30</span><b> as </b><span style=\"color: maroon\">tgtEPAMedicationCodea6251800</span> <i>\"MedicationCoded98e85bf\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Automatic copy</span>#xD;\n  KBVPRERPMedicationFreeText.extension<b> as </b><span style=\"color: maroon\">srcKBVPRERPMedicationFreeTextExtensionb00bf49a</span><b> where </b>url != 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category' and url != 'normSizeCode' and url != 'http://fhir.de/StructureDefinition/normgroesse' and url != 'Impfstoff' and url != 'https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type' and url != 'valueBoolean' and url != 'packaging' and url != 'valueCoding' and url != 'type' and url != 'Normgroesse' and url != 'https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension' and url != 'manufacturingInstructions' and url != 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine' and url != 'Kategorie' and url != 'https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension' and url != 'drugCategory' and url != 'rxPrescriptionProcessIdentifier' and url != 'Arzneimittelkategorie' and url != 'isVaccine'<span style=\"color: navy\"><b> -&gt; </b></span>EPAMedication.extension = <span style=\"color: maroon\">srcKBVPRERPMedicationFreeTextExtensionb00bf49a</span><b> as </b><span style=\"color: maroon\">tgtEPAMedicationExtension59cd7688</span> <i>\"MedicationExtension9f8d5121\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Automatic copy</span>#xD;\n  KBVPRERPMedicationFreeText.extension<b> as </b><span style=\"color: maroon\">srcKBVPRERPMedicationFreeTextExtensionArzneimittelkategoriefdd08</span><b> where </b>url = 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category' and url = 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category'<span style=\"color: navy\"><b> -&gt; </b></span> EPAMedication.extension = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Extension'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tgtEPAMedicationExtensionDrugcategory059b5c6b</span><span style=\"color: navy\">, </span> tgtEPAMedicationExtensionDrugcategory059b5c6b.url = <span style=\"color: blue\">'https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension'</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    srcKBVPRERPMedicationFreeTextExtensionArzneimittelkategoriefdd08.value<b> as </b><span style=\"color: maroon\">srcMedicationExtensionDrugcategoryValueXbd04993e</span><span style=\"color: navy\"><b> -&gt; </b></span>tgtEPAMedicationExtensionDrugcategory059b5c6b.value = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tgtMedicationExtensionDrugcategoryValueXbd04993e</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      srcMedicationExtensionDrugcategoryValueXbd04993e.code<b> as </b><span style=\"color: maroon\">srcMedicationExtensionDrugcategoryValueXCodec72163f2</span><span style=\"color: navy\"><b> -&gt; </b></span>tgtMedicationExtensionDrugcategoryValueXbd04993e.code = <span style=\"color: maroon\">srcMedicationExtensionDrugcategoryValueXCodec72163f2</span><b> as </b><span style=\"color: maroon\">tgtMedicationExtensionDrugcategoryValueXCodec72163f2</span> <i>\"MedicationExtensionDrugcategoryValueXCodec72163f2\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Copied drugCategory code</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"MedicationExtensionDrugcategoryValueXbd04993e\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Copied from 'Medication.extension:Arzneimittelkategorie.value[x]'</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"MedicationExtensionDrugcategorye963e601\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Copied from 'Medication.extension:Arzneimittelkategorie'</span>#xD;\n  KBVPRERPMedicationFreeText.extension<b> as </b><span style=\"color: maroon\">srcKBVPRERPMedicationFreeTextExtensionImpfstoff0967a597</span><b> where </b>url = 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine' and url = 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine'<span style=\"color: navy\"><b> -&gt; </b></span> EPAMedication.extension = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Extension'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tgtEPAMedicationExtensionIsvaccinea7742b5a</span><span style=\"color: navy\">, </span> tgtEPAMedicationExtensionIsvaccinea7742b5a.url = <span style=\"color: blue\">'https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension'</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    srcKBVPRERPMedicationFreeTextExtensionImpfstoff0967a597.value<b> as </b><span style=\"color: maroon\">srcMedicationExtensionIsvaccineValueXac9b8b1e</span><span style=\"color: navy\"><b> -&gt; </b></span>tgtEPAMedicationExtensionIsvaccinea7742b5a.value = <span style=\"color: maroon\">srcMedicationExtensionIsvaccineValueXac9b8b1e</span><b> as </b><span style=\"color: maroon\">tgtMedicationExtensionIsvaccineValueXac9b8b1e</span> <i>\"MedicationExtensionIsvaccineValueXac9b8b1e\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Copied from 'Medication.extension:Impfstoff.value[x]'</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"MedicationExtensionIsvaccine98c25b06\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Copied from 'Medication.extension:Impfstoff'</span>#xD;\n  KBVPRERPMedicationFreeText<b> as </b><span style=\"color: maroon\">manualsrcMedicationExtensionType61374588</span><span style=\"color: navy\"><b> -&gt; </b></span>EPAMedication.extension<b> as </b><span style=\"color: maroon\">tgtEPAMedicationExtensionType1a2ef415</span> <i>\"MedicationExtensionType61374588\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Manual action required | Fester Wert: 781405001, Medicinal product package (product) | Quelle: Medication.extension:type</span>#xD;\n  KBVPRERPMedicationFreeText.form<b> as </b><span style=\"color: maroon\">srcKBVPRERPMedicationFreeTextForm27d26e2d</span><span style=\"color: navy\"><b> -&gt; </b></span>EPAMedication.form = <span style=\"color: maroon\">srcKBVPRERPMedicationFreeTextForm27d26e2d</span><b> as </b><span style=\"color: maroon\">tgtEPAMedicationForm691ed321</span> <i>\"MedicationForm5a0bbd5f\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Automatic copy</span>#xD;\n  KBVPRERPMedicationFreeText.meta<b> as </b><span style=\"color: maroon\">srcKBVPRERPMedicationFreeTextMeta8de074d5</span><span style=\"color: navy\"><b> -&gt; </b></span>EPAMedication.meta = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Meta'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tgtEPAMedicationMeta8591b307</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    srcKBVPRERPMedicationFreeTextMeta8de074d5<b> as </b><span style=\"color: maroon\">srcMedicationMetaProfile399adfc6</span><span style=\"color: navy\"><b> -&gt; </b></span>tgtEPAMedicationMeta8591b307.profile = <span style=\"color: blue\">'https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication'</span><b> as </b><span style=\"color: maroon\">tgtMedicationMetaProfile399adfc6</span> <i>\"MedicationMetaProfile399adfc6\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Fixed value 'https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication'</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"MedicationMetaf9f176bc\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Automatic copy</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/KBVPrErpMedicationFreetextMap"] ;
  fhir:StructureMap.version [ fhir:value "2.0.0-ballot.2"] ;
  fhir:StructureMap.name [ fhir:value "KBVPrErpMedicationFreetextMap"] ;
  fhir:StructureMap.status [ fhir:value "active"] ;
  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 KBV_PR_ERP_Medication_FreeText|1.4.0 -> EPAMedication|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_Medication_FreeText" ;
       fhir:link <https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_FreeText>
     ] ;
     fhir:StructureMap.structure.mode [ fhir:value "source" ] ;
     fhir:StructureMap.structure.alias [ fhir:value "KBVPRERPMedicationFreeText" ]
  ], [
     fhir:index 1 ;
     fhir:StructureMap.structure.url [
       fhir:value "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ;
       fhir:link <https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication>
     ] ;
     fhir:StructureMap.structure.mode [ fhir:value "target" ] ;
     fhir:StructureMap.structure.alias [ fhir:value "EPAMedication" ]
  ] ;
  fhir:StructureMap.group [
     fhir:index 0 ;
     fhir:StructureMap.group.name [ fhir:value "KBVPrErpMedicationFreetextMap" ] ;
     fhir:StructureMap.group.typeMode [ fhir:value "types" ] ;
     fhir:StructureMap.group.documentation [ fhir:value "Mapping generated for KBV_PR_ERP_Medication_FreeText|1.4.0 -> EPAMedication|1.3.0" ] ;
     fhir:StructureMap.group.input [
       fhir:index 0 ;
       fhir:StructureMap.group.input.name [ fhir:value "KBVPRERPMedicationFreeText" ] ;
       fhir:StructureMap.group.input.type [ fhir:value "KBVPRERPMedicationFreeText" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "source" ]
     ], [
       fhir:index 1 ;
       fhir:StructureMap.group.input.name [ fhir:value "EPAMedication" ] ;
       fhir:StructureMap.group.input.type [ fhir:value "EPAMedication" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "target" ]
     ] ;
     fhir:StructureMap.group.rule [
       fhir:index 0 ;
       fhir:StructureMap.group.rule.name [ fhir:value "MedicationBatch235a7d75" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "KBVPRERPMedicationFreeText" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "batch" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "srcKBVPRERPMedicationFreeTextBatchb0aceee1" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "EPAMedication" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "batch" ] ;
         fhir:StructureMap.group.rule.target.variable [ fhir:value "tgtEPAMedicationBatch90ce2ac1" ] ;
         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 "srcKBVPRERPMedicationFreeTextBatchb0aceee1" ]
         ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Copied to 'Medication.batch'" ]
     ], [
       fhir:index 1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "MedicationCoded98e85bf" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "KBVPRERPMedicationFreeText" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "code" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "srcKBVPRERPMedicationFreeTextCode4b0e0f30" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "EPAMedication" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "code" ] ;
         fhir:StructureMap.group.rule.target.variable [ fhir:value "tgtEPAMedicationCodea6251800" ] ;
         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 "srcKBVPRERPMedicationFreeTextCode4b0e0f30" ]
         ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Automatic copy" ]
     ], [
       fhir:index 2 ;
       fhir:StructureMap.group.rule.name [ fhir:value "MedicationExtension9f8d5121" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "KBVPRERPMedicationFreeText" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "extension" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "srcKBVPRERPMedicationFreeTextExtensionb00bf49a" ] ;
         fhir:StructureMap.group.rule.source.condition [ fhir:value "url != 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category' and url != 'normSizeCode' and url != 'http://fhir.de/StructureDefinition/normgroesse' and url != 'Impfstoff' and url != 'https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type' and url != 'valueBoolean' and url != 'packaging' and url != 'valueCoding' and url != 'type' and url != 'Normgroesse' and url != 'https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension' and url != 'manufacturingInstructions' and url != 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine' and url != 'Kategorie' and url != 'https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension' and url != 'drugCategory' and url != 'rxPrescriptionProcessIdentifier' and url != 'Arzneimittelkategorie' and url != 'isVaccine'" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "EPAMedication" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "extension" ] ;
         fhir:StructureMap.group.rule.target.variable [ fhir:value "tgtEPAMedicationExtension59cd7688" ] ;
         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 "srcKBVPRERPMedicationFreeTextExtensionb00bf49a" ]
         ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Automatic copy" ]
     ], [
       fhir:index 3 ;
       fhir:StructureMap.group.rule.name [ fhir:value "MedicationExtensionDrugcategorye963e601" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "KBVPRERPMedicationFreeText" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "extension" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "srcKBVPRERPMedicationFreeTextExtensionArzneimittelkategoriefdd08" ] ;
         fhir:StructureMap.group.rule.source.condition [ fhir:value "url = 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category' and url = 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category'" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "EPAMedication" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "extension" ] ;
         fhir:StructureMap.group.rule.target.variable [ fhir:value "tgtEPAMedicationExtensionDrugcategory059b5c6b" ] ;
         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 "Extension" ]
         ]
       ], [
         fhir:index 1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "tgtEPAMedicationExtensionDrugcategory059b5c6b" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "url" ] ;
         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 "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension" ]
         ]
       ] ;
       fhir:StructureMap.group.rule.rule [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.name [ fhir:value "MedicationExtensionDrugcategoryValueXbd04993e" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "srcKBVPRERPMedicationFreeTextExtensionArzneimittelkategoriefdd08" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "value" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "srcMedicationExtensionDrugcategoryValueXbd04993e" ]
         ] ;
         fhir:StructureMap.group.rule.target [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.target.context [ fhir:value "tgtEPAMedicationExtensionDrugcategory059b5c6b" ] ;
           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 "tgtMedicationExtensionDrugcategoryValueXbd04993e" ] ;
           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 "Coding" ]
           ]
         ] ;
         fhir:StructureMap.group.rule.rule [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.name [ fhir:value "MedicationExtensionDrugcategoryValueXCodec72163f2" ] ;
           fhir:StructureMap.group.rule.source [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.source.context [ fhir:value "srcMedicationExtensionDrugcategoryValueXbd04993e" ] ;
             fhir:StructureMap.group.rule.source.element [ fhir:value "code" ] ;
             fhir:StructureMap.group.rule.source.variable [ fhir:value "srcMedicationExtensionDrugcategoryValueXCodec72163f2" ]
           ] ;
           fhir:StructureMap.group.rule.target [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.target.context [ fhir:value "tgtMedicationExtensionDrugcategoryValueXbd04993e" ] ;
             fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
             fhir:StructureMap.group.rule.target.element [ fhir:value "code" ] ;
             fhir:StructureMap.group.rule.target.variable [ fhir:value "tgtMedicationExtensionDrugcategoryValueXCodec72163f2" ] ;
             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 "srcMedicationExtensionDrugcategoryValueXCodec72163f2" ]
             ]
           ] ;
           fhir:StructureMap.group.rule.documentation [ fhir:value "Copied drugCategory code" ]
         ] ;
         fhir:StructureMap.group.rule.documentation [ fhir:value "Copied from 'Medication.extension:Arzneimittelkategorie.value[x]'" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Copied from 'Medication.extension:Arzneimittelkategorie'" ]
     ], [
       fhir:index 4 ;
       fhir:StructureMap.group.rule.name [ fhir:value "MedicationExtensionIsvaccine98c25b06" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "KBVPRERPMedicationFreeText" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "extension" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "srcKBVPRERPMedicationFreeTextExtensionImpfstoff0967a597" ] ;
         fhir:StructureMap.group.rule.source.condition [ fhir:value "url = 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine' and url = 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine'" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "EPAMedication" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "extension" ] ;
         fhir:StructureMap.group.rule.target.variable [ fhir:value "tgtEPAMedicationExtensionIsvaccinea7742b5a" ] ;
         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 "Extension" ]
         ]
       ], [
         fhir:index 1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "tgtEPAMedicationExtensionIsvaccinea7742b5a" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "url" ] ;
         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 "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension" ]
         ]
       ] ;
       fhir:StructureMap.group.rule.rule [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.name [ fhir:value "MedicationExtensionIsvaccineValueXac9b8b1e" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "srcKBVPRERPMedicationFreeTextExtensionImpfstoff0967a597" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "value" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "srcMedicationExtensionIsvaccineValueXac9b8b1e" ]
         ] ;
         fhir:StructureMap.group.rule.target [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.target.context [ fhir:value "tgtEPAMedicationExtensionIsvaccinea7742b5a" ] ;
           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 "tgtMedicationExtensionIsvaccineValueXac9b8b1e" ] ;
           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 "srcMedicationExtensionIsvaccineValueXac9b8b1e" ]
           ]
         ] ;
         fhir:StructureMap.group.rule.documentation [ fhir:value "Copied from 'Medication.extension:Impfstoff.value[x]'" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Copied from 'Medication.extension:Impfstoff'" ]
     ], [
       fhir:index 5 ;
       fhir:StructureMap.group.rule.name [ fhir:value "MedicationExtensionType61374588" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "KBVPRERPMedicationFreeText" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "manualsrcMedicationExtensionType61374588" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "EPAMedication" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "extension" ] ;
         fhir:StructureMap.group.rule.target.variable [ fhir:value "tgtEPAMedicationExtensionType1a2ef415" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Manual action required | Fester Wert: 781405001, Medicinal product package (product) | Quelle: Medication.extension:type" ]
     ], [
       fhir:index 6 ;
       fhir:StructureMap.group.rule.name [ fhir:value "MedicationForm5a0bbd5f" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "KBVPRERPMedicationFreeText" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "form" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "srcKBVPRERPMedicationFreeTextForm27d26e2d" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "EPAMedication" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "form" ] ;
         fhir:StructureMap.group.rule.target.variable [ fhir:value "tgtEPAMedicationForm691ed321" ] ;
         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 "srcKBVPRERPMedicationFreeTextForm27d26e2d" ]
         ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Automatic copy" ]
     ], [
       fhir:index 7 ;
       fhir:StructureMap.group.rule.name [ fhir:value "MedicationMetaf9f176bc" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "KBVPRERPMedicationFreeText" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "meta" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "srcKBVPRERPMedicationFreeTextMeta8de074d5" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "EPAMedication" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "meta" ] ;
         fhir:StructureMap.group.rule.target.variable [ fhir:value "tgtEPAMedicationMeta8591b307" ] ;
         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 "Meta" ]
         ]
       ] ;
       fhir:StructureMap.group.rule.rule [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.name [ fhir:value "MedicationMetaProfile399adfc6" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "srcKBVPRERPMedicationFreeTextMeta8de074d5" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "srcMedicationMetaProfile399adfc6" ]
         ] ;
         fhir:StructureMap.group.rule.target [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.target.context [ fhir:value "tgtEPAMedicationMeta8591b307" ] ;
           fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
           fhir:StructureMap.group.rule.target.element [ fhir:value "profile" ] ;
           fhir:StructureMap.group.rule.target.variable [ fhir:value "tgtMedicationMetaProfile399adfc6" ] ;
           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 "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ]
           ]
         ] ;
         fhir:StructureMap.group.rule.documentation [ fhir:value "Fixed value 'https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication'" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Automatic copy" ]
     ]
  ] .

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

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