| Package | de.gematik.erp.t-prescription |
| Resource Type | StructureMap |
| Id | ERPTPrescriptionStructureMapKBVIngredientMedication |
| FHIR Version | R4 |
| Source | https://simplifier.net/resolve?scope=de.gematik.erp.t-prescription@1.1.0-ballot-1&canonical=https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapKBVIngredientMedication |
| URL | https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapKBVIngredientMedication |
| Version | 1.0.0-ballot-1 |
| Status | draft |
| Date | 2025-07-07 |
| Name | ERPTPrescriptionStructureMapKBVIngredientMedication |
| Title | E-T-Rezept Structure Map for KBV Ingredient Medication |
| Description | Maps KBV-Ingredient ERP Medication to BfArM T-Prescription Medication format |
No resources found
No resources found
No narrative content found in resource
{
"resourceType": "StructureMap",
"id": "ERPTPrescriptionStructureMapKBVIngredientMedication",
"url": "https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapKBVIngredientMedication",
"title": "E-T-Rezept Structure Map for KBV Ingredient Medication",
"description": "Maps KBV-Ingredient ERP Medication to BfArM T-Prescription Medication format",
"structure": [
{
"url": "http://hl7.org/fhir/StructureDefinition/Medication",
"mode": "source",
"alias": "kbvMedicationIngredient"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/Medication",
"mode": "target",
"alias": "bfarmMedication"
}
],
"group": [
{
"input": [
{
"name": "kbvMedicationIngredient",
"type": "kbvMedicationIngredient",
"mode": "source"
},
{
"name": "bfarmMedication",
"type": "bfarmMedication",
"mode": "target"
}
],
"rule": [
{
"source": [
{
"context": "kbvMedicationIngredient",
"element": "id",
"variable": "IdVar"
}
],
"target": [
{
"parameter": [
{
"valueId": "IdVar"
}
],
"context": "bfarmMedication",
"contextType": "variable",
"element": "id",
"transform": "copy"
}
],
"name": "medicationId",
"documentation": "Copies the Medication Id"
},
{
"source": [
{
"context": "kbvMedicationIngredient",
"element": "form",
"variable": "formVar"
}
],
"target": [
{
"parameter": [
{
"valueId": "formVar"
}
],
"context": "bfarmMedication",
"contextType": "variable",
"element": "form",
"transform": "copy"
}
],
"name": "medicationForm",
"documentation": "Copies the Medication Form"
},
{
"source": [
{
"context": "kbvMedicationIngredient",
"element": "amount",
"variable": "amountVar"
}
],
"target": [
{
"contextType": "variable",
"context": "bfarmMedication",
"element": "amount",
"variable": "tgtAmountVar"
}
],
"rule": [
{
"source": [
{
"context": "amountVar",
"element": "denominator",
"variable": "amountDenominatorVar"
}
],
"target": [
{
"parameter": [
{
"valueId": "amountDenominatorVar"
}
],
"context": "tgtAmountVar",
"contextType": "variable",
"element": "denominator",
"transform": "copy"
}
],
"name": "medicationAmountDenominator"
},
{
"source": [
{
"context": "amountVar",
"element": "numerator",
"variable": "amountNumeratorVar"
}
],
"target": [
{
"contextType": "variable",
"context": "tgtAmountVar",
"element": "numerator",
"variable": "tgtAmountNumeratorVar"
}
],
"rule": [
{
"source": [
{
"context": "amountNumeratorVar",
"element": "extension",
"variable": "amountNumExtVar"
}
],
"target": [
{
"contextType": "variable",
"context": "tgtAmountNumeratorVar",
"element": "extension",
"variable": "tgtAmountNumExtVar"
}
],
"rule": [
{
"source": [
{
"context": "amountNumExtVar",
"condition": "url='https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize'"
}
],
"target": [
{
"parameter": [
{
"valueString": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"
}
],
"context": "tgtAmountNumExtVar",
"contextType": "variable",
"element": "url",
"transform": "copy"
}
],
"rule": [
{
"source": [
{
"context": "amountNumExtVar",
"element": "value",
"variable": "extValVar"
}
],
"target": [
{
"parameter": [
{
"valueId": "extValVar"
}
],
"context": "tgtAmountNumExtVar",
"contextType": "variable",
"element": "value",
"transform": "copy"
}
],
"name": "copyExtensionValue",
"documentation": "Copies the the value for each Extension"
}
],
"name": "copyPackagingSizeExtensionUrl"
}
],
"name": "medicationAmountExt",
"documentation": "Copies the Medication Extensions"
},
{
"source": [
{
"context": "amountNumeratorVar",
"element": "value",
"variable": "amountNumeratorValueVar"
}
],
"target": [
{
"parameter": [
{
"valueId": "amountNumeratorValueVar"
}
],
"context": "tgtAmountNumeratorVar",
"contextType": "variable",
"element": "value",
"transform": "copy"
}
],
"name": "medicationAmountNumeratorValue"
},
{
"source": [
{
"context": "amountNumeratorVar",
"element": "unit",
"variable": "amountNumeratorUnitVar"
}
],
"target": [
{
"parameter": [
{
"valueId": "amountNumeratorUnitVar"
}
],
"context": "tgtAmountNumeratorVar",
"contextType": "variable",
"element": "unit",
"transform": "copy"
}
],
"name": "medicationAmountNumeratorUnit"
},
{
"source": [
{
"context": "amountNumeratorVar",
"element": "system",
"variable": "amountNumeratorSystemVar"
}
],
"target": [
{
"parameter": [
{
"valueId": "amountNumeratorSystemVar"
}
],
"context": "tgtAmountNumeratorVar",
"contextType": "variable",
"element": "system",
"transform": "copy"
}
],
"name": "medicationAmountNumeratorSystem"
},
{
"source": [
{
"context": "amountNumeratorVar",
"element": "code",
"variable": "amountNumeratorCodeVar"
}
],
"target": [
{
"parameter": [
{
"valueId": "amountNumeratorCodeVar"
}
],
"context": "tgtAmountNumeratorVar",
"contextType": "variable",
"element": "code",
"transform": "copy"
}
],
"name": "medicationAmountNumeratorCode"
}
],
"name": "medicationAmountNumerator"
}
],
"name": "medicationAmount",
"documentation": "Copies the Medication Amount"
},
{
"source": [
{
"context": "kbvMedicationIngredient",
"element": "ingredient",
"variable": "ingredientVar"
}
],
"target": [
{
"parameter": [
{
"valueId": "ingredientVar"
}
],
"context": "bfarmMedication",
"contextType": "variable",
"element": "ingredient",
"transform": "copy"
}
],
"name": "medicationIngredient",
"documentation": "Copies the Medication Ingredient"
}
],
"name": "ERPTPrescriptionStructureMapKBVIngredientMedication",
"typeMode": "none",
"documentation": "Mapping group for medication information transformation"
}
],
"status": "draft",
"version": "1.0.0-ballot-1",
"date": "2025-07-07",
"name": "ERPTPrescriptionStructureMapKBVIngredientMedication",
"experimental": false
}