FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packagede.gematik.erp-t-prescription
Resource TypeStructureMap
IdStructureMap-ERPTPrescriptionStructureMapMedication.json
FHIR VersionR4

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: StructureMap ERPTPrescriptionStructureMapMedication

map "https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapMedication" = "ERPTPrescriptionStructureMapMedication"

// Router-Mapping zur Auswahl der korrekten Medication-Transformation basierend auf dem KBV/gematik Profil

uses "http://hl7.org/fhir/StructureDefinition/Medication" alias srcMedication as source
uses "http://hl7.org/fhir/StructureDefinition/Medication" alias tgtMedication as target

imports "https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapGEMMedication"
imports "https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapKBVCompoundingMedication"
imports "https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapKBVPZNMedication"
imports "https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapKBVFreeTextMedication"
imports "https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapKBVIngredientMedication"

// Router-Mapping zur Auswahl der korrekten Medication-Transformation basierend auf dem KBV/gematik Profil
group ERPTPrescriptionStructureMapMedication(source srcMedication : srcMedication, target tgtMedication : tgtMedication) {
  // Erkennt PZN-basierte Medikamente und leitet an spezialisiertes PZN-Mapping weiter
  srcMedication as srcPZN where (meta.profile.contains('KBV_PR_ERP_Medication_PZN')) then {
    // Führt die Transformation für PZN-Medikamente durch (Fertigarzneimittel mit Pharmazentralnummer)
    srcPZN then ERPTPrescriptionStructureMapKBVPZNMedication(srcMedication, tgtMedication) "mapPZN";
  } "decideOnMedicationPZN";
  // Erkennt Freitext-Medikamente und leitet an spezialisiertes FreeText-Mapping weiter
  srcMedication as srcFreeText where (meta.profile.contains('KBV_PR_ERP_Medication_FreeText')) then {
    // Führt die Transformation für Freitext-Medikamente durch (nicht standardisierte Arzneimittelangaben)
    srcFreeText then ERPTPrescriptionStructureMapKBVFreeTextMedication(srcMedication, tgtMedication) "mapFreeText";
  } "decideOnMedicationFreeText";
  // Erkennt wirkstoffbasierte Medikamente und leitet an spezialisiertes Ingredient-Mapping weiter
  srcMedication as srcIngredient where (meta.profile.contains('KBV_PR_ERP_Medication_Ingredient')) then {
    // Führt die Transformation für wirkstoffbasierte Medikamente durch (Rezeptur nach Wirkstoffen)
    srcIngredient then ERPTPrescriptionStructureMapKBVIngredientMedication(srcMedication, tgtMedication) "mapIngredient";
  } "decideOnMedicationIngredient";
  // Erkennt Rezeptur-Medikamente und leitet an spezialisiertes Compounding-Mapping weiter
  srcMedication as srcCompounding where (meta.profile.contains('KBV_PR_ERP_Medication_Compounding')) then {
    // Führt die Transformation für Rezeptur-Medikamente durch (individuell hergestellte Arzneimittel)
    srcCompounding then ERPTPrescriptionStructureMapKBVCompoundingMedication(srcMedication, tgtMedication) "mapCompounding";
  } "decideOnMedicationCompounding";
  // Erkennt gematik-Medikamente und leitet an spezialisiertes gematik-Mapping weiter
  srcMedication as srcGemMed where (meta.profile.contains('GEM_ERP_PR_Medication')) then {
    // Führt die Transformation für gematik-Medikamente durch (abgegebene Arzneimittel aus der Apotheke)
    srcGemMed then ERPTPrescriptionStructureMapGEMMedication(srcMedication, tgtMedication) "mapGemMed";
  } "decideOnMedicationGematik";
}


Source1

{
  "resourceType": "StructureMap",
  "id": "ERPTPrescriptionStructureMapMedication",
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "url": "https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapMedication",
  "version": "1.2.0",
  "name": "ERPTPrescriptionStructureMapMedication",
  "title": "E-T-Rezept Structure Map for Medication",
  "status": "active",
  "experimental": false,
  "date": "2026-07-27",
  "publisher": "gematik GmbH",
  "contact": [
    {
      "name": "gematik GmbH",
      "telecom": [
        {
          "system": "url",
          "value": "https://gematik.de"
        },
        {
          "system": "email",
          "value": "erp-umsetzung@gematik.de"
        }
      ]
    }
  ],
  "description": "Router-Mapping zur Auswahl der korrekten Medication-Transformation basierend auf dem KBV/gematik Profil",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "urn:iso:std:iso:3166",
          "code": "DE",
          "display": "Germany"
        }
      ]
    }
  ],
  "structure": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/Medication",
      "mode": "source",
      "alias": "srcMedication"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/Medication",
      "mode": "target",
      "alias": "tgtMedication"
    }
  ],
  "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"
  ],
  "group": [
    {
      "name": "ERPTPrescriptionStructureMapMedication",
      "typeMode": "none",
      "documentation": "Router-Mapping zur Auswahl der korrekten Medication-Transformation basierend auf dem KBV/gematik Profil",
      "input": [
        {
          "name": "srcMedication",
          "type": "srcMedication",
          "mode": "source"
        },
        {
          "name": "tgtMedication",
          "type": "tgtMedication",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "decideOnMedicationPZN",
          "source": [
            {
              "context": "srcMedication",
              "variable": "srcPZN",
              "condition": "meta.profile.contains('KBV_PR_ERP_Medication_PZN')"
            }
          ],
          "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)"
            }
          ],
          "documentation": "Erkennt PZN-basierte Medikamente und leitet an spezialisiertes PZN-Mapping weiter"
        },
        {
          "name": "decideOnMedicationFreeText",
          "source": [
            {
              "context": "srcMedication",
              "variable": "srcFreeText",
              "condition": "meta.profile.contains('KBV_PR_ERP_Medication_FreeText')"
            }
          ],
          "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)"
            }
          ],
          "documentation": "Erkennt Freitext-Medikamente und leitet an spezialisiertes FreeText-Mapping weiter"
        },
        {
          "name": "decideOnMedicationIngredient",
          "source": [
            {
              "context": "srcMedication",
              "variable": "srcIngredient",
              "condition": "meta.profile.contains('KBV_PR_ERP_Medication_Ingredient')"
            }
          ],
          "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)"
            }
          ],
          "documentation": "Erkennt wirkstoffbasierte Medikamente und leitet an spezialisiertes Ingredient-Mapping weiter"
        },
        {
          "name": "decideOnMedicationCompounding",
          "source": [
            {
              "context": "srcMedication",
              "variable": "srcCompounding",
              "condition": "meta.profile.contains('KBV_PR_ERP_Medication_Compounding')"
            }
          ],
          "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)"
            }
          ],
          "documentation": "Erkennt Rezeptur-Medikamente und leitet an spezialisiertes Compounding-Mapping weiter"
        },
        {
          "name": "decideOnMedicationGematik",
          "source": [
            {
              "context": "srcMedication",
              "variable": "srcGemMed",
              "condition": "meta.profile.contains('GEM_ERP_PR_Medication')"
            }
          ],
          "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)"
            }
          ],
          "documentation": "Erkennt gematik-Medikamente und leitet an spezialisiertes gematik-Mapping weiter"
        }
      ]
    }
  ]
}