| Draft as of 2025-07-07 |
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
a fhir:StructureMap ;
fhir:nodeRole fhir:treeRoot ;
fhir:id [ fhir:v "ERPTPrescriptionStructureMapKBVIngredientMedication"] ; #
fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap ERPTPrescriptionStructureMapKBVIngredientMedication</b></p><a name=\"ERPTPrescriptionStructureMapKBVIngredientMedication\"> </a><a name=\"hcERPTPrescriptionStructureMapKBVIngredientMedication\"> </a><pre class=\"fml\">#xD;\n<b>map</b><span style=\"color: navy\"> \"</span>https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapKBVIngredientMedication<span style=\"color: navy\">\" = \"</span>ERPTPrescriptionStructureMapKBVIngredientMedication<span style=\"color: navy\">\"#xD;\n#xD;\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Maps KBV-Ingredient ERP Medication to BfArM T-Prescription Medication format</span>#xD;\n#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"http://hl7.org/fhir/R4/medication.html\" title=\"Medication\">http://hl7.org/fhir/StructureDefinition/Medication</a><span style=\"color: navy\">\" </span><b>alias </b>kbvMedicationIngredient <b>as </b><b>source</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"http://hl7.org/fhir/R4/medication.html\" title=\"Medication\">http://hl7.org/fhir/StructureDefinition/Medication</a><span style=\"color: navy\">\" </span><b>alias </b>bfarmMedication <b>as </b><b>target</b>#xD;\n#xD;\n<span style=\"color: navy\">// </span><span style=\"color: green\">Mapping-Anweisungen zur Transformation von KBV Wirkstoff-Medikamenten zu BfArM T-Prescription Format</span>#xD;\n<b>group </b>ERPTPrescriptionStructureMapKBVIngredientMedication<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">kbvMedicationIngredient</span><span style=\"color: navy\"> : </span>kbvMedicationIngredient, <b>target</b> <span style=\"color: maroon\">bfarmMedication</span><span style=\"color: navy\"> : </span>bfarmMedication<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span> kbvMedicationIngredient.id<b> as </b><span style=\"color: maroon\">IdVar</span><span style=\"color: navy\"><b> -> </b></span>bfarmMedication.id = <span style=\"color: maroon\">IdVar</span> <i>\"medicationId\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Übernimmt die eindeutige Medication-ID unverändert</span>#xD;\n kbvMedicationIngredient.form<b> as </b><span style=\"color: maroon\">formVar</span><span style=\"color: navy\"><b> -> </b></span>bfarmMedication.form = <span style=\"color: maroon\">formVar</span> <i>\"medicationForm\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Kopiert die gewünschte Darreichungsform für die Wirkstoff-Verordnung (Kapseln, Salbe, Lösung, etc.)</span>#xD;\n kbvMedicationIngredient.amount<b> as </b><span style=\"color: maroon\">amountVar</span><span style=\"color: navy\"><b> -> </b></span>bfarmMedication.amount<b> as </b><span style=\"color: maroon\">tgtAmountVar</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> amountVar.denominator<b> as </b><span style=\"color: maroon\">amountDenominatorVar</span><span style=\"color: navy\"><b> -> </b></span>tgtAmountVar.denominator = <span style=\"color: maroon\">amountDenominatorVar</span> <i>\"medicationAmountDenominator\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Kopiert den Nenner der Mengenangabe (z.B. '1' für 'pro Herstellung')</span>#xD;\n amountVar.numerator<b> as </b><span style=\"color: maroon\">amountNumeratorVar</span><span style=\"color: navy\"><b> -> </b></span>tgtAmountVar.numerator<b> as </b><span style=\"color: maroon\">tgtAmountNumeratorVar</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> amountNumeratorVar.extension<b> as </b><span style=\"color: maroon\">amountNumExtVar</span><span style=\"color: navy\"><b> -> </b></span>tgtAmountNumeratorVar.extension<b> as </b><span style=\"color: maroon\">tgtAmountNumExtVar</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> amountNumExtVar<b> where </b>url='https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize'<span style=\"color: navy\"><b> -> </b></span>tgtAmountNumExtVar.url = <span style=\"color: blue\">'https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension'</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> amountNumExtVar.value<b> as </b><span style=\"color: maroon\">extValVar</span><span style=\"color: navy\"><b> -> </b></span>tgtAmountNumExtVar.value = <span style=\"color: maroon\">extValVar</span> <i>\"copyExtensionValue\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Übernimmt den Packungsgrößenwert</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"copyPackagingSizeExtensionUrl\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Wandelt KBV-Packungsgrößen-Extension in gematik EPA-Medication Extension um</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"medicationAmountExt\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Transformiert Packungsgrößen-Extensions von KBV- zu gematik-Format für Wirkstoff Verordnung</span>#xD;\n amountNumeratorVar.value<b> as </b><span style=\"color: maroon\">amountNumeratorValueVar</span><span style=\"color: navy\"><b> -> </b></span>tgtAmountNumeratorVar.value = <span style=\"color: maroon\">amountNumeratorValueVar</span> <i>\"medicationAmountNumeratorValue\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Kopiert den numerischen Wert der Gesamtmenge (z.B. '100' für 100g Salbe)</span>#xD;\n amountNumeratorVar.unit<b> as </b><span style=\"color: maroon\">amountNumeratorUnitVar</span><span style=\"color: navy\"><b> -> </b></span>tgtAmountNumeratorVar.unit = <span style=\"color: maroon\">amountNumeratorUnitVar</span> <i>\"medicationAmountNumeratorUnit\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Übernimmt die Mengeneinheit (g, ml, Stück, etc.)</span>#xD;\n amountNumeratorVar.system<b> as </b><span style=\"color: maroon\">amountNumeratorSystemVar</span><span style=\"color: navy\"><b> -> </b></span>tgtAmountNumeratorVar.system = <span style=\"color: maroon\">amountNumeratorSystemVar</span> <i>\"medicationAmountNumeratorSystem\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Kopiert das Codesystem für die Mengeneinheit (meist UCUM)</span>#xD;\n amountNumeratorVar.code<b> as </b><span style=\"color: maroon\">amountNumeratorCodeVar</span><span style=\"color: navy\"><b> -> </b></span>tgtAmountNumeratorVar.code = <span style=\"color: maroon\">amountNumeratorCodeVar</span> <i>\"medicationAmountNumeratorCode\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Übernimmt den standardisierten Code für die Mengeneinheit</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"medicationAmountNumerator\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Mappt die detaillierte Mengenangabe</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"medicationAmount\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Mappt die Gesamtmenge der herzustellenden Wirkstoff-Verordnung</span>#xD;\n kbvMedicationIngredient.ingredient<b> as </b><span style=\"color: maroon\">ingredientVar</span><span style=\"color: navy\"><b> -> </b></span>bfarmMedication.ingredient = <span style=\"color: maroon\">ingredientVar</span> <i>\"medicationIngredient\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Kopiert die detaillierten Wirkstoffinformationen mit Konzentrationen und Mengenangaben</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span></pre></div>"^^rdf:XMLLiteral
] ; #
fhir:url [ fhir:v "https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapKBVIngredientMedication"^^xsd:anyURI] ; #
fhir:version [ fhir:v "1.1.0-ballot-1"] ; #
fhir:name [ fhir:v "ERPTPrescriptionStructureMapKBVIngredientMedication"] ; #
fhir:title [ fhir:v "E-T-Rezept Structure Map for KBV Ingredient Medication"] ; #
fhir:status [ fhir:v "draft"] ; #
fhir:experimental [ fhir:v false] ; #
fhir:date [ fhir:v "2025-07-07"^^xsd:date] ; #
fhir:publisher [ fhir:v "gematik GmbH"] ; #
fhir:contact ( [
fhir:name [ fhir:v "gematik GmbH" ] ;
( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "https://gematik.de" ] ] [
fhir:system [ fhir:v "email" ] ;
fhir:value [ fhir:v "erp-umsetzung@gematik.de" ] ] )
] ) ; #
fhir:description [ fhir:v "Maps KBV-Ingredient ERP Medication to BfArM T-Prescription Medication format"] ; #
fhir:jurisdiction ( [
( fhir:coding [
fhir:system [ fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ] ;
fhir:code [ fhir:v "DE" ] ;
fhir:display [ fhir:v "Germany" ] ] )
] ) ; #
fhir:structure ( [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/Medication"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Medication> ] ;
fhir:mode [ fhir:v "source" ] ;
fhir:alias [ fhir:v "kbvMedicationIngredient" ]
] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/Medication"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Medication> ] ;
fhir:mode [ fhir:v "target" ] ;
fhir:alias [ fhir:v "bfarmMedication" ]
] ) ; #
fhir:group ( [
fhir:name [ fhir:v "ERPTPrescriptionStructureMapKBVIngredientMedication" ] ;
fhir:typeMode [ fhir:v "none" ] ;
fhir:documentation [ fhir:v "Mapping-Anweisungen zur Transformation von KBV Wirkstoff-Medikamenten zu BfArM T-Prescription Format" ] ;
( fhir:input [
fhir:name [ fhir:v "kbvMedicationIngredient" ] ;
fhir:type [ fhir:v "kbvMedicationIngredient" ] ;
fhir:mode [ fhir:v "source" ] ] [
fhir:name [ fhir:v "bfarmMedication" ] ;
fhir:type [ fhir:v "bfarmMedication" ] ;
fhir:mode [ fhir:v "target" ] ] ) ;
( fhir:rule [
fhir:name [ fhir:v "medicationId" ] ;
( fhir:source [
fhir:context [ fhir:v "kbvMedicationIngredient" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "IdVar" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "bfarmMedication" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [
a fhir:id ;
fhir:v "IdVar" ] ] ) ] ) ;
fhir:documentation [ fhir:v "Übernimmt die eindeutige Medication-ID unverändert" ] ] [
fhir:name [ fhir:v "medicationForm" ] ;
( fhir:source [
fhir:context [ fhir:v "kbvMedicationIngredient" ] ;
fhir:element [ fhir:v "form" ] ;
fhir:variable [ fhir:v "formVar" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "bfarmMedication" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "form" ] ;
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [
a fhir:id ;
fhir:v "formVar" ] ] ) ] ) ;
fhir:documentation [ fhir:v "Kopiert die gewünschte Darreichungsform für die Wirkstoff-Verordnung (Kapseln, Salbe, Lösung, etc.)" ] ] [
fhir:name [ fhir:v "medicationAmount" ] ;
( fhir:source [
fhir:context [ fhir:v "kbvMedicationIngredient" ] ;
fhir:element [ fhir:v "amount" ] ;
fhir:variable [ fhir:v "amountVar" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "bfarmMedication" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "amount" ] ;
fhir:variable [ fhir:v "tgtAmountVar" ] ] ) ;
( fhir:rule [
fhir:name [ fhir:v "medicationAmountDenominator" ] ;
( fhir:source [
fhir:context [ fhir:v "amountVar" ] ;
fhir:element [ fhir:v "denominator" ] ;
fhir:variable [ fhir:v "amountDenominatorVar" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgtAmountVar" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "denominator" ] ;
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [
a fhir:id ;
fhir:v "amountDenominatorVar" ] ] ) ] ) ;
fhir:documentation [ fhir:v "Kopiert den Nenner der Mengenangabe (z.B. '1' für 'pro Herstellung')" ] ] [
fhir:name [ fhir:v "medicationAmountNumerator" ] ;
( fhir:source [
fhir:context [ fhir:v "amountVar" ] ;
fhir:element [ fhir:v "numerator" ] ;
fhir:variable [ fhir:v "amountNumeratorVar" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgtAmountVar" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "numerator" ] ;
fhir:variable [ fhir:v "tgtAmountNumeratorVar" ] ] ) ;
( fhir:rule [
fhir:name [ fhir:v "medicationAmountExt" ] ;
( fhir:source [
fhir:context [ fhir:v "amountNumeratorVar" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "amountNumExtVar" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgtAmountNumeratorVar" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "tgtAmountNumExtVar" ] ] ) ;
( fhir:rule [
fhir:name [ fhir:v "copyPackagingSizeExtensionUrl" ] ;
( fhir:source [
fhir:context [ fhir:v "amountNumExtVar" ] ;
fhir:condition [ fhir:v "url='https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize'" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgtAmountNumExtVar" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [
a fhir:string ;
fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension" ] ] ) ] ) ;
( fhir:rule [
fhir:name [ fhir:v "copyExtensionValue" ] ;
( fhir:source [
fhir:context [ fhir:v "amountNumExtVar" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "extValVar" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgtAmountNumExtVar" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [
a fhir:id ;
fhir:v "extValVar" ] ] ) ] ) ;
fhir:documentation [ fhir:v "Übernimmt den Packungsgrößenwert" ] ] ) ;
fhir:documentation [ fhir:v "Wandelt KBV-Packungsgrößen-Extension in gematik EPA-Medication Extension um" ] ] ) ;
fhir:documentation [ fhir:v "Transformiert Packungsgrößen-Extensions von KBV- zu gematik-Format für Wirkstoff Verordnung" ] ] [
fhir:name [ fhir:v "medicationAmountNumeratorValue" ] ;
( fhir:source [
fhir:context [ fhir:v "amountNumeratorVar" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "amountNumeratorValueVar" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgtAmountNumeratorVar" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [
a fhir:id ;
fhir:v "amountNumeratorValueVar" ] ] ) ] ) ;
fhir:documentation [ fhir:v "Kopiert den numerischen Wert der Gesamtmenge (z.B. '100' für 100g Salbe)" ] ] [
fhir:name [ fhir:v "medicationAmountNumeratorUnit" ] ;
( fhir:source [
fhir:context [ fhir:v "amountNumeratorVar" ] ;
fhir:element [ fhir:v "unit" ] ;
fhir:variable [ fhir:v "amountNumeratorUnitVar" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgtAmountNumeratorVar" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "unit" ] ;
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [
a fhir:id ;
fhir:v "amountNumeratorUnitVar" ] ] ) ] ) ;
fhir:documentation [ fhir:v "Übernimmt die Mengeneinheit (g, ml, Stück, etc.)" ] ] [
fhir:name [ fhir:v "medicationAmountNumeratorSystem" ] ;
( fhir:source [
fhir:context [ fhir:v "amountNumeratorVar" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:variable [ fhir:v "amountNumeratorSystemVar" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgtAmountNumeratorVar" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [
a fhir:id ;
fhir:v "amountNumeratorSystemVar" ] ] ) ] ) ;
fhir:documentation [ fhir:v "Kopiert das Codesystem für die Mengeneinheit (meist UCUM)" ] ] [
fhir:name [ fhir:v "medicationAmountNumeratorCode" ] ;
( fhir:source [
fhir:context [ fhir:v "amountNumeratorVar" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "amountNumeratorCodeVar" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgtAmountNumeratorVar" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [
a fhir:id ;
fhir:v "amountNumeratorCodeVar" ] ] ) ] ) ;
fhir:documentation [ fhir:v "Übernimmt den standardisierten Code für die Mengeneinheit" ] ] ) ;
fhir:documentation [ fhir:v "Mappt die detaillierte Mengenangabe" ] ] ) ;
fhir:documentation [ fhir:v "Mappt die Gesamtmenge der herzustellenden Wirkstoff-Verordnung" ] ] [
fhir:name [ fhir:v "medicationIngredient" ] ;
( fhir:source [
fhir:context [ fhir:v "kbvMedicationIngredient" ] ;
fhir:element [ fhir:v "ingredient" ] ;
fhir:variable [ fhir:v "ingredientVar" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "bfarmMedication" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "ingredient" ] ;
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [
a fhir:id ;
fhir:v "ingredientVar" ] ] ) ] ) ;
fhir:documentation [ fhir:v "Kopiert die detaillierten Wirkstoffinformationen mit Konzentrationen und Mengenangaben" ] ] )
] ) . #
IG © 2025+ gematik GmbH. Paket de.gematik.erp.t-prescription#1.1.0-ballot-1 basierend auf FHIR 4.0.1. Generiert 2025-07-17
Links: Table of Contents |
QA Report