PackagesCanonicalsLogsProblems
    Packages
    de.gematik.erp.t-prescription@1.1.0-ballot2
    https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapMedication
{
  "description": "Router-Mapping zur Auswahl der korrekten Medication-Transformation basierend auf dem KBV/gematik Profil",
  "_filename": "StructureMap-ERPTPrescriptionStructureMapMedication.json",
  "package_name": "de.gematik.erp.t-prescription",
  "date": "2025-07-07",
  "group": [ {
    "name": "ERPTPrescriptionStructureMapMedication",
    "rule": [ {
      "name": "decideOnMedicationPZN",
      "rule": [ {
        "name": "mapPZN",
        "source": [ {
          "context": "srcPZN"
        } ],
        "dependent": [ {
          "name": "ERPTPrescriptionStructureMapKBVPZNMedication",
          "variable": [ "srcMedication", "tgtMedication" ]
        } ],
        "documentation": "Führt die Transformation für PZN-Medikamente durch (Fertigarzneimittel mit Pharmazentralnummer)"
      } ],
      "source": [ {
        "context": "srcMedication",
        "variable": "srcPZN",
        "condition": "meta.profile.contains('KBV_PR_ERP_Medication_PZN')"
      } ],
      "documentation": "Erkennt PZN-basierte Medikamente und leitet an spezialisiertes PZN-Mapping weiter"
    }, {
      "name": "decideOnMedicationFreeText",
      "rule": [ {
        "name": "mapFreeText",
        "source": [ {
          "context": "srcFreeText"
        } ],
        "dependent": [ {
          "name": "ERPTPrescriptionStructureMapKBVFreeTextMedication",
          "variable": [ "srcMedication", "tgtMedication" ]
        } ],
        "documentation": "Führt die Transformation für Freitext-Medikamente durch (nicht standardisierte Arzneimittelangaben)"
      } ],
      "source": [ {
        "context": "srcMedication",
        "variable": "srcFreeText",
        "condition": "meta.profile.contains('KBV_PR_ERP_Medication_FreeText')"
      } ],
      "documentation": "Erkennt Freitext-Medikamente und leitet an spezialisiertes FreeText-Mapping weiter"
    }, {
      "name": "decideOnMedicationIngredient",
      "rule": [ {
        "name": "mapIngredient",
        "source": [ {
          "context": "srcIngredient"
        } ],
        "dependent": [ {
          "name": "ERPTPrescriptionStructureMapKBVIngredientMedication",
          "variable": [ "srcMedication", "tgtMedication" ]
        } ],
        "documentation": "Führt die Transformation für wirkstoffbasierte Medikamente durch (Rezeptur nach Wirkstoffen)"
      } ],
      "source": [ {
        "context": "srcMedication",
        "variable": "srcIngredient",
        "condition": "meta.profile.contains('KBV_PR_ERP_Medication_Ingredient')"
      } ],
      "documentation": "Erkennt wirkstoffbasierte Medikamente und leitet an spezialisiertes Ingredient-Mapping weiter"
    }, {
      "name": "decideOnMedicationCompounding",
      "rule": [ {
        "name": "mapCompounding",
        "source": [ {
          "context": "srcCompounding"
        } ],
        "dependent": [ {
          "name": "ERPTPrescriptionStructureMapKBVCompoundingMedication",
          "variable": [ "srcMedication", "tgtMedication" ]
        } ],
        "documentation": "Führt die Transformation für Rezeptur-Medikamente durch (individuell hergestellte Arzneimittel)"
      } ],
      "source": [ {
        "context": "srcMedication",
        "variable": "srcCompounding",
        "condition": "meta.profile.contains('KBV_PR_ERP_Medication_Compounding')"
      } ],
      "documentation": "Erkennt Rezeptur-Medikamente und leitet an spezialisiertes Compounding-Mapping weiter"
    }, {
      "name": "decideOnMedicationGematik",
      "rule": [ {
        "name": "mapGemMed",
        "source": [ {
          "context": "srcGemMed"
        } ],
        "dependent": [ {
          "name": "ERPTPrescriptionStructureMapGEMMedication",
          "variable": [ "srcMedication", "tgtMedication" ]
        } ],
        "documentation": "Führt die Transformation für gematik-Medikamente durch (abgegebene Arzneimittel aus der Apotheke)"
      } ],
      "source": [ {
        "context": "srcMedication",
        "variable": "srcGemMed",
        "condition": "meta.profile.contains('GEM_ERP_PR_Medication')"
      } ],
      "documentation": "Erkennt gematik-Medikamente und leitet an spezialisiertes gematik-Mapping weiter"
    } ],
    "input": [ {
      "mode": "source",
      "name": "srcMedication",
      "type": "srcMedication"
    }, {
      "mode": "target",
      "name": "tgtMedication",
      "type": "tgtMedication"
    } ],
    "typeMode": "none",
    "documentation": "Router-Mapping zur Auswahl der korrekten Medication-Transformation basierend auf dem KBV/gematik Profil"
  } ],
  "publisher": null,
  "name": "ERPTPrescriptionStructureMapMedication",
  "type": null,
  "experimental": "false",
  "resourceType": "StructureMap",
  "title": "E-T-Rezept Structure Map for Medication",
  "package_version": "1.1.0-ballot2",
  "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": "d45d17de-8cb2-414b-9e94-b26b09feac33",
  "kind": null,
  "url": "https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapMedication",
  "version": "1.1.0-ballot2",
  "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" ]
}