FHIR © HL7.org  |  Server Home  |  XIG Home  |  XIG Stats  |  Server Source  |  FHIR  

FHIR IG Statistics: StructureMap/ERPTPrescriptionStructureMapMedication

Packagede.gematik.erp.t-prescription
Resource TypeStructureMap
IdERPTPrescriptionStructureMapMedication
FHIR VersionR4
Sourcehttps://simplifier.net/resolve?scope=de.gematik.erp.t-prescription@1.1.0-ballot-1&canonical=https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapMedication
URLhttps://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapMedication
Version1.0.0-ballot-1
Statusdraft
Date2025-07-07
NameERPTPrescriptionStructureMapMedication
TitleE-T-Rezept Structure Map for Medication
DescriptionMaps a Medication to BfArM T-Prescription Medication format

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

No narrative content found in resource


Source

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