{ "description": "Maps a Medication to BfArM T-Prescription Medication format", "_filename": "StructureMap-ERPTPrescriptionStructureMapMedication.json", "package_name": "de.gematik.erp.t-prescription", "date": "2025-07-07", "group": [ { "name": "ERPTPrescriptionStructureMapMedication", "rule": [ { "name": "decideOnMedication", "rule": [ { "name": "mapPZN", "source": [ { "context": "srcPZN" } ], "dependent": [ { "name": "ERPTPrescriptionStructureMapKBVPZNMedication", "variable": [ "srcMedication", "tgtMedication" ] } ] } ], "source": [ { "context": "srcMedication", "variable": "srcPZN", "condition": "meta.profile.contains('KBV_PR_ERP_Medication_PZN')" } ] }, { "name": "decideOnMedication", "rule": [ { "name": "mapFreeText", "source": [ { "context": "srcFreeText" } ], "dependent": [ { "name": "ERPTPrescriptionStructureMapKBVFreeTextMedication", "variable": [ "srcMedication", "tgtMedication" ] } ] } ], "source": [ { "context": "srcMedication", "variable": "srcFreeText", "condition": "meta.profile.contains('KBV_PR_ERP_Medication_FreeText')" } ] }, { "name": "decideOnMedication", "rule": [ { "name": "mapIngredient", "source": [ { "context": "srcIngredient" } ], "dependent": [ { "name": "ERPTPrescriptionStructureMapKBVIngredientMedication", "variable": [ "srcMedication", "tgtMedication" ] } ] } ], "source": [ { "context": "srcMedication", "variable": "srcIngredient", "condition": "meta.profile.contains('KBV_PR_ERP_Medication_Ingredient')" } ] }, { "name": "decideOnMedication", "rule": [ { "name": "mapCompounding", "source": [ { "context": "srcCompounding" } ], "dependent": [ { "name": "ERPTPrescriptionStructureMapKBVCompoundingMedication", "variable": [ "srcMedication", "tgtMedication" ] } ] } ], "source": [ { "context": "srcMedication", "variable": "srcCompounding", "condition": "meta.profile.contains('KBV_PR_ERP_Medication_Compounding')" } ] }, { "name": "decideOnMedication", "rule": [ { "name": "mapGemMed", "source": [ { "context": "srcGemMed" } ], "dependent": [ { "name": "ERPTPrescriptionStructureMapGEMMedication", "variable": [ "srcMedication", "tgtMedication" ] } ] } ], "source": [ { "context": "srcMedication", "variable": "srcGemMed", "condition": "meta.profile.contains('GEM_ERP_PR_Medication')" } ] } ], "input": [ { "mode": "source", "name": "srcMedication", "type": "srcMedication" }, { "mode": "target", "name": "tgtMedication", "type": "tgtMedication" } ], "typeMode": "none", "documentation": "Mapping group for medication information transformation" } ], "publisher": null, "name": "ERPTPrescriptionStructureMapMedication", "type": null, "experimental": "false", "resourceType": "StructureMap", "title": "E-T-Rezept Structure Map for Medication", "package_version": "1.1.0-ballot-1", "structure": [ { "url": "http://hl7.org/fhir/StructureDefinition/Medication", "mode": "source", "alias": "srcMedication" }, { "url": "http://hl7.org/fhir/StructureDefinition/Medication", "mode": "target", "alias": "tgtMedication" } ], "status": "draft", "id": "3885223a-0b56-4729-a6f9-17bbb2891b4c", "kind": null, "url": "https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapMedication", "version": "1.0.0-ballot-1", "import": [ "https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapGEMMedication", "https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapKBVCompoundingMedication", "https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapKBVPZNMedication", "https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapKBVFreeTextMedication", "https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapKBVIngredientMedication" ] }