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

FHIR IG Statistics: StructureMap/ERPTPrescriptionStructureMapGEMMedication

Packagede.gematik.erp.t-prescription
Resource TypeStructureMap
IdERPTPrescriptionStructureMapGEMMedication
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/ERPTPrescriptionStructureMapGEMMedication
URLhttps://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapGEMMedication
Version1.0.0-ballot-1
Statusdraft
Date2025-07-07
NameERPTPrescriptionStructureMapGEMMedication
TitleE-T-Rezept Structure Map for Medication
DescriptionMaps GEM ERP 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": "ERPTPrescriptionStructureMapGEMMedication",
  "url": "https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapGEMMedication",
  "title": "E-T-Rezept Structure Map for Medication",
  "description": "Maps GEM ERP Medication to BfArM T-Prescription Medication format",
  "structure": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/Medication",
      "mode": "source",
      "alias": "gematikMedication"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/Medication",
      "mode": "target",
      "alias": "bfarmMedication"
    }
  ],
  "group": [
    {
      "input": [
        {
          "name": "gematikMedication",
          "type": "gematikMedication",
          "mode": "source"
        },
        {
          "name": "bfarmMedication",
          "type": "bfarmMedication",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "source": [
            {
              "context": "gematikMedication",
              "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": "gematikMedication",
              "element": "extension",
              "variable": "extVar"
            }
          ],
          "target": [
            {
              "contextType": "variable",
              "context": "bfarmMedication",
              "element": "extension",
              "variable": "tgtExtVar"
            }
          ],
          "rule": [
            {
              "source": [
                {
                  "context": "extVar",
                  "condition": "url='http://fhir.de/StructureDefinition/normgroesse'"
                }
              ],
              "target": [
                {
                  "parameter": [
                    {
                      "valueString": "http://fhir.de/StructureDefinition/normgroesse"
                    }
                  ],
                  "context": "tgtExtVar",
                  "contextType": "variable",
                  "element": "url",
                  "transform": "copy"
                }
              ],
              "rule": [
                {
                  "source": [
                    {
                      "context": "extVar",
                      "element": "value",
                      "variable": "extValVar"
                    }
                  ],
                  "target": [
                    {
                      "parameter": [
                        {
                          "valueId": "extValVar"
                        }
                      ],
                      "context": "tgtExtVar",
                      "contextType": "variable",
                      "element": "value",
                      "transform": "copy"
                    }
                  ],
                  "name": "copyExtensionValue",
                  "documentation": "Copies the the value for each Extension"
                }
              ],
              "name": "copyNormgroesseExtensionUrl",
              "documentation": "Copies the 'normgroesse' extension"
            },
            {
              "source": [
                {
                  "context": "extVar",
                  "condition": "url='https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension'"
                }
              ],
              "target": [
                {
                  "parameter": [
                    {
                      "valueString": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension"
                    }
                  ],
                  "context": "tgtExtVar",
                  "contextType": "variable",
                  "element": "url",
                  "transform": "copy"
                }
              ],
              "rule": [
                {
                  "source": [
                    {
                      "context": "extVar",
                      "element": "value",
                      "variable": "extValVar"
                    }
                  ],
                  "target": [
                    {
                      "parameter": [
                        {
                          "valueId": "extValVar"
                        }
                      ],
                      "context": "tgtExtVar",
                      "contextType": "variable",
                      "element": "value",
                      "transform": "copy"
                    }
                  ],
                  "name": "copyExtensionValue",
                  "documentation": "Copies the the value for each Extension"
                }
              ],
              "name": "copyPackagingExtensionUrl",
              "documentation": "Copies the 'packaging' extension"
            }
          ],
          "name": "medicationExtension",
          "documentation": "Copies the Medication Extensions"
        },
        {
          "source": [
            {
              "context": "gematikMedication",
              "element": "code",
              "variable": "codeVar"
            }
          ],
          "target": [
            {
              "parameter": [
                {
                  "valueId": "codeVar"
                }
              ],
              "context": "bfarmMedication",
              "contextType": "variable",
              "element": "code",
              "transform": "copy"
            }
          ],
          "name": "medicationCode",
          "documentation": "Copies the Medication Code"
        },
        {
          "source": [
            {
              "context": "gematikMedication",
              "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": "gematikMedication",
              "element": "amount",
              "variable": "amountVar"
            }
          ],
          "target": [
            {
              "parameter": [
                {
                  "valueId": "amountVar"
                }
              ],
              "context": "bfarmMedication",
              "contextType": "variable",
              "element": "amount",
              "transform": "copy"
            }
          ],
          "name": "medicationAmount",
          "documentation": "Copies the Medication Amount"
        },
        {
          "source": [
            {
              "context": "gematikMedication",
              "element": "ingredient",
              "variable": "ingredientVar"
            }
          ],
          "target": [
            {
              "parameter": [
                {
                  "valueId": "ingredientVar"
                }
              ],
              "context": "bfarmMedication",
              "contextType": "variable",
              "element": "ingredient",
              "transform": "copy"
            }
          ],
          "name": "medicationIngredient",
          "documentation": "Copies the Medication Ingredient"
        }
      ],
      "name": "ERPTPrescriptionStructureMapGEMMedication",
      "typeMode": "none",
      "documentation": "Mapping group for medication information transformation"
    }
  ],
  "status": "draft",
  "version": "1.0.0-ballot-1",
  "date": "2025-07-07",
  "name": "ERPTPrescriptionStructureMapGEMMedication",
  "experimental": false
}